Commit graph

101 commits

Author SHA1 Message Date
Pedro Algarvio
e157459016 Switch to pytest-salt-factories 2020-05-07 16:00:11 -07:00
Pedro Algarvio
a115ccfcb7 Reuse code instead of duplicating it 2020-04-27 07:35:28 -07:00
Pedro Algarvio
0c225de432 Implement the requires_salt_states marker 2020-04-27 07:35:28 -07:00
Pedro Algarvio
6170458fc6 Handle race condition when reaping astray processes 2020-04-27 07:35:28 -07:00
Pedro Algarvio
2ccf2d9d80 Reset PyTest's catch_log_handler after test since pyTest doesn't do it. 2020-04-27 07:35:28 -07:00
Pedro Algarvio
63c1d2edf0 Temporarily skip tests which were simply ignored before pytest 2020-04-27 07:35:28 -07:00
Pedro Algarvio
2d4d1ff6d4 Only hack non function scoped fixtures 2020-04-27 07:35:28 -07:00
Pedro Algarvio
a51872b300 For unitest.TestClass subclasses we need to use pytest_runtest_protocol instead 2020-04-27 07:35:28 -07:00
Pedro Algarvio
22cdd04f07 Hack PyTest's fixture finalization timing 2020-04-27 07:35:28 -07:00
Pedro Algarvio
4901e596e7 Handle windows test whitelisting pytest markers 2020-04-27 07:35:28 -07:00
Pedro Algarvio
8d81f62452 Move static norecursedirs to pytest.ini 2020-04-27 07:35:28 -07:00
Pedro Algarvio
3423a7b6fe
Rework test group selection logic 2020-04-22 12:10:45 +01:00
Daniel A. Wozniak
67d7a5a427 Merge branch 'master' into pr/56249 2020-04-20 06:56:47 +00:00
Blacken Salt
0b2a5613b3
Blacken salt 2020-04-03 13:05:41 -05:00
Pavel Skuratovich
cdd7ec02c3 Replace incorrectly used "it's" by "its" 2020-02-26 00:57:58 +03:00
Pedro Algarvio
35646c5ed9
Fix PyLint broad-except 2020-01-03 12:57:52 +00:00
Pedro Algarvio
44fbc4004a
Tell PyTest tests were skipped by a mark 2019-12-17 18:20:46 +00:00
Pedro Algarvio
c4712e3b78
Add some pylint disables 2019-12-17 18:20:45 +00:00
Pedro Algarvio
7de939f6b2
All salt imports should be done at the global module level 2019-12-17 18:20:45 +00:00
Pedro Algarvio
b539b561e0
The skip_if_not_root pytest marker is now windows compatible 2019-12-17 18:20:45 +00:00
Pedro Algarvio
64a3739d00
Use salt.serializers.yaml.deserialize() to avoid deprecation warnings 2019-12-17 18:20:45 +00:00
Pedro Algarvio
1c5d39ed31
Fix virtualenv binary discovery for windows 2019-12-17 18:20:45 +00:00
Pedro Algarvio
96cac845d9
Apply the same config settings under PyTest as in bdf24f4064 2019-12-17 18:20:45 +00:00
Pedro Algarvio
3f60d83694
Implement requires_salt_modules as a pytest marker 2019-12-17 18:20:44 +00:00
Pedro Algarvio
85e387d13b
Switch to sminion support code 2019-12-17 18:20:44 +00:00
Pedro Algarvio
ae304b539a
Actually cache the grains 2019-12-17 18:20:44 +00:00
Pedro Algarvio
fd51465445
Assert that any temp states or pillar is not left behind 2019-12-17 18:20:44 +00:00
Pedro Algarvio
c5e0a19116
Refactor helper to allow handling non state temp files 2019-12-17 18:20:43 +00:00
Pedro Algarvio
98ab80446e
Add a pytest helper to create a temporary state file
Conflicts:
* tests/conftest.py
2019-12-17 18:20:43 +00:00
Pedro Algarvio
56f016b52f
This is a custom fixture 2019-12-17 18:20:43 +00:00
Pedro Algarvio
602d722e91
Future proof the code 2019-12-17 18:20:43 +00:00
Pedro Algarvio
d10734a066
Under Py3 we need optimization_order set on the opts dictionary 2019-12-17 18:20:43 +00:00
Pedro Algarvio
8ff26f76d0
Add a session scoped grains fixture 2019-12-17 18:20:43 +00:00
Pedro Algarvio
eca0149b8b
Allow using the grains dictionary to skip tests 2019-12-17 18:20:42 +00:00
Pedro Algarvio
2d7bafdead
Don't break MacOS tests because of long unix socket's paths 2019-12-17 18:20:42 +00:00
Pedro Algarvio
85c86f1341
Fix tests/integration/states/test_file.py::FileTest::test_issue_50221 2019-12-17 18:20:41 +00:00
Pedro Algarvio
a82c0626cd
Absolutely no unicode in os.environ 2019-12-17 18:20:41 +00:00
Pedro Algarvio
b245954afe
Add test groups support 2019-12-17 18:20:40 +00:00
Pedro Algarvio
37fce97e9a
Move daemon fixtures to "where" they're used 2019-12-17 18:20:40 +00:00
Pedro Algarvio
509a912a8f
PyTest salt proxy tests support/fixes 2019-12-17 18:20:40 +00:00
Pedro Algarvio
14c1ccdce9
Tell the pytest engine to stop sending events once matched 2019-12-17 18:20:40 +00:00
Pedro Algarvio
86faed3102
Wipe the CLI scripts on start 2019-12-17 18:20:40 +00:00
Pedro Algarvio
4f5e8f3903
pillar_opts must remain True 2019-12-17 18:20:40 +00:00
Pedro Algarvio
708b5c9dc5
Coverage tracking fixes 2019-12-17 18:20:39 +00:00
Pedro Algarvio
1dfa4b998e
Concentrate test suite CLI script generation in PyTest Salt 2019-12-17 18:20:39 +00:00
Pedro Algarvio
70acab1d4a
Add missing reactor event handling to config 2019-12-17 18:20:39 +00:00
Pedro Algarvio
6119901b61
Fix hosts tests 2019-12-17 18:20:39 +00:00
Pedro Algarvio
c6b8e22e9b
Minor fixes to sub minion config 2019-12-17 18:20:39 +00:00
Pedro Algarvio
522b7fc31d
Patch RUNTIME_VARS.TMP_ROOT_DIR 2019-12-17 18:20:38 +00:00
Pedro Algarvio
a6607c2b90
Don't tweak RUNTIME_VARS.TMP nor RUNTIME_VARS.SYS_TMP_DIR 2019-12-17 18:20:38 +00:00