Commit graph

236 commits

Author SHA1 Message Date
Daniel A. Wozniak
b5b850167b Fix pre-commit 2025-02-20 23:50:36 -07:00
Barney Sowood
b0a06655e4 Update salt_factories_default_root_dir GH runners
Updates salt_factories_default_root_dir to use $RUNNER_TEMP if running
in CI and using Windows. This is setup by the Github Runner and
should be on the same disk as the checked out repo.

Without doing that, the salt_factories_default_root_dir will be in the
user's temp dir which is on a different disk. This causes the fileserver
to throw an error as it tries to combine file_roots from the repo and
pytest-salt-factories.
2025-01-17 15:00:54 -07:00
twangboy
72bb50cb27 Revert SSH settings 2024-09-11 16:52:27 -07:00
twangboy
36c65391a1 Add some SSH settings to fix the SSH Broken Pipe with Amazon Linux 2024-09-11 16:52:27 -07:00
Daniel A. Wozniak
277e56b113 Fix encryption config for tests 2024-06-18 22:12:20 -07:00
Daniel A. Wozniak
b32f09b655 Clean up un-needed re-init crypto and test fix 2024-06-18 22:12:20 -07:00
Pedro Algarvio
20f4966ca0 Stop ignoring the host keys, query and write them down as accepted. 2024-04-04 14:31:11 +01:00
Pedro Algarvio
37e56ba0a6 Reap child processes after each of the ssh tests in case of timeouts 2024-04-04 14:31:11 +01:00
Pedro Algarvio
16bead7bcc Remove log call which no longer makes sense 2024-03-20 11:55:21 +00:00
Shane Lee
76d750dce9 Make the tests run on Windows 2024-03-19 16:07:31 +00:00
Shane Lee
608a8ffd1c Whitelist package tests for Windows 2024-03-19 16:07:31 +00:00
Pedro Algarvio
d8cb80216e Remove custom fixture scope ordering code
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-03-14 12:32:06 +00:00
Pedro Algarvio
03ad4c6337 Update code to be Py3.7+ to reduce merge forward conflicts 2024-02-29 10:16:58 +00:00
Pedro Algarvio
3dea2eb541 Update pre-commit hook versions 2024-02-29 10:16:58 +00:00
Pedro Algarvio
b9be2dec1b Update and remove obsolete pylint plugins 2024-02-27 08:07:04 +00:00
Daniel A. Wozniak
736ae6c79e Fix ssh tests 2024-02-20 15:15:13 +00:00
Pedro Algarvio
1ad68fcd93 Increase timeouts on problematic tests and default to func_only=True 2024-02-16 14:03:50 -07:00
Pedro Algarvio
17dddc83ba Increase timeouts on problematic tests 2024-02-15 15:25:35 -07:00
Pedro Algarvio
5f63d785e9 Switch to a custom timeout_unless_on_windows marker
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-02-08 21:44:04 +00:00
Pedro Algarvio
5d96fdcad2 All tests except tests/pytests/{scenarios,pkg} timeout at 60 seconds
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-02-08 21:44:04 +00:00
Pedro Algarvio
7d6a97e7ba Timeout all unit tests at 60 seconds(if not running on windows)
We have some random test hangs and this will prevent that by forcing the
tests to fail in such cases.
Windows does not take part of this because it does not support
`signal.SIGABRT`, we would have to use threads.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-02-08 21:44:04 +00:00
Pedro Algarvio
02b147ae59 Add a FIPS enabled test run under PhotonOS 4 to the CI process
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
6cb08d68b4 Fix test groups issue when re-running test failures
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-25 16:19:02 +01:00
Pedro Algarvio
b0d0e32b50 Fail tests which require an sshd server but we can't find the path to sftp-server
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-19 10:45:22 -04:00
Pedro Algarvio
d9893886bb Fix the path to sftp-server on Photon OS 5
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-19 10:45:22 -04:00
Pedro Algarvio
1981c3784d Switch to more-itertools when splitting the tests into slices/chunks
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-04 20:54:42 +01:00
Pedro Algarvio
95b43d4226 Split integration tests into 2 chunks on full test runs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-04 20:54:42 +01:00
Pedro Algarvio
9da38c3898 Show which salt transport is being tested
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-29 16:12:59 +01:00
Pedro Algarvio
e646735f91 Define salt_factories_default_root_dir to try and avoid SELinux error on Fedora 38
```
Internal Server Error ("error setting label on mount source '/tmp': SELinux relabeling of /tmp is not allowed")
```

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-19 20:37:29 +00:00
Pedro Algarvio
49f3401741 Show sys.path on error
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-19 20:37:29 +00:00
Pedro Algarvio
e8d0e6a821 Revert "Allow running unit/functional tests against the salt checkout for now"
This reverts commit 7382aa187e.
2023-09-19 20:37:29 +00:00
Pedro Algarvio
cbcbe14d47 Bump to pytest-salt-factories==1.0.0rc25
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-19 20:37:29 +00:00
cmcmarrow
f47f8c8c4e flip default on --no-fast 2023-07-28 18:24:59 +01:00
cmcmarrow
b92c871307 unflip no-fast 2023-07-28 18:24:59 +01:00
cmcmarrow
9eac9cdef5 flip default on --no-fast 2023-06-30 08:21:30 +01:00
cmcmarrow
89e41f3155 unflip no-fast 2023-06-30 08:21:30 +01:00
Charles McMarrow
8869972f07 fix pre 2023-06-29 09:09:17 +01:00
Charles McMarrow
a7b178beca Fix Fast Tests 2023-06-29 09:09:17 +01:00
cmcmarrow
1f8dc3c510 allow flaky to double group 2023-06-29 09:09:17 +01:00
Charles McMarrow
ffa67b257c Update conftest.py 2023-06-29 09:09:17 +01:00
Charles McMarrow
115f3f6d6c Update conftest.py error msg 2023-06-29 09:09:17 +01:00
cmcmarrow
a1a414813b stop double test_labels 2023-06-29 09:09:17 +01:00
Charles McMarrow
8dc6dd61d2
[3006.x] rebase test labels (#64053)
* changelog

* add actions

* add tools

* typo

* add some debug

* pulls vs push

* fire on pullr only

* test port part 1

* part 2

* part 3

* part 4

* fix double run slow

* clean up

* update types

* reg workflow

* reg workflow
2023-04-15 18:19:58 -07:00
Pedro Algarvio
c4fa5a641f Only set ONEDIR_TESTRUN if onedir is True
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-25 10:05:16 -07:00
Pedro Algarvio
5dbf87ff17 Add skip_initial_onedir_failure marker support
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
2ca75aaed5 Adjust sys.path and the salt_factories_config fixture for onedir test runs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
7382aa187e Allow running unit/functional tests against the salt checkout for now
This is until the problem with the newer pytest-salt-factories releases is fixed.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
c3c464fd11 Fail to start pytest when testing onedir and the imported salt is the wrong one
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
db054f6232 We can now use the grains dictionary on pytest.mark.skipif
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-12-20 11:56:51 +00:00
Pedro Algarvio
180d24fa35
On pull requests, test show/changed then fast tests. On branch builds, full test run.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-12-14 19:39:17 +00:00