rallytime
8aaadd8787
Revert "Update new pyroute2 unit test to conform with 2016.11 branch standards"
...
This reverts commit 535b8e8d8e
.
2017-06-06 16:35:12 -06:00
Ch3LL
0e35605f20
Skip git_pillar tests on MacOSX
2017-06-06 17:17:57 -04:00
Mike Place
8f9ba1f258
Merge pull request #41615 from Ch3LL/fix_mac_clock
...
Fix get_hwclock_aix test on MacOSX
2017-06-06 15:52:32 -05:00
C. R. Oldham
4540f82aaa
Port salt-proxy tests to the testsuite changes in Nitrogen.
2017-06-06 13:49:16 -06:00
Daniel Wallace
b25b487ceb
create home directory for issue-1959
...
Fixes https://github.com/saltstack/salt-jenkins/issues/388
2017-06-06 13:32:57 -06:00
Ch3LL
ea147701f4
Fix get_hwclock_aix test on MacOSX
2017-06-06 15:06:08 -04:00
rallytime
1a40e105e5
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- tests/integration/__init__.py
- tests/integration/modules/test_state.py
2017-06-06 12:57:44 -06:00
Mike Place
53ecb5c4b0
Merge pull request #41553 from terminalmage/issue41527
...
Fix installing RPMs via remote URLS which are 30x redirects
2017-06-06 13:23:41 -05:00
Daniel Wallace
fd23f7dad3
Mark known flaky mac power test
2017-06-06 12:19:45 -06:00
Mike Place
b720ecb732
Merge pull request #41569 from gtmanfred/fix_test_result_check
...
Check all entries in result
2017-06-06 13:18:16 -05:00
Ch3LL
8d27bb31b2
Disable home dir check for mac in more test_user tests
2017-06-06 11:20:18 -04:00
Ch3LL
85e77c9cc8
Disable home dir check for mac in test_user
2017-06-06 11:02:19 -04:00
rallytime
535b8e8d8e
Update new pyroute2 unit test to conform with 2016.11 branch standards
2017-06-05 20:55:44 -06:00
Nicole Thomas
ebfc9f214a
Merge pull request #41594 from Ch3LL/fix_mac_check_cmd
...
change group to wheel for macosx in tests
2017-06-05 20:45:02 -06:00
Nicole Thomas
be0683de78
Merge pull request #41595 from gtmanfred/nitrogen
...
Make sure runtests_engine is ASCII text
2017-06-05 20:43:50 -06:00
Nicole Thomas
fa9d7015ca
Merge pull request #41589 from Ch3LL/fix_locale_map
...
Skip locale tests on MacOSX
2017-06-05 20:42:48 -06:00
Mike Place
d7fe4ba7a9
Merge pull request #41592 from terminalmage/py3-tests
...
Kill child PIDs when shutting down a testprogram daemon
2017-06-05 19:01:49 -05:00
Daniel Wallace
19ea5481b6
remove test that never passed
2017-06-05 17:45:23 -06:00
Daniel Wallace
f309bae8b4
Make sure runtests_engine is ASCII text
...
If this is has any unicode characters in it, it won't load on systems that do
not default to a unicode locale.
find . -type f | while read line; do ret=$(file $line); if [[ $ret == *UTF-8* && $line == *.py ]]; then echo $line; fi; done
The above will list all files that have unicode characters in it and won't load
with locale set to C or POSIX
2017-06-05 17:30:28 -06:00
Peter V. Saveliev
5c86dee73c
unit tests: test_pyroute2 -- add skipIf
...
... and comments
Bug-Url: https://github.com/saltstack/salt/pull/41533
2017-06-05 17:22:48 -06:00
Peter V. Saveliev
026b39493f
unit tests: add encoding clause into test_pyroute2
...
Bug-Url: https://github.com/saltstack/salt/pull/41533
2017-06-05 17:22:48 -06:00
Peter V. Saveliev
9ab203d54b
unit tests: fix absolute imports in test_pyroute2
...
Bug-Url: https://github.com/saltstack/salt/pull/41533
2017-06-05 17:22:48 -06:00
Peter V. Saveliev
1f507cfa7a
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
2017-06-05 17:22:48 -06:00
Erik Johnson
8e380679cc
Kill child PIDs when shutting down a testprogram daemon
...
This fixes the test failures recently observed in
integration.shell.test_master.MasterTest.test_exit_status_correct_usage.
The test failures were not a regression, but rather a symptom of a
greater problem with the TestProgram class' shutdown() func. When
terminating the process using the terminate_process helper from
pytest-salt, it does not pass kill_children, which defaults to False.
This makes the helper only kill the main PID, leaving all the other PIDs
running.
This means that every time the integration suite was being run, each
time the TestProgram class was used to spawn a temporary daemon, it
would leave all the child PIDs running when the shutdown() is invoked.
By passing kill_children=True, we ensure that the child PIDs are also
killed. This should provide a significant perfomance improvement in the
test suite.
2017-06-05 16:38:23 -05:00
Ch3LL
ddcb1ca9a7
change group to wheel for macosx in tests
2017-06-05 17:16:54 -04:00
Ch3LL
8c10cbd01d
Skip locale tests on MacOSX
2017-06-05 15:57:20 -04:00
rallytime
903e2f9922
Merge branch '2016.11' into 'nitrogen'
...
No conflicts.
2017-06-05 13:38:51 -06:00
Nicole Thomas
cc6c98a8d8
Merge pull request #41509 from seanjnkns/fix-keystone-v3-endpoint_present
...
Add keystone V3 API support for keystone.endpoint_present|absent
2017-06-02 21:01:05 -06:00
Daniel Wallace
e2a4d5e1e2
Check all entries in result
...
Without this change, we ony check the first return from state tests, if
there is more than one state run, we do not check subsequent tests.
2017-06-02 17:26:07 -06:00
Nicole Thomas
a49348cc89
Merge pull request #41535 from rallytime/merge-nitrogen
...
[nitrogen] Merge forward from 2016.11 to nitrogen
2017-06-01 16:25:35 -06:00
Erik Johnson
c512142899
Add integration test for cp.cache_file
2017-06-01 17:20:58 -05:00
Pedro Algarvio
451d8f98e3
The file listing needs to be sorted to return expectable results.
...
This seems like the only reasonable way to override, for example, grains.
Grains from `custom_grains_2` should override grains from `custom_grains_1`.
2017-06-01 18:47:22 +01:00
rallytime
cb69296f55
Remove test_win_firewall unit tests: they don't actually test anything
2017-06-01 10:07:23 -06:00
Dmitry Kuzmenko
7ba25db473
Replace assertCountEqual not-implemented in Py2
2017-06-01 16:52:09 +03:00
Dmitry Kuzmenko
64954d8e40
Fixed pylint errors.
2017-06-01 16:49:57 +03:00
Dmitry Kuzmenko
2ae68ee591
Added cache test.
...
Implemented some time ago, but forgotten.
2017-06-01 16:49:57 +03:00
Dmitry Kuzmenko
4a2406f178
Py3: fixed some tests.
...
tls module: convert bytes to string
gzip util: use BytesIO for 'wb' file
django module: ignore arguments order in assert
pillar module: correctly test pillar merge
2017-06-01 16:49:57 +03:00
Dmitry Kuzmenko
fef0e0ea67
Catch errors on socket.shutdown
.
...
It throws an exception if the socket wasn't connected.
2017-06-01 16:49:57 +03:00
Dmitry Kuzmenko
2b3276077c
Py3: Fixed schema serialization. Enabled tests back.
2017-06-01 16:49:49 +03:00
Sergey Kizunov
07d5862773
unit.transport.tcp_test: Clean up channel after use
...
Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2017-05-31 18:30:19 -05:00
Sean Jenkins
095e5949a3
Fix unit tests for PR #41509
2017-05-31 17:22:07 -06:00
rallytime
63ea033ec3
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/modules/win_status.py
- salt/states/selinux.py
- tests/unit/modules/test_ssh.py
2017-05-31 14:29:12 -06:00
Mike Place
06ed4f077b
Merge pull request #41337 from Foxlik/2016.11
...
Fix #41335 - list index out of range on empty line in authorized_keys
2017-05-31 14:59:16 -05:00
Tomas Zvala
916fecb64f
modify ssh_test.py, to check empty lines and comments in authorized_keys #41335
2017-05-31 10:56:02 +02:00
Mike Place
713a671f09
Merge pull request #41471 from terminalmage/blockreplace-test
...
Fix a file.blockreplace test for Python 3
2017-05-30 13:48:22 -05:00
rallytime
675937e0ab
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- tests/unit/states/test_keystone.py
2017-05-30 10:16:14 -06:00
Nicole Thomas
f7411393e4
Merge pull request #41495 from isbm/bp-41405
...
Takeover from "rallytime:bp-41405"
2017-05-30 09:11:43 -06:00
Mike Place
491d4d941a
Merge pull request #41430 from DSRCorporation/bugs/py3_tests_nitrogen
...
One more bunch of tests fixes.
2017-05-26 16:53:37 -05:00
Mike Place
1a74084c38
Merge pull request #41463 from rallytime/merge-nitrogen
...
[nitrogen] Merge forward from 2016.11 to nitrogen
2017-05-26 16:35:47 -05:00
Mike Place
c345ddf111
Merge pull request #41459 from terminalmage/remove-warning
...
Remove iproute/ifconfig warning from test suite startup
2017-05-26 16:26:20 -05:00
Erik Johnson
4573a9cad5
Fix a file.blockreplace test for Python 3
...
This test uses file.accumulated to accumulate data, to be used in the
file.blockreplace state. However, because this data is stored in a
dictionary, the iteration order is different on different versions of
Python. As it is very clearly stated that the accumulator data structure
is a dictionary, rather than modifying the file.accumulated behavior
this commit just updates the test so that it searches for all values
that it should find between the block markers.
2017-05-26 15:51:38 -05:00
rallytime
9b84b751b2
Pylint fixes
2017-05-26 12:38:38 -06:00
Petr Michalec
6db8915021
Endpoint handling per region, fixes #35874
...
- extend tests for multiple regions
- region arg by default set to None
- print verbose changes to be exec.
2017-05-26 11:15:29 -06:00
rallytime
de85b49b90
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/config/__init__.py
- salt/modules/cp.py
- salt/states/saltmod.py
- salt/utils/__init__.py
- salt/utils/gzip_util.py
- tests/integration/shell/test_cp.py
2017-05-26 11:11:54 -06:00
Nicole Thomas
5bb9dac9ec
Merge pull request #41413 from gtmanfred/nitrogen
...
Write tests for Venafi runner
2017-05-26 10:09:23 -06:00
Nicole Thomas
824f2d3b69
Merge pull request #41398 from rallytime/merge-2016.11
...
[2016.11] Merge forward from 2016.3 to 2016.11
2017-05-26 09:17:48 -06:00
Erik Johnson
3751881f07
Remove iproute/ifconfig warning from test suite startup
...
Recent changes in the test suite no longer rely on listing IPv4
addresses to confirm that the daemons have started, so this warning is
now spurious.
2017-05-26 08:53:14 -05:00
Daniel Wallace
27d9caac42
tag venafi as destructive and expensive
2017-05-25 15:15:49 -06:00
Mike Place
8bb86813d1
Remove unnecessary pass statement
...
For lint.
2017-05-25 14:31:36 -06:00
Bo Maryniuk
fa5c2c1672
Add UT for unsupported operators
2017-05-25 12:55:46 -06:00
Bo Maryniuk
157b83c05a
Lintfixes
2017-05-25 12:55:46 -06:00
Bo Maryniuk
43abd345b2
Add UT for operator conditions
2017-05-25 12:55:46 -06:00
Bo Maryniuk
1053daf2d0
Add UT for typecheck on the output data
2017-05-25 12:55:46 -06:00
Bo Maryniuk
5c1259834f
Add UT for None type verification if version has been not passed
2017-05-25 12:55:46 -06:00
Bo Maryniuk
0dd27380b1
Add UT for wildcard finder usage
2017-05-25 12:55:46 -06:00
Bo Maryniuk
5e836a2543
Test the exact methods for matcher
2017-05-25 12:55:46 -06:00
Bo Maryniuk
2af4160a1a
Add UT for exact match of the pattern at the beginning
2017-05-25 12:55:46 -06:00
Bo Maryniuk
5a2248d254
Add UT for exact match of the pattern at the end
2017-05-25 12:55:46 -06:00
Bo Maryniuk
334c634826
Add UT to match multiple asterisks
2017-05-25 12:55:46 -06:00
Bo Maryniuk
f73b39fd3c
Add UT for matching all versions
2017-05-25 12:55:46 -06:00
Bo Maryniuk
a9c3c8bf03
Fix a docstring
2017-05-25 12:55:46 -06:00
Bo Maryniuk
344295666b
Rename UT to a proper name
2017-05-25 12:55:46 -06:00
Bo Maryniuk
369b4bf127
Add unit test scaffold for wildcard support
2017-05-25 12:55:46 -06:00
Nicole Thomas
36bc67e191
Merge pull request #41420 from rallytime/merge-nitrogen
...
[nitrogen] Merge forward from 2016.11 to nitrogen
2017-05-25 11:16:25 -06:00
Daniel Wallace
7091a0b4aa
specify when to run venafi tests
2017-05-25 10:27:40 -06:00
Daniel Wallace
e5f5514ec6
add venafi test
2017-05-25 10:26:54 -06:00
rallytime
ff0def408b
Whitespace fix
2017-05-25 10:26:06 -06:00
Erik Johnson
28a8605dea
Skip a test that doesn't apply to Python 3
...
This test is checking behavior that seems to have been specific to the
carbon package from PyPI. Since this is a Python 2-only module, and has
deps that do not exist on Python 3, it should not be run on Python 3.
2017-05-25 09:37:35 -05:00
Dmitry Kuzmenko
7a9b4a92af
Fixed syslog-ng test: it passes command as list, not as a string.
2017-05-25 14:33:43 +03:00
Dmitry Kuzmenko
6b0921e5ba
Py3 tests fixes: don't mock non-callable objects with return_value.
...
mock = MagicMock(return_value='') works for functions: here mock() will
return the value (empty string). But mock returns the MagicMock object.
Not sure why but it worked in Py2, but in Py3 os.path.join(mock,
'something'), for instance, returns an error.
Fixed the issues by avoiding of using mocks where we can use simple
strings.
2017-05-25 12:33:43 +03:00
Dmitry Kuzmenko
67e0c3e166
Terminate gpg-agent after each test.
...
This is actual for gnupg 2.1 that requires the agent and starts it
automatically. But since each test creates a new keystore tests become
fail after the first one starts gpg-agent.
2017-05-25 12:33:43 +03:00
rallytime
9ff2694155
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- pkg/salt-minion.service
- salt/modules/junos.py
- salt/modules/localemod.py
- salt/modules/win_system.py
- salt/states/junos.py
- tests/unit/modules/test_localemod.py
- tests/unit/modules/test_win_powercfg.py
- tests/unit/states/dockerng_test.py
2017-05-24 16:32:59 -06:00
Nicole Thomas
460af48f1f
Merge pull request #41390 from rallytime/merge-nitrogen
...
[nitrogen] Merge forward from 2016.11 to nitrogen
2017-05-24 15:27:22 -06:00
rallytime
537fd763dc
Rename proxy test files to use test_* syntax
2017-05-24 13:03:21 -06:00
Mike Place
88fd3c0ed9
Merge pull request #41336 from mcalmer/fix-locale-on-SUSE
...
fix setting and getting locale on SUSE systems
2017-05-24 12:46:07 -05:00
rallytime
098ed60d1b
Rework proxy minion test files to use new import styles
2017-05-24 10:23:57 -06:00
rallytime
5b27c2daf8
Comment out/remove proxy pieces from integration tests file
...
This was left over from a merge-forward. The proxy minion testing
pieces could not be completely merged-forward due to large conflicts
in this file. Please see the comment in PR #41113 for more information.
2017-05-24 09:51:00 -06:00
Benjamin Drung
33a7f8b2ec
Fix typos
...
lintian found several spelling errors.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2017-05-24 12:50:29 +02:00
rallytime
d2d9a3d29f
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- doc/ref/cli/salt-cp.rst
- salt/config/__init__.py
2017-05-23 15:58:14 -06:00
rallytime
616ac7289b
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/config/__init__.py
- salt/modules/elasticsearch.py
- tests/integration/__init__.py
2017-05-23 10:36:41 -06:00
Dmitry Kuzmenko
3cd0f5ebcf
Check master shut down correctly.
2017-05-23 11:53:56 +03:00
Dmitry Kuzmenko
4ed0f8ed4e
Fixed grains module test: Arch release is 'rolling', not an empty str.
2017-05-23 11:53:56 +03:00
Dmitry Kuzmenko
583e3b9a5a
Update pip version in pip upgrade test by compatibility reason.
...
6.0 version doesn't work in a modern environment.
2017-05-23 11:53:56 +03:00
Dmitry Kuzmenko
d80fa95f10
Add venv version of test_pip_installed_removed to work as non-root.
2017-05-23 11:53:56 +03:00
Dmitry Kuzmenko
9f31428129
Update ACL module test to work as non-root.
2017-05-23 11:53:56 +03:00
Mike Place
1ba95684a9
Merge pull request #41113 from cro/proxy_auto_test2
...
Rescue proxy_auto_tests PR from git rebase hell
2017-05-22 12:05:07 -05:00
C. R. Oldham
6db31ce52a
Fix problem with sysrc on FreeBSD, YAML overeager to coerce to bool and int.
...
Fix problem with sysrc on FreeBSD, YAML overeager to coerce to bool
2017-05-20 19:39:22 -06:00
rallytime
c6c1d30c48
Merge branch '2016.11' into 'nitrogen'
...
Conflicts:
- salt/modules/yumpkg.py
- salt/spm/__init__.py
- tests/unit/modules/test_zypper.py
- tests/unit/utils/test_network.py
2017-05-20 17:07:34 -06:00
Mike Place
d617c9fe72
Merge pull request #41265 from terminalmage/issue41234
...
yumpkg: fix latest_version() when showdupesfromrepos=1 set in /etc/yum.conf
2017-05-19 13:49:58 -05:00
Michael Calmer
f30f5c8a25
fix unit tests
2017-05-19 13:28:52 +02:00