rallytime
dfedd1185a
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/grains/core.py
- salt/modules/ddns.py
- salt/templates/rh_ip/network.jinja
2016-11-28 11:08:19 -07:00
Daniel Boughton
ddc238df36
Fixed augeas_test.py to match True v.s. None for test_change_in_test_mode
2016-11-27 08:40:05 -05:00
twangboy
c11506333c
Fix some lint, fix a test
2016-11-22 10:05:49 -07:00
castor-morveer
6246a98cfa
Boto apigateway optional stacktrace in response mapping ( #37618 )
...
* adding optional response template parameters for normal and error cases
* making optional response templates affect checksum calculation in order to correctly determine if the service needs updating
* Remove trailing whitespace
* removing trailing whitespaces
* correcting invalid mock values in unit test code
2016-11-21 14:47:52 -07:00
kevin
1865b13645
Fix 'present' option when used without 'key_type'
2016-11-14 12:16:51 -07:00
rallytime
1b5f89577e
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/cloud/clouds/vmware.py
2016-11-14 09:19:49 -07:00
rallytime
4c245a3fa5
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/x509.py
2016-11-10 16:51:52 -07:00
rallytime
7b2341bbfd
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/topics/releases/releasecandidate.rst
- salt/modules/file.py
- salt/states/file.py
- salt/utils/network.py
2016-11-10 15:59:51 -07:00
rallytime
f44e14b63c
Merge branch 'carbon' into '2016.11'
...
Conflicts:
- salt/modules/file.py
2016-11-09 12:56:58 -07:00
Erik Johnson
2fc0b222bc
Fix regression in service.dead state ( #37562 )
...
* Fix regression in service.dead state when service is not available
This was originally broken in c4f899b
.
* Add unit test for issue 37511
2016-11-08 14:58:33 -07:00
Nicole Thomas
2e8e56ca69
[PY3] Change log.warn statements to log.warning ( #37531 )
...
* [PY3] Change log.warn statements to log.warning
log.warn is deprecated in Python 3. This change removes the
occurance of deprecation warnings for using log.warn. For example:
```
17:24:23 [WARNING ] /testing/salt/utils/verify.py:522: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
17:24:23 log.warn('Insecure logging configuration detected! Sensitive data may be logged.')
17:24:23
17:24:23 [WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
```
* Tweak unit.utils.verify_test to using warning instead of warn
2016-11-08 13:06:54 -07:00
rallytime
5ead1425d7
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- doc/topics/releases/releasecandidate.rst
- salt/modules/win_servermanager.py
2016-11-08 13:04:33 -07:00
Nicole Thomas
453319b50a
Don't pass the vpc id to boto.vpc.create_internet_gateway func ( #37556 )
...
That function's namespace looks like this:
```
def create_internet_gateway(self, dry_run=False):
```
So when we pass in the vpc_id opbject in the test, the check later
in the function sets `dry_run=True` since the vpc_id opbject exists.
This later throws JSONResponseErrors because the `DryRun` flag is
set. This error raising functionality was added in the most recent
version of moto, which exposed this bug.
This fixes the three boto_vpc_test unit state tests. We'll see if
other tests need to be addressed in other files on a full test run.
2016-11-08 12:48:26 -07:00
rallytime
eae3b9e30f
Merge branch 'carbon' into '2016.11'
...
No conflicts.
2016-11-07 08:15:42 -07:00
rallytime
9b3e4414c8
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- pkg/windows/modules/get-settings.psm1
- salt/modules/mac_power.py
- salt/modules/win_dsc.py
- salt/modules/win_servermanager.py
- salt/states/file.py
- salt/utils/event.py
- salt/utils/gitfs.py
2016-11-04 15:23:49 -06:00
rallytime
ce4b82fdee
Merge branch '2016.11' into 'develop'
...
Conflicts:
- salt/modules/archive.py
- salt/modules/status.py
- salt/states/file.py
- tests/unit/modules/status_test.py
2016-11-04 13:51:46 -06:00
Mike Place
898d28d2c9
Merge pull request #37237 from lyft/add-kinesis-support
...
Add Amazon Kinesis support via boto3
2016-11-04 18:30:43 +13:00
Tanoti
3293340679
Add state.grains.exists and unit tests
2016-11-02 11:32:05 +00:00
Erik Johnson
3014afd517
Overhaul archive.extracted state
...
This fixes a number of annoyances with the archive.extracted state.
Rather than re-state the changes again here, they can be observed in the
carbon release notes, where they have been documented.
2016-11-01 19:35:57 -05:00
Nevins Bartolomeo
99d2c360ed
making messaging in tests match new return
2016-10-25 09:38:54 -04:00
Megan Kercher
f8e95a9813
finish present unit test, bugfix present ret
2016-10-24 15:11:11 -07:00
Megan Kercher
ce76611c35
get absent test working
2016-10-24 11:45:32 -07:00
Megan Kercher
b2e76a3cc0
edit comments, most of unit test:
2016-10-24 11:14:53 -07:00
Erik Johnson
1caf1f6770
Use a default prefix for the mkstemp utils function ( #37022 )
...
* Move salt.utils.mkstemp() into salt.utils.files
Also use a default prefix
* update refs to salt.utils.mkstemp
* Update test to use new path to mkstemp helper func
2016-10-16 16:12:56 -06:00
rallytime
b7d9bf0281
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-14 12:06:31 -06:00
Daniel Hobley
0aa6ecfb7f
Add the option to skip updating the head for a hg latest state ( #37002 )
...
- Updated hg state tests
2016-10-14 09:07:33 -06:00
rallytime
1e7f56c4bb
Merge branch '2016.3' into 'carbon'
...
No conflicts.
2016-10-13 10:38:19 -06:00
Nicole Thomas
3ac9ced202
Merge pull request #36241 from hrumph/cert_problem
...
Fixes #36240
2016-10-12 17:28:35 -06:00
rallytime
32846794c8
Update mocks for failing tests in win_certutil_test
2016-10-12 11:31:58 -06:00
Jorge Schrauwen
8b9648cd97
[develop] salt.modules.at was hopelessly broken on Solaris-like platforms ( #36873 )
...
* disable current at module on solaris, only compute job_kw_regtex once
* provide at_solaris (virtual=at) for Solaris-like systems
* add proper maintainer header
* forgot to update the docs again
* add notice that at module only works on linux, openbsd, and freebsd
* salt.states.at needed a lot of love
* update at_state checks to pass valid date to at.at, at.jobcheck, at.atrm,...
* today I learn about mod_watch, and I want it for at
2016-10-11 10:33:40 -06:00
rallytime
d07f5612ee
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-10-10 10:18:02 -06:00
rallytime
f73bdf55c2
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/cloud/clouds/vultrpy.py
- salt/modules/ini_manage.py
- salt/states/glance.py
2016-10-07 09:51:21 -06:00
rallytime
24b8bba145
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-30 16:13:08 -06:00
rallytime
5d7b4e4511
Merge branch 'carbon' into 'develop'
...
Conflicts:
- conf/master
- doc/ref/configuration/logging/index.rst
- doc/ref/configuration/master.rst
- salt/config/__init__.py
- salt/modules/gpg.py
2016-09-30 16:10:33 -06:00
rallytime
7a03c4df8c
Fix merge conflict resolution error
...
The original conflict resolution adjusted the wrong line. This puts
the test changes on the correct line and restores the original line.
2016-09-29 11:26:50 -06:00
rallytime
6bc3221f7b
Update test to not use the nested context (for Py3 compat)
2016-09-29 11:25:46 -06:00
rallytime
112903ad7e
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- conf/master
- doc/ref/configuration/master.rst
- salt/cli/daemons.py
- salt/client/ssh/__init__.py
- salt/config/__init__.py
- salt/modules/archive.py
- salt/modules/cmdmod.py
- tests/unit/states/service_test.py
2016-09-29 09:56:43 -06:00
Denys Havrysh
bba9d0d105
alternatives.install
state: detect alternatives
command failed
2016-09-29 18:09:16 +03:00
rallytime
90c66ef756
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/modules/aptpkg.py
- salt/states/service.py
2016-09-27 21:34:10 -06:00
Denys Havrysh
c4f899b3b3
salt.states.service
: detect that service failed to start/stop
2016-09-27 18:24:37 +03:00
Mike Place
67b78c7d97
Merge pull request #36423 from kraney/boto_apigateway_usage_plan
...
Boto apigateway usage plan
2016-09-20 15:47:03 +09:00
Winston Liu
df8648d5e3
lint clean up's.
2016-09-19 14:52:41 -07:00
kbelov
b61dc5abda
added unit tests for boto_apigateway module for usage plans and usage plan associations
2016-09-19 14:37:52 -07:00
Mike Place
8b7cfa0a5b
Merge pull request #36281 from kraney/boto_elasticsearch
...
Add support for ElasticsearchVersion parameter
2016-09-17 19:47:00 +09:00
rallytime
93d34af667
Merge branch 'carbon' into 'develop'
...
Conflicts:
- tests/unit/utils/schema_test.py
2016-09-16 14:38:10 -06:00
rallytime
26cf545d03
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/utils/gitfs.py
- tests/unit/modules/disk_test.py
2016-09-16 10:35:49 -06:00
rallytime
37aea4188a
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-09-16 09:24:17 -06:00
Denys Havrysh
3f308d7694
postgres_extension: report changes when an extension was installed ( #36335 )
...
* postgres_extension: report changes when extension was installed or upgraded
* postgres_extension state: fix unit tests
2016-09-16 08:23:20 -06:00
rallytime
ee8321eab1
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-09-14 15:18:22 -06:00
Nicole Thomas
729617923e
Back-port #36124 to 2016.3 ( #36296 )
...
* Use /etc instead of /root
* Skip test on anything but linux
* Add missing import (lint)
2016-09-14 10:08:16 -06:00
Kris Raney
0780555fbc
Update unit test.
...
Also, version is reported on status rather than config; update code to reflect that.
2016-09-14 10:40:55 -05:00
rallytime
95dbe1ade4
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/fileserver/__init__.py
- setup.py
- tests/integration/modules/git.py
2016-09-14 09:15:29 -06:00
rallytime
f603757b55
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- tests/unit/modules/mount_test.py
- tests/unit/states/file_test.py
2016-09-13 08:21:48 -06:00
Pablo Suárez Hernández
fdf40907b7
Some unit tests fixes ( #36227 )
...
* Prevent tests failures if boto does not exists
* Prevent tests failure if /etc/fstab does not exists
2016-09-12 11:43:12 -06:00
mwinnett
b9a98f551e
Add win_pki unit tests
2016-09-10 23:31:08 -07:00
Christophe Drevet
4c422f1549
fix cron.absent by identifier on test mode ( #36181 )
2016-09-09 16:20:58 -06:00
rallytime
167fe00e00
Merge branch 'carbon' into 'develop'
...
No conflicts.
2016-09-09 09:54:17 -06:00
Patrick Valenzuela
b2f1d36e2f
Update boto_dynamodb for GSI management and backups ( #35878 )
...
* Update boto_dynamodb state/module for GSI management
* fix trailing whitespace
* modify format strings to conform to file style
* fix lint errors
* fix all but 1 test
* add example
2016-09-09 08:57:29 -06:00
Mike Place
31b2ef2585
Merge pull request #36124 from twangboy/linux_acl_test_mac
...
Skip test on all OS's but linux
2016-09-09 18:59:35 +09:00
rallytime
6da0fbbe96
Merge branch '2016.3' into 'carbon'
...
Conflicts:
- salt/modules/cmdmod.py
- salt/modules/linux_sysctl.py
- tests/unit/cloud/clouds/dimensiondata_test.py
- tests/unit/cloud/clouds/gce_test.py
- tests/unit/modules/boto_iot_test.py
- tests/unit/modules/mount_test.py
- tests/unit/states/boto_iot_test.py
- tests/unit/utils/network.py
2016-09-08 16:14:04 -06:00
twangboy
e6b34c414d
Add missing import (lint)
2016-09-08 15:37:21 -06:00
twangboy
bd65259605
Skip test on anything but linux
2016-09-08 13:46:41 -06:00
Pablo Suárez Hernández
235d6308a4
Fixing unit tests for develop ( #36141 )
...
* Fixing skipped boto tests to prevent errors if boto3 does not exists.
* Fix tests to prevent errors when libcloud is not present
* Fix PortageConfigTestCase in case of portage is not present
2016-09-08 11:15:41 -06:00
rallytime
7f955bda0a
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- tests/unit/modules/boto_vpc_test.py
- tests/unit/modules/mount_test.py
- tests/unit/modules/puppet_test.py
2016-09-08 10:55:57 -06:00
Mike Place
1f909038f0
Merge pull request #36139 from meaksh/tests-fixes-for-2016.3
...
Fixing unit tests for 2016.3
2016-09-08 22:20:21 +09:00
Mike Place
f74ca15f50
Remove test for file dir behavior
...
Refs #34809
2016-09-08 11:36:17 +01:00
rallytime
4e9733ad6d
Rename dockerio.py unit tests to dockerio_test.py
...
These tests have never run automatically because of an incorrect file name.
Added a skipIf on these tests as they are currently non-functioning and the
module they're testing has been deprecated.
2016-09-08 11:36:17 +01:00
twangboy
da2dded3c3
Use /etc instead of /root
2016-09-07 12:34:33 -06:00
mwinnett
d6d38aad9e
Update versionadd tags
2016-09-06 09:22:55 -07:00
Pablo Suárez Hernández
71ebf2c8cd
Fixing skipped boto tests to prevent errors if boto3 does not exists.
2016-09-06 12:41:56 +01:00
mwinnett
64b3649ab6
Add unit tests for win_snmp state
2016-09-05 00:30:35 -07:00
rallytime
1bf840b036
Merge branch '2016.3' into 'develop'
...
No conflicts.
2016-09-02 09:43:40 -06:00
rallytime
a63c9dfc6a
Merge branch '2015.8' into '2016.3'
...
Conflicts:
- salt/states/service.py
2016-09-02 08:19:16 -06:00
Mike Place
6cf56843d4
Revert "service state integration tests"
2016-09-02 21:38:15 +09:00
Daniel Wallace
9bdb161eac
Add Keystone v3 support ( #35911 )
...
* Openstack keystone V3 API support in keystone modules.
* Python3 compatibility unicode to six.text_type
* Return values of tests: test_user_absent, test_endpoint_absent,
test_role_absent, test_service_absent, test_tenant_absent
* Fixed tests states.test_role_present and states.service_present
* Fixed module tests (not all)
* These are the old tests and need to be rewritten anyway
* fix pylint error
* fix keystone state tests
2016-08-31 11:55:23 -06:00
Mike Place
c30abb489a
Merge pull request #35927 from saltstack/revert-33010-state_grains_present_assert_only
...
Revert "For #31309 . If value not supplied only check for existence"
2016-08-31 18:35:32 +09:00
Mike Place
6559cf347b
Revert "For #31309 . If value not supplied only check for existence"
2016-08-31 18:06:49 +09:00
Nicolas Delaby
8c7233ad4d
Revert "Fixup Docker test"
...
This reverts commit 3bd8a7027b
.
2016-08-31 09:48:57 +02:00
Mike Place
3bd8a7027b
Fixup Docker test
...
This test just looks to see if changes were made.
2016-08-30 20:49:02 +09:00
Mike Place
65a56a6f51
Merge pull request #33010 from Tanoti/state_grains_present_assert_only
...
For #31309 . If value not supplied only check for existence
2016-08-30 17:57:57 +09:00
Mike Place
202d9adf2e
Merge pull request #35778 from kraney/boto_cloudwatch_event
...
Boto cloudwatch event
2016-08-29 11:20:47 +09:00
rallytime
2b1ad9e9b9
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/utils/gitfs.py
2016-08-26 14:54:54 -06:00
Hengyang Hu
b89f45598e
fix 34241, webutil.useradd_all is deprecated ( #35788 )
...
* fix 34241, webutil.useradd_all is deprecated
* in src webutil.useradd_all get replaced by webutil.useradd, change the mocks accordingly
2016-08-26 12:52:11 -06:00
Kris Raney
9b3e48bd6e
Fix pylint warnings in test code
2016-08-25 15:51:02 -05:00
Kris Raney
170e8238c8
Add cloud watch events unit tests
2016-08-25 13:30:56 -05:00
rallytime
49798ee301
Remove every.weeks reference: not available in relativedelta
2016-08-22 16:07:36 -06:00
rallytime
64e49a43fc
Update blockdev references to 'disk' in blockdev state unit test
2016-08-16 15:02:18 -06:00
Nicole Thomas
4b33a19788
Merge pull request #35349 from rallytime/merge-develop
...
[develop] Merge forward from 2016.3 to develop
2016-08-11 15:07:43 -06:00
rallytime
102fcbe916
Remove contains_regex_multiline function from file module
2016-08-10 16:43:49 -06:00
rallytime
0b1e9e9a78
Merge branch '2016.3' into 'develop'
...
Conflicts:
- salt/client/mixins.py
- salt/grains/core.py
- salt/modules/saltutil.py
- salt/runner.py
- salt/states/saltmod.py
- salt/wheel/__init__.py
- tests/unit/states/saltmod_test.py
2016-08-10 10:25:32 -06:00
rallytime
2d3eadfe49
Merge branch '2015.8' into '2016.3'
...
No conflicts.
2016-08-09 11:15:48 -06:00
Erik Johnson
d621aa7b61
Update runner/wheel unit tests to reflect new key in ret dict
2016-08-09 08:49:52 -05:00
Mike Place
715dc14b9b
Merge pull request #35247 from rallytime/carbon-deprecations
...
Remove some of the things that are deprecated in Carbon
2016-08-09 09:00:27 +09:00
rallytime
4835c31f23
Remove tests for deprecated functions
2016-08-08 09:58:37 -06:00
rallytime
86a5e04417
Pylint fix
2016-08-08 09:53:29 -06:00
rallytime
f42ca4b576
PY3: Don't use contextlib.nested - it is deprecated.
...
contextlib.nested is deprecated in Python 3. Instead of having two
different ways of handling nested (PY2) vs ExitStacks (PY3), just use
nested with statements for both.
2016-08-03 14:49:24 -06:00
Mike Place
f1fbdf12de
Merge pull request #35113 from kraney/boto_iot_thing_types
...
Support for aws iot 'thing type'
2016-08-01 18:33:06 -06:00
Winston Liu
ef97c3f474
added unit tests for thing type present/absent states for boto_iot state functions.
2016-08-01 15:23:51 -07:00
Thor K. H
7f6942ec7f
Fixing coding style and change w/o updated test
...
Fixed testing for tomcat.wait, as well as updating style. Should resolve
any test errors isolated to the module and/or state.
2016-07-28 21:24:52 +02:00
Thor K. H
bb38055ae4
Initial work on adapting Tomcat to care correctly
...
Ensure that lack of version does not result in blank version being used,
as to avoid certain Java EE applications from having issues with paths
when parallell execution is not "supported".
This fixes #24990 by both not adding a blank version if there is no
version to exract, but also by allowing you to overwrite that there
should be *no* version whether or not your WAR-file ends with `-1.2.3`.
Tests added for specifically dealing with no-to-version scenarios,
as well as several minor documentation tweaks that hopefully aren't too
interruptive!
2016-07-28 20:02:57 +02:00