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
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
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