rallytime
f49da018e4
Sort lists before compairing them in python 3 unit test
2017-08-07 14:38:10 -04:00
Erik Johnson
665de2d1f9
Fix domainname parameter input translation
...
Resolves #42538
2017-08-07 09:51:14 -05:00
rallytime
f20f3742cb
Merge branch '2017.7' into 'develop'
...
Conflicts:
- tests/unit/test_crypt.py
2017-08-07 10:43:06 -04:00
Mike Place
547ada9418
Merge pull request #42612 from nhavens/develop
...
fix for issue #42611
2017-08-03 17:37:05 -05:00
Mike Place
b8acf9f6ec
Merge pull request #42624 from lyft/modernize-boto-sqs-modules
...
Modernize boto_sqs execution and state modules
2017-08-03 17:34:18 -05:00
Mike Place
834d6c605e
Set fact gathering style to 'old' for test_junos
...
Without this, we stacktrace because it does not appear that setting
'gather_facts' to False prevents the library from assuming the presence
of facts. I believe this to be an upstream bug with jnpr.
Because they have listed this as being a deprecated option in the future
this may re-break in the future.
2017-08-02 23:11:52 -06:00
Mike Place
4c1d931654
Merge pull request #42481 from twangboy/win_unit_test_crypt
...
Fix `unit.test_crypt` for Windows
2017-08-01 13:10:49 -05:00
Neile Havens
d73c4b55b7
back-port #42612 to 2017.7
2017-07-31 17:10:06 -05:00
Neile Havens
afce919746
Merge branch 'develop' into develop
2017-07-31 15:51:10 -05:00
Mike Place
968a9dba46
Merge pull request #42354 from alexbleotu/vmware_logs_and_no_permission_exc-gh
...
VMware utils functions: additional logs & raise NoPermission exceptions
2017-07-31 15:03:45 -05:00
Mike Place
5baf2650fc
Merge pull request #42453 from gtmanfred/makedirs
...
don't pass user to makedirs on windows
2017-07-31 14:57:57 -05:00
Mike Place
a09091a696
Merge pull request #42517 from alexbleotu/linux_acl_fixes-gh
...
Fixes to linux_acl.present state & cmd.run function
2017-07-31 14:44:57 -05:00
garethgreenaway
25094ad9b1
Merge pull request #42602 from garethgreenaway/42514_2017_7_superseded_deprecated_from_pillar
...
Use superseded and deprecated configuration from pillar
2017-07-31 11:53:06 -07:00
Aneesh Agrawal
c4f5888c85
Modernize boto_sqs execution and state modules
...
Headline changes:
- Move to boto3
- Use result-style error handling
- Optimize number of API calls:
- Set attributes at creation time
- Set all attributes in one API call
- Show diff when attribute changes detected
2017-07-31 18:08:29 +00:00
Philippe Wooding
78f5da36f4
Update LDAP unit test
2017-07-31 14:28:27 +02:00
Anil Kabra
a8f263d1cb
Merge branch 'develop' into v2016.11.5_protect_master_key
2017-07-28 14:03:26 -05:00
Anil Kabra
b77b2e2a05
Fix unit test signing with passphrase
2017-07-28 14:02:31 -05:00
garethgreenaway
7e58b5160d
Merge branch 'develop' into develop
2017-07-28 11:28:46 -07:00
Nicole Thomas
7d385f8bdc
Merge pull request #42006 from redmatter/fix-dockerng-network-matching-2017.7
...
Fix dockerng.network_* name matching
2017-07-28 09:52:51 -06:00
Nicole Thomas
f83960c02a
Lint: Remove extra line at end of file.
2017-07-28 09:13:59 -06:00
Anil Kabra
2f3c50206b
Fix calls to files utility module method from open from fopen
2017-07-28 09:40:57 -05:00
Neile Havens
8eee58af97
fix test_selinux for issue #42611
...
- expect change from selinux.boolean state if it makes changes
- result = False if there's an error making changes
2017-07-28 09:39:38 -05:00
Anil Kabra
f474016037
Merge branch 'v2016.11.5_protect_master_key' of https://github.com/Mastercard/salt into v2016.11.5_protect_master_key
2017-07-28 07:46:08 -05:00
Anil Kabra
7875ee9d34
Fixed error due to new files module in utils
2017-07-28 07:44:50 -05:00
Andrew Bulford
c7d364ec56
Add regression tests for #41982
...
These test the scenarios where another network with a similar name
already exists, verifying that absent doesn't attempt to remove a
network which isn't specified, and present still attempts to create the
specified network despite a similarly named network already being present.
2017-07-28 10:41:44 +01:00
Andrew Bulford
d31f2913bd
Fix broken unit test test_network_absent
...
This started failing following commit 515c612
, which relied on the
'Name' key being present in the return value of docker.networks -
as the mock didn't have this set the test started failing.
2017-07-28 09:57:45 +01:00
garethgreenaway
bab7503f68
Merge branch 'develop' into linux_acl_fixes-gh
2017-07-27 16:59:36 -07:00
William Cannon
e4f7603723
removed comments, updated docstrings - mostly cosmetic
2017-07-27 15:43:12 -07:00
Nicole Thomas
22eea389fa
Merge pull request #42290 from isbm/isbm-module_run_parambug_42270_217
...
Backport of #42270
2017-07-27 16:30:05 -06:00
Anil Kabra
3a9746f67e
Merge branch 'develop' into v2016.11.5_protect_master_key
2017-07-27 17:04:51 -05:00
William Cannon
e7785bf758
changed output of tests from True/False to Pass/Fail, updated unit tests
2017-07-27 14:33:16 -07:00
Nicole Thomas
6b45debf28
Merge pull request #41988 from redmatter/fix-dockerng-network-matching
...
Fix dockerng.network_* name matching
2017-07-27 15:25:06 -06:00
Gareth J. Greenaway
74bae13939
Small update to something I missed in the first commit. Updating tests to also test for pillar values.
2017-07-27 13:19:48 -07:00
rallytime
9b66464fcc
Merge branch '2017.7' into 'develop'
...
No conflicts.
2017-07-27 13:52:52 -06:00
Mike Place
2985e4c0e6
Merge pull request #42255 from twangboy/win_unit_test_win_system
...
Fix `unit.modules.test_win_system` for Windows
2017-07-27 14:12:41 -05:00
Mike Place
71b4c86a40
Merge pull request #42430 from alexbleotu/esxdatacenter_proxy-gh
...
Esxdatacenter proxy + related updates
2017-07-27 13:47:10 -05:00
Anil Kabra
acfc5fb710
Resolved merge conflict
2017-07-27 13:28:41 -05:00
Sigmon, Jeffrey
bb29afd022
Passphrase protect master private key
2017-07-27 13:17:26 -05:00
Daniel Wallace
559d432930
fix tests
2017-07-27 12:00:38 -06:00
rallytime
1f0b90aa57
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/cloud/clouds/joyent.py
- salt/engines/slack.py
2017-07-26 17:51:36 -06:00
William Cannon
493d065e21
added auto check of minion config option
2017-07-26 15:00:56 -07:00
William Cannon
1088e5eddc
major updates - refactored to make __salt__ work in module with unit tests, squashed deep nesting bug too
2017-07-26 15:00:56 -07:00
William Cannon
5d088a6359
added lots of unit tests
2017-07-26 15:00:56 -07:00
William Cannon
4b502b3c3b
pylint fixes, initial unit test
2017-07-26 15:00:56 -07:00
Alexandru Bleotu
2218905cb7
Merge branch 'develop' into vmware_logs_and_no_permission_exc-gh
2017-07-25 23:38:01 +01:00
Alexandru Bleotu
4715c8eca3
Merge branch 'develop' into linux_acl_fixes-gh
2017-07-25 23:36:52 +01:00
Alexandru Bleotu
c565ed94dd
Merge branch 'develop' into esxdatacenter_proxy-gh
2017-07-25 23:36:25 +01:00
Mike Place
fa519b76d0
Merge pull request #42310 from moio/zypper-list_pkg-attr-parameter
...
zypper.list_pkgs: add parameter for returned attribute selection
2017-07-25 16:07:45 -05:00
Mike Place
62abac6fbc
Merge pull request #42396 from rallytime/parse_docstring_util
...
Move parse_docstring from salt.utils to salt.utils.doc.py
2017-07-25 16:04:00 -05:00
Alexandru Bleotu
89cebfd96b
Merge branch 'develop' into linux_acl_fixes-gh
2017-07-25 21:54:46 +01:00
Mike Place
07c2793e86
Merge pull request #42266 from twangboy/win_unit_states_test_file
...
Fix `unit.states.test_file` for Windows
2017-07-25 15:26:32 -05:00
Mike Place
641a9d7efd
Merge pull request #41968 from root360-AndreasUlm/fix-rabbitmqctl-output-handler
...
Fix rabbitmqctl output sanitizer for version 3.6.10
2017-07-25 14:12:36 -05:00
Alexandru Bleotu
b2a2791534
Merge branch 'develop' into vmware_logs_and_no_permission_exc-gh
2017-07-24 20:30:58 +01:00
Alexandru Bleotu
0f3d784c0f
Updated all tests for modules.mod_acl and added one when the error is raised
2017-07-24 19:35:06 +01:00
Alexandru Bleotu
8e415c8ef7
Updated and added linux_acl_test.present tests
2017-07-24 19:35:06 +01:00
Nicole Thomas
c793d83d26
Merge pull request #42180 from twangboy/win_unit_test_timezone
...
Fix `unit.modules.test_timezone` for Windows
2017-07-24 08:46:16 -06:00
twangboy
102509029e
Remove chown mock, fix path seps
2017-07-21 16:36:07 -06:00
garethgreenaway
580c6989b3
Merge branch 'develop' into esxdatacenter_proxy-gh
2017-07-21 10:45:53 -07:00
Alexandru Bleotu
500899bc12
Fix tests #2
2017-07-21 08:18:57 +01:00
Alexandru Bleotu
0ba680f68e
Merge branch 'develop' into datacenter_vsphere_func-gh
2017-07-21 07:58:56 +01:00
Silvio Moioli
5e23f5d678
zypper.list_pkgs: add install_time_date_t as a supported attribute
2017-07-21 08:15:50 +02:00
Silvio Moioli
db22777a09
zypper_test: add test for list_pkgs and attr
2017-07-21 08:14:37 +02:00
Silvio Moioli
bb049cb70f
zypper_test: adapt existing unit tests to new code
2017-07-21 08:14:37 +02:00
Silvio Moioli
a32ee4af05
zypper_test: correct mock behavior
...
Previously incorrect, although the test passed
2017-07-21 08:14:37 +02:00
Alexandru Bleotu
7f52358eac
Fixed test
2017-07-21 00:07:42 +01:00
Alexandru Bleotu
632cbf69b4
Fixed pylint
2017-07-20 22:22:24 +01:00
Alexandru Bleotu
d5b6c6be25
Fixed pylint
2017-07-20 21:06:35 +01:00
Alexandru Bleotu
5a63ed7449
Added tests for datacenter_configured state
2017-07-20 16:43:44 +01:00
Erik Johnson
2fb986f5ca
Merge pull request #42367 from rallytime/files-util
...
Move file-related utilities out of init file and into salt.utils.files.py
2017-07-19 16:55:52 -05:00
rallytime
60d80fc06c
Move parse_docstring from salt.utils to salt.utils.doc.py
...
- Moves function to new location in salt.utils.doc.py
- Adds deprecation warning to salt.utils.parse_docstring
- Moves related unit test in test_utils.py to new test_doc.py file
2017-07-19 12:06:55 -06:00
Mike Place
c9972fe4fb
Merge pull request #42383 from AndrewPashkin/revert-37003-gradual-pillar-loading
...
Revert "Make possible to reference previous pillars from subsequent pillars, as they specified in the top file"
2017-07-19 11:28:22 -05:00
Alexandru Bleotu
89f4f324e6
Added tests for salt.modules.vsphere.create_datacenter
2017-07-19 17:20:24 +01:00
Alexandru Bleotu
b0aafe1632
Added tests for salt.modules.vsphere.list_datacenters_via_proxy
2017-07-19 17:20:23 +01:00
Nicole Thomas
59e012b485
Merge pull request #42150 from twangboy/win_unit_test_pip
...
Fix `unit.modules.test_pip` for Windows
2017-07-19 10:01:17 -06:00
Nicole Thomas
ade25c6b34
Merge pull request #42154 from twangboy/win_unit_test_reg
...
Fix `unit.modules.test_reg_win` for Windows
2017-07-19 10:00:38 -06:00
Mike Place
7419e82cb2
Merge pull request #42362 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-07-19 10:56:15 -05:00
Nicole Thomas
07593675e2
Merge pull request #42182 from twangboy/win_unit_test_useradd
...
Fix `unit.modules.test_useradd` for Windows
2017-07-19 09:55:32 -06:00
Alexandru Bleotu
f343a2b277
Added tests for esxdatacenter proxy
2017-07-19 15:24:10 +01:00
Alexandru Bleotu
e041b8f486
Added tests for get_details in modules.esxdatacenter
2017-07-19 15:24:10 +01:00
Alexandru Bleotu
6814e8405d
Added tests for supporting esxdatacenter proxy in modules.vsphere
2017-07-19 15:24:10 +01:00
Andrew Pashkin
b0148c15c7
Revert "Make possible to reference previous pillars from subsequent pillars, as they specified in the top file"
2017-07-19 12:25:22 +03:00
rallytime
0ab4787d81
Fix all salt.utils fopen references in test_file
2017-07-18 17:10:11 -06:00
rallytime
3f0945b9b7
Fix one more salt.utils fopen reference to point to files
2017-07-18 15:04:49 -06:00
rallytime
89d957b124
Update unit test mocks for salt.utils.files.fopen
2017-07-18 13:40:07 -06:00
rallytime
0f5dd79aa0
Lint fixes
2017-07-18 12:46:15 -06:00
rallytime
df693423b9
Move salt.utils.rm_rf to salt.utils.files.rm_rf
...
Also added a deprecation warning to utils/__init__.py and updated
all references to rm_rf in salt codebase.
2017-07-18 10:48:54 -06:00
rallytime
ccf790a83f
Update all references for moved functions to use "files" util
...
- fopen
- flopen
- fpopen
- safe_rm
- is_empty
- is_fcntl_available
2017-07-18 10:31:01 -06:00
rallytime
f59ecb7ffe
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/executors/sudo.py
2017-07-18 08:57:55 -06:00
Alexandru Bleotu
e783d6edd5
pylint
2017-07-18 06:44:34 -04:00
Mike Place
3ec5bb1c2f
Merge pull request #42257 from twangboy/win_unit_pillar_test_git
...
Fix `unit.pillar.test_git` for Windows
2017-07-17 12:51:41 -05:00
Mike Place
36395625c2
Merge pull request #42258 from twangboy/win_unit_states_tests_environ
...
Fix `unit.states.test_environ` for Windows
2017-07-17 12:50:37 -05:00
Mike Place
894bdd2b19
Merge pull request #42265 from rallytime/gate-moto-version
...
Gate boto_elb tests if proper version of moto isn't installed
2017-07-17 12:47:51 -05:00
Mike Place
baf04f2a2d
Merge pull request #42277 from twangboy/win_unit_states_test_winrepo
...
Fix `unit.states.test_winrepo` for Windows
2017-07-17 12:37:06 -05:00
Alexandru Bleotu
c256eaef82
Renamed vmware_test folder to vmware to follow new naming standard
2017-07-17 13:12:34 -04:00
Alexandru Bleotu
62edc82d34
Added tests for catching vim.fault.NoPermission for all tested function in utils.vmware
2017-07-17 13:12:32 -04:00
Alexandru Bleotu
ec5532cdcf
Added no_permission tests to vmware functions
2017-07-17 13:12:30 -04:00
Mike Place
acd29f9b38
Merge pull request #42206 from rallytime/fix-flaky-test
...
[PY3] Fix test that is flaky in Python 3
2017-07-17 12:09:52 -05:00
Mike Place
8f1cb287cf
Merge pull request #42126 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-07-17 12:07:18 -05:00
Arnold Bechtoldt
178274f320
actually add newline (per line) to form a valid file
2017-07-14 09:40:40 +02:00
Bo Maryniuk
8c71257a4b
Call unnamed parameters properly
2017-07-13 10:11:00 +02:00
Bo Maryniuk
94c97a8f25
Update and correct the error message
2017-07-13 10:10:50 +02:00
twangboy
ed89cd0b93
Use os.sep for path seps
2017-07-12 10:13:26 -06:00
Andrew Pashkin
7d59f7a6c6
Make possible to reference pillars, that come before current pillar in the top file
2017-07-12 19:03:05 +03:00
twangboy
669aaee10d
Mock file exists properly
2017-07-11 17:09:21 -06:00
rallytime
78cdee51d5
Gate boto_elb tests if proper version of moto isn't installed
...
For Python 2 tests, we can use an older version. But when running
these tests of Python 3, we need a newer version of moto that supports
Python 3.
This gates the tests if the expected version of moto is missing.
2017-07-11 17:00:50 -06:00
twangboy
a4231c9827
Fix ret mock for linux
2017-07-11 16:59:42 -06:00
twangboy
0c484f8979
Fix unit tests on Windows
2017-07-11 16:55:43 -06:00
Nathan Fish
ed531304e2
test_nfs3: pass string, not list
2017-07-11 15:05:25 -05:00
twangboy
55b278c478
Mock the reg.read_value function
2017-07-11 13:23:11 -06:00
twangboy
45be32666a
Add error-handling function to shutil.rmtree
2017-07-11 13:08:00 -06:00
twangboy
acc0345bc8
Fix unit tests
2017-07-11 12:08:13 -06:00
Mike Place
e0c4a4bb1b
Merge pull request #42192 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-07-07 13:59:30 -05:00
rallytime
bf45c18f9d
Convert remaining "assert_called_once" references to new syntax
...
These tests are new to develop and need to be converted to use the new
assert_called_once syntax introduced in #42084 .
2017-07-07 10:28:19 -06:00
rallytime
2be4865f48
[PY3] Fix test that is flaky in Python 3
...
We can't rely on lists having the same order in Python3 the same
way we rely on them in Python2. If we sort them first, and then
compare them, this test will be more reliable.
2017-07-07 09:43:52 -06:00
rallytime
8d960d463a
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/grains/core.py
2017-07-06 17:42:30 -06:00
garethgreenaway
47ade9e91c
Merge pull request #42088 from terminalmage/update-mocking
...
Update mocking in network tests
2017-07-06 15:03:42 -07:00
Jay
623ca64121
Merge branch 'develop' into patch-4
2017-07-06 16:58:53 -04:00
twangboy
8260a71c07
Disable tests that require pwd in Windows
2017-07-06 13:19:40 -06:00
twangboy
832a3d86dd
Skip tests that use os.symlink on Windows
2017-07-06 13:11:02 -06:00
Nicole Thomas
b869ae5579
Merge pull request #42101 from rallytime/haproxyconn-tests
...
[PY3] Fix haproxyconn unit tests that are failing
2017-07-06 12:17:46 -06:00
Mike Place
30f04a7224
Merge pull request #42138 from rallytime/py3-saltmod-tests
...
[PY3] Make test_saltmod unit tests less flaky for Python 3
2017-07-06 11:47:20 -05:00
Nicole Thomas
c87d1edd0c
Merge branch 'develop' into haproxyconn-tests
2017-07-06 10:22:33 -06:00
twangboy
00d9a52802
Fix problem with handling REG_QWORD in list values
2017-07-05 17:44:06 -06:00
twangboy
4ee24202fc
Fix unit tests for test_pip
2017-07-05 15:49:53 -06:00
rallytime
cdfcc854ad
[PY3] Make test_saltmod unit tests less flaky for Python 3
...
Separates out the comment from the rest of the state return to make this
test more stable on Python 3. This state run in PY3 adds the minion
names to the comment in a random order, so we can't rely on asserting
against this order in the test.
This PR updates the test so that we are still checking for all of the
elements in the comment, but not relying on the order the minions are
added the comment list.
2017-07-05 12:56:03 -06:00
Jay
11777e7641
Merge pull request #1 from saltstack/develop
...
Update branch to latest
2017-07-05 11:16:25 -04:00
rallytime
8b35b367b3
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/modules/win_pkg.py
- salt/states/dockerng.py
2017-07-05 09:14:30 -06:00
Jay
0d7cadb1f2
Update test_win_service.py
...
Added StartTypeDelayed to mock_info return for test_enable.
2017-07-03 18:59:29 -04:00
rallytime
291515e445
[PY3] Fix haproxyconn unit tests that are failing
...
``assertItemsEqual`` does not exist in Python 3. It was removed. Since
``assertItemsEqual(a, b)`` is the same thing as asserting that
``sorted(a) == sorted(b)``, we can just update the test in this manner
to work in both Python 2 and 3.
2017-07-03 16:25:57 -06:00
Erik Johnson
fc27c1a948
Update mocking in network tests
...
017fbdb
changed the function calls in such a way that tests in 2017.7
now fail. This updates the mocking to account for new code paths
introduced in this commit.
2017-07-03 10:43:34 -05:00
rallytime
4d96cc1068
Merge branch '2017.7' into 'develop'
...
No conflicts.
2017-07-03 09:28:18 -06:00
Erik Johnson
d942752e95
Fix usage of assert_called_once in Python 3 < 3.6
...
This is a more complete fix which builds upon 41c65b0
and covers all
refs to assert_called_once in the suite.
2017-07-03 09:30:12 -05:00
rallytime
f0416acc37
Add mode back in for tmp file creation on Linux
...
The mode arg was removed in PR #41966 to get this test to pass on
Windows. However, this caused the same test to fail on Arch Linux
when running Python 3.
Let's keep the test the way it was for non-windows boxes, and only
remove the mode for windows.
2017-06-30 12:06:54 -06:00
rallytime
9227a1263d
Merge branch '2017.7' into 'develop'
...
No conflicts.
2017-06-30 10:00:01 -06:00
Andrew Bulford
9eea796da8
Add regression tests for #41982
...
These test the scenarios where another network with a similar name
already exists, verifying that network_absent doesn't attempt to remove
a network which isn't specified, and network_present still attempts to
create the specified network despite a similarly named network already
being present.
2017-06-30 11:03:45 +01:00
Andrew Bulford
3369f0072f
Fix broken unit test test_network_absent
...
This started failing following commit 515c612
, which relied on the
'Name' key being present in the return value of dockerng.networks -
as the mock didn't have this set the test started failing.
2017-06-30 11:01:10 +01:00
Erik Johnson
26f848e111
Mock socket.getaddrinfo in unit.utils.network_test.NetworkTestCase.test_host_to_ips
...
This will keep future IP address changes from impacting this test. It
also tests a host which returns an IPv6 address, and a host which cannot
be resolved.
2017-06-29 14:49:39 -05:00
twangboy
cdb53c2657
Set file_roots for Windows Temp
2017-06-29 13:01:10 -06:00
Mike Place
1b194904f3
Merge pull request #41992 from twangboy/win_unit_test_archive
...
Fix `unit.modules.test_archive` on Windows
2017-06-29 11:53:04 -05:00
Erik Johnson
9a50e7c1ca
Merge remote-tracking branch 'upstream/2017.7' into merge-develop
2017-06-28 22:10:50 -05:00
Mike Place
9f3438d5e7
Merge pull request #42000 from terminalmage/merge-2017.7
...
Merge 2016.11 into 2017.7 Merge remote-tracking branch 'upstream/2016.11' into merge-2017.7
2017-06-28 21:44:22 -05:00
Erik Johnson
f13ddeb394
Merge remote-tracking branch 'upstream/2016.11' into merge-2017.7
...
Conflicts:
- doc/_themes/saltstack2/layout.html
- salt/auth/__init__.py
- salt/utils/schedule.py
2017-06-28 20:27:32 -05:00
Erik Johnson
94316114ee
Add test for pyobjects priority
2017-06-28 19:48:46 -05:00
Erik Johnson
dfd0e51794
Update test_map to test declarative ordering
2017-06-28 19:48:46 -05:00
Erik Johnson
91576a7263
Introduce "priority" feature for pyobjects
...
When there are multiple matches (such as when both an os_family and os
grain both match the minion), the order in which they are processed is
determined by the iteration order of the class' __dict__ attribute.
Since this would be different in different versions of Python, behavior
would be inconsistent depending on which version of Python is being used.
This adds a priority attribute to the Map subclass which, if present,
will re-order the match groups such that the results will be predictable
irrespective of Python version.
2017-06-28 19:48:46 -05:00
Erik Johnson
fb6a93314f
Update IP address for unit.utils.network_test.NetworkTestCase.test_host_to_ips
...
The IP for saltstack.com changed, so this test needs to be updated.
2017-06-28 19:42:52 -05:00
twangboy
a5f7288ad9
Skip test that uses pwd, not available on Windows
2017-06-28 15:35:35 -06:00
twangboy
bf20938f11
Fixes problem with path
2017-06-28 15:02:12 -06:00
rallytime
3c823109a1
Lint: Remove extra blank line
2017-06-28 13:29:31 -06:00
rallytime
9cb9547bc0
Rename transport_test file to test_transport and update imports for pytest
2017-06-28 11:35:13 -06:00
rallytime
e512a29f08
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/state.py
- salt/modules/yumpkg.py
- salt/modules/zypper.py
- salt/states/pkg.py
- salt/version.py
- tests/unit/config/test_config.py
- tests/unit/modules/test_zypper.py
2017-06-28 11:31:53 -06:00
rallytime
7d7be2d375
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- doc/ref/configuration/master.rst
- tests/integration/states/test_archive.py
- tests/unit/transport/test_tcp.py
- tests/unit/transport/test_zeromq.py
2017-06-28 10:48:37 -06:00
garethgreenaway
4fe273f78e
Merge pull request #41969 from twangboy/win_unit_test_config
...
Fix `unit.config.test_config` for Windows
2017-06-28 08:18:07 -07:00
garethgreenaway
7c96200e42
Merge pull request #41967 from twangboy/win_unit_test_api
...
Fix `unit.config.test_api` for Windows
2017-06-28 08:17:21 -07:00
twangboy
98bc208db9
Fix paths, skip impossible
2017-06-27 17:31:23 -06:00
Andreas Ulm
76fd941d91
added tests for rabbitmq 3.6.10 output handler
...
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
2017-06-28 01:13:30 +02:00
twangboy
1f497d8f78
Fix paths
2017-06-27 16:43:54 -06:00
twangboy
3eca45e000
Fix unit tests for ssh
2017-06-27 15:29:44 -06:00
Mike Place
4209be843d
Merge pull request #41959 from DSRCorporation/bugs/minor_dict_diff_enhance
...
Minor dict diff enhance in tests.
2017-06-27 15:18:16 -05:00
Mike Place
f9965ccfcb
Merge pull request #41939 from cachedout/mdadm_py3_test
...
Gate assert check behind mock ver
2017-06-27 13:04:23 -05:00
Mike Place
e3bfd5a593
Merge pull request #41952 from meaksh/2017.7-suse-leftovers-part-two
...
Fix "zypp_plugins" unit test for Python 3
2017-06-27 12:42:00 -05:00
Dmitry Kuzmenko
e01e566779
Minor: show full dict diffs if test fails.
2017-06-27 16:22:09 +03:00
Pablo Suárez Hernández
7affbce83a
Fix zypp_plugins unit test for Python 3
2017-06-27 09:26:35 +01:00
Erik Johnson
3fac9b3b06
Add maxDiff to pyobjects test for troubleshooting
2017-06-26 12:58:49 -05:00
Mike Place
41c65b0e2c
Gate assert check behind mock ver
2017-06-26 11:04:49 -06:00
Mike Place
ff67d47a2e
Merge pull request #41516 from kstreee/fix-blocking-waiting-tcp-connection
...
Implements MessageClientPool to avoid blocking waiting for zeromq and tcp communications.
2017-06-26 09:41:38 -05:00
kstreee
df96969959
Removes redundant closing statements.
2017-06-26 04:58:24 +00:00
Sigmon, Jeffrey
60ef23f49d
Passphrase protect master private key
2017-06-23 18:14:44 -05:00
twangboy
b2c13654ac
Fix unit tests
2017-06-23 15:57:47 -06:00
Mike Place
eb2bf865b8
Merge branch '2016_11_to_7' of github.com:cachedout/salt into 2016_11_to_7
2017-06-23 10:51:04 -06:00
Erik Johnson
61870075aa
Add building_highstate odict to mock HighState class
2017-06-23 11:48:00 -05:00
Mike Place
00746cafce
Lint fix for win_certutil
2017-06-23 10:11:48 -06:00
Mike Place
8647086de8
Merge branch '2016_11_to_7' of github.com:cachedout/salt into 2016_11_to_7
2017-06-22 15:39:38 -06:00
Erik Johnson
2ee43fc743
Fix default opts handling
...
Starting in 2017.7 the dunder dicts are handled differently in unit
tests.
2017-06-22 13:40:40 -05:00
Mike Place
80cb57e02b
Fix win_certutil merge error
2017-06-22 11:40:56 -06:00
Mike Place
481797b147
Merge branch '2016.11' into '2017.7'
2017-06-21 15:49:39 -06:00
Mike Place
6e9e0714f0
Merge forward from 2016.11 to 2017
2017-06-21 14:51:02 -06:00
garethgreenaway
4a326444fe
Merge pull request #41882 from Ch3LL/fix_crypt_test
...
Add pycryptodome to crypt_test
2017-06-21 12:51:09 -07:00
Yagnik
709ffce86c
Update to use nacl instead of naclenc
2017-06-22 01:02:04 +05:30
Erik Johnson
798567b766
Add new gitfs config options to mocked opts
2017-06-21 12:42:48 -05:00
Ch3LL
6f70dbd0e1
Add pycryptodome to crypt_test
2017-06-21 13:41:12 -04:00
Mike Place
a25818b90b
Merge pull request #41872 from DSRCorporation/bugs/py3_DiskTestCase
...
Py3: test_disk fix: don't expect dict iteration order will be the same
2017-06-21 12:09:57 -05:00
Mike Place
eea9cafba0
Merge pull request #41874 from DSRCorporation/bugs/py3_mdadm_test
...
Py3 mdadm test
2017-06-21 12:03:33 -05:00
Yagnik
e6b836f69d
Add support for nacl renderer for encrypted data
2017-06-21 22:32:15 +05:30
Mike Place
13df29ed9b
Merge pull request #41877 from Ch3LL/fix_netstat_test
...
Fix netstat and routes test
2017-06-21 11:16:58 -05:00
Mike Place
66f8c83c93
Merge pull request #41566 from morganwillcock/certutil
...
win_certutil: workaround for reading serial numbers with non-English languages
2017-06-21 10:40:28 -05:00
Mike Place
ccd81ed047
Merge pull request #41859 from DSRCorporation/bugs/py3_tests_2017.7
...
Py3 etcd unit test fix.
2017-06-21 10:33:15 -05:00
Mike Place
4d0f5c433d
Merge pull request #41679 from terminalmage/get-top-file-envs
...
Prevent unnecessary duplicate pillar compilation
2017-06-21 10:32:42 -05:00
Mike Place
278b5614d0
Merge pull request #41856 from meaksh/2017.7-suse-leftovers-part-two
...
SUSE leftovers for 2017.7.0 RC
2017-06-21 10:24:37 -05:00
Dmitry Kuzmenko
e1e8d96ef2
Removed unneeded import.
2017-06-21 18:08:44 +03:00
Ch3LL
d2076a6c93
Patch salt.utils.which for test_route test
2017-06-21 10:55:01 -04:00
Ch3LL
51f7e107dc
Patch salt.utils.which for test_netstat test
2017-06-21 10:50:03 -04:00
Erik Johnson
a916e8da49
Improve normalization of saltenv/pillarenv usage for states
2017-06-21 08:49:34 -05:00
Erik Johnson
02f293a19c
Update state unit tests to reflect recent changes
2017-06-21 08:19:05 -05:00
Dmitry Kuzmenko
1401b2d5ba
Py3: mdadm test fix: don't expect kwargs iteration order
2017-06-21 15:45:55 +03:00
Dmitry Kuzmenko
127e48025a
Py3: tests_disk fix: don't expect dict iteration order will be the same
2017-06-21 14:48:59 +03:00
Pablo Suárez Hernández
a3e9b5cdbe
Fixes mocking error
2017-06-21 11:56:36 +01:00
Dmitry Kuzmenko
596ab0421d
Py3: pass Exception to side effect friendly for both mock<1.1 and mock>=1.1
2017-06-21 12:46:46 +03:00
Pablo Suárez Hernández
6eea8179ad
Pylint fixes
2017-06-21 10:09:11 +01:00
Pablo Suárez Hernández
686c45b8ab
Fix buggy test
2017-06-21 09:32:01 +01:00
Morgan Willcock
c337d52d0c
Fix test data for test_get_serial, and a typo
2017-06-21 00:26:47 +01:00
Morgan Willcock
7f6961378e
test and lint fixes
2017-06-20 22:30:11 +01:00
Mike Place
4f8714037d
Merge pull request #41851 from DSRCorporation/bugs/py3_tests_nitrogen
...
Minor Py3 related tests fixes.
2017-06-20 15:11:43 -05:00
Dmitry Kuzmenko
c25ebe3a6e
Py3: fix test for Py34. Fixed the etcd util error case handling.
2017-06-20 21:47:51 +03:00
Mike Place
f04888d88f
Remove unused import
2017-06-20 12:15:50 -06:00
Dmitry Kuzmenko
ea1a351f5f
Code review fixup.
2017-06-20 20:26:58 +03:00
Mike Place
594b7631f7
Merge pull request #41850 from DSRCorporation/bugs/py3_tests_2017.7
...
Py3 tests fix for 2017.7
2017-06-20 12:17:28 -05:00
Michael Calmer
24bad5b078
translate variable arguments if they contain hidden keywords (bsc#1025896)
...
- includes a test
2017-06-20 17:28:39 +01:00
Bo Maryniuk
1c817bb6c9
Add zypp-notify plugin
...
* Add unit test to the libzypp drift detector plugin
2017-06-20 17:18:31 +01:00
Mike Place
f720a849ba
Merge pull request #41795 from isbm/isbm-suse-upstream-leftovers
...
Things, that didn't made to 2017.7 for some reasons
2017-06-20 09:28:21 -05:00
Dmitry Kuzmenko
ea656e92c6
Py3: Disabled augeas test that segfaults the test suite.
...
Because of a bug in python-augeas:
https://github.com/hercules-team/python-augeas/issues/30
2017-06-20 16:59:38 +03:00
Dmitry Kuzmenko
5a1bdd368e
Py3: minor tests updates
...
Correct skipping explanation and correctly disable by proper conditions.
BTW, mysql works on Py3. There's a port of python-mysql and test passes.
2017-06-20 16:59:38 +03:00
Dmitry Kuzmenko
2cff18e2ef
Py3: fix boto elb test
2017-06-20 16:59:38 +03:00
Dmitry Kuzmenko
9de940d3d3
Py3: don't use mock.assert_called_once implemented in 3.6.
2017-06-20 16:34:22 +03:00
Dmitry Kuzmenko
e079b4657a
Py3: PyDSL test fix. Ignore kwargs order.
2017-06-20 14:29:00 +03:00
rallytime
add5b118a3
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/yumpkg.py
- tests/unit/templates/test_jinja.py
2017-06-19 14:12:36 -06:00
Nicole Thomas
c84a6f36f4
Merge pull request #41808 from gtmanfred/py3
...
Fix last of the failing mac/py3 tests
2017-06-19 13:57:32 -06:00
Mike Place
389a689be9
Merge pull request #41604 from plassa-b/develop
...
Allow the user to get multiple service statuses at once through globbing
2017-06-19 12:35:59 -05:00
Mike Place
ffb8149de4
Merge pull request #41777 from garethgreenaway/41742_adding_force_option
...
Additions to lvm module and state module
2017-06-19 11:56:44 -05:00
Mike Place
5bc7a20327
Missing colon
2017-06-19 10:52:45 -06:00
Mike Place
445f603568
Fix incorrect indentation
2017-06-19 09:37:00 -06:00
Bo Maryniuk
fe97520bc7
Merge branch '2017.7' into isbm-suse-upstream-leftovers
2017-06-19 15:21:13 +02:00
Bo Maryniuk
b08d790ede
Lintfix: wrap lines over 120 chars
2017-06-19 14:54:22 +02:00
Bo Maryniuk
25686352bd
emove openstack_test UT in favour of test_openstack
2017-06-19 14:03:09 +02:00
Bo Maryniuk
3845c84e65
Remove nova_test UT in favour of test_nova
2017-06-19 14:02:21 +02:00
Bo Maryniuk
6220380c3d
Remove an older version of the unit test
2017-06-19 14:00:52 +02:00
Bo Maryniuk
d834bc2c8b
Remove old tester.
2017-06-19 13:57:54 +02:00
Nicole Thomas
4dedf01956
Merge pull request #41811 from rallytime/bp-41806
...
Back-port #41806 to 2017.7
2017-06-16 16:48:39 -06:00
Nicole Thomas
5d0db7b687
Merge pull request #41722 from garethgreenaway/41667_adding_additional_options
...
Fixes to states/virt.py
2017-06-16 15:24:18 -06:00
Ed Pelc
a536111b83
add tests for single docker log_config option fix
2017-06-16 14:57:17 -06:00
Daniel Wallace
4bf030ff65
don't break py2
2017-06-16 13:11:51 -06:00
Ed Pelc
7480bab798
add tests for single docker log_config option fix
2017-06-16 13:05:01 -04:00
rallytime
58262608cd
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/config/__init__.py
- salt/master.py
- salt/modules/zypper.py
- tests/unit/modules/timezone_test.py
2017-06-16 10:43:02 -06:00
Daniel Wallace
b65edc786c
handle unordered sets in unique jinja tests
2017-06-16 08:40:40 -06:00
Pablo Suárez Hernández
fb444db0f2
Search the entire CACHE_DIR because storage paths change across versions
...
Prevents zero length error on Python 2.6
Fixes Zypper unit test
Enhances pkg.list_downloaded information of a package
Listing all patches instead of security ones only
Adapting Zypper test to new list_downloaded output
Fixes zypper test error after backporting
Pylint fixes
2017-06-16 15:28:42 +02:00
Pablo Suárez Hernández
27ef83fd62
Adding support for installing patches in yum/dnf execution module
...
Adding support for installing patches in Zypper module
Adding list_downloaded function to Zypper module
Adding list_downloaded function to Yum module
Adding new pkg.downloaded state
Adding documentation for pkg.downloaded state
Adding pkg.patched and pkg.patch_downloaded states
Check targets for advisory patches installation
Adds support for listing advisory patches with Zypper
Adds support for listing advisory patches with Yum
Improving function naming
Moving advisory ids checks into pkg_resource.parse_targets
Fixes _find_download_targets to call _preflight_check
Fixes parse_targets when advisory id is passed as name
Pylint fixes
Enables pkg.downloaded to verify packages after package manager call.
Adding missing kwargs parameters to pkg.install call
Adding versionadded flags
Some refactoring and minor fixes
Adding unit tests for Zypper execution module
Adding more unit tests for Zypper module
Pylint fix
2017-06-16 15:28:10 +02:00
Peter V. Saveliev
4761e711fe
clean up change
attribute from interface dict
...
The attribute is hidden in IPDB from the high-level logics since
pyroute2 version 0.4.2.
Bug-Url: https://github.com/saltstack/salt/issues/41461
unit tests: add pyroute2 interface dict test
Bug-Url: https://github.com/saltstack/salt/pull/41487
Bug-Url: https://github.com/saltstack/salt/issues/41461
unit tests: fix absolute imports in test_pyroute2
Bug-Url: https://github.com/saltstack/salt/pull/41533
unit tests: add encoding clause into test_pyroute2
Bug-Url: https://github.com/saltstack/salt/pull/41533
unit tests: test_pyroute2 -- add skipIf
... and comments
Bug-Url: https://github.com/saltstack/salt/pull/41533
Update new pyroute2 unit test to conform with 2016.11 branch standards
2017-06-16 14:39:08 +02:00
Michael Calmer
f7cd2f6722
Fix os_family case in unittest
2017-06-16 14:39:08 +02:00
Bo Maryniuk
2d8c9883ff
Use correct grain constants for timezone
...
Adjust the test so it is using the right grain for SUSE systems
Bugfix: use correct grain constant for platform
Refactor with setup/teardown
Add UT for RedHat's set_zone
Fix doc for RH UT
Remove unnecessary mock patch
Doc fix
Add UT for set_zone on SUSE series
Adjust UT to use correct grain for SUSE series
Bugfix: use correct os_family grain value for SUSE series
Add UT for gentoo on set_zone
Add UT for Debian on set_zone
Remove duplicate code
Add UT for get_hwclock on UTC/localtime
Remove dead code
Add UT for get_hwclock on SUSE platform
Bugfix: use correct grain for SUSE and RedHat platform
Add UT for RedHat/SUSE platforms on get_hwclock
Add UT for Debian on get_hwclock
Add UT on Solaris
Add UT for AIX on get_hwclock
Add UT for set_hwclock on AIX
Fix docstrings
Add UT for set_hwclock on solaris
Add UT for set_hwclock on Arch
Add UT for set_hwclock on RedHat
Fix UT names
Add UT set_hwclock on SUSE
Bugfix: use correct grain name for SUSE platform
Add UT for set_hwclock on Debian
Add UT on set_hw_clock on Gentoo
Fix lint issues
Rewrite test case for using no patch decorators
Disable the test for a while
Do not use multiple variables in "with" statement as of lint issues
2017-06-16 14:39:08 +02:00
Bo Maryniuk
23d2aca59b
Add unit test for skip false values from preferred_ip
...
- Add fake preferred IP function for testing
- Add initial unit test for openstack cloud module
- Move out nested function to be unit-testable
- Lintfix
- Add unit test for nova connector
- Move out nested function for testing purposes
- Fix name error exception
- Skip test, if libcloud is not around
- Add unit test for node ip filtering
- Lintfix E0602
- Fix UT parameter changes
- Fix lint, typos and readability
- PEP8: fix unused variable
- Reformat idents, fix typos
- Describe debug information
2017-06-16 14:39:08 +02:00
Cléry Plassat
a7974fe508
Patched the windows status test
2017-06-16 12:48:15 +02:00
garethgreenaway
899d852791
Merge branch 'develop' into 41742_adding_force_option
2017-06-15 16:07:06 -07:00
garethgreenaway
d41c4ab45b
Merge branch 'develop' into 41667_adding_additional_options
2017-06-15 15:54:30 -07:00
Gareth J. Greenaway
87ff0eb3ad
Adding the force option for situation where the -yes argument needs to be passed along to lvcreate
2017-06-15 13:39:17 -07:00
rallytime
7fef4cf38f
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/engines/slack.py
2017-06-15 10:57:27 -06:00
Mike Place
c58f3811ce
Merge pull request #41746 from rallytime/version-added-nitrogen
...
Update Nitrogen references to 2017.7.0
2017-06-15 10:12:18 -05:00
rallytime
b6cc0b6bf0
Manually backport the changes in PR #41615
...
The automatic back-porting process did't work for this file since the
testing file has been renamed. I manually added the changes to
`timezone_test.py` that were present in PR #41615 .
2017-06-15 08:53:25 -06:00
garethgreenaway
32a996bdbd
Merge branch 'develop' into 41667_adding_additional_options
2017-06-14 16:21:35 -07:00
Nicole Thomas
2c24012ded
Merge pull request #41753 from rallytime/bp-41449
...
Back-port #41449 to 2016.11
2017-06-14 16:16:10 -06:00
Sébastien Wains
fae41c2875
Adjusting SVN unit test
2017-06-14 13:40:50 -06:00