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
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
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
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
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
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
bf20938f11
Fixes problem with path
2017-06-28 15:02:12 -06:00