Commit graph

24011 commits

Author SHA1 Message Date
Pedro Algarvio
8b762be8ad Decomplicate the eauth tests
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-02-08 21:44:04 +00: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
67a0e99bff Increase timeout on some slower tests
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
022f73aa7c Migrate tests/unit/states/test_pip_state.py::PipStateInstallationErrorTest::test_importable_installation_error to pytest
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
Shane Lee
c06ae0a939 Clean the key when it is read 2024-02-07 13:38:49 +00:00
Daniel A. Wozniak
d5b51912a1 Connect master tests need to be coroutines 2024-02-06 05:18:08 +00:00
Daniel A. Wozniak
0568864435 Ensure channels are closed on connection errors 2024-02-06 05:18:08 +00:00
Shane Lee
b1b0c37871 Update function docs 2024-02-03 08:17:49 +00:00
Shane Lee
da2bf5ccd4 Only catch error when value not found 2024-02-03 08:17:49 +00:00
Shane Lee
2368341eca Fix mac_shadow module
Fixes an issue with the mac_shadow module where it would fail to
retrieve values that weren't set yet... last login for example.
Also adds some tests and a changelog
2024-02-03 08:17:49 +00:00
Shane Lee
4157fe7ed0 Add changelog 2024-02-01 20:11:34 +00:00
Shane Lee
6645801eee Add some tests 2024-02-01 20:11:34 +00:00
Pedro Algarvio
c1d2c0833b
Merge 3005.x into 3006.x 2024-01-31 18:19:51 +00:00
Shane Lee
c8749f32b7 Parametrize the test 2024-01-31 16:47:04 +00:00
Shane Lee
2e8e32eebe Add simple test for _clean_key 2024-01-31 16:47:04 +00:00
Max Arnold
a14e899ffb Use the "features" option directly, add test 2024-01-31 13:18:22 +00:00
Max Arnold
4769ae0236 Address the code review comments 2024-01-31 13:18:22 +00:00
Max Arnold
85cce64de9 Add functional test 2024-01-31 13:18:22 +00:00
Pedro Algarvio
a51d3e00dd Fix the Mac OS onedir package download tests
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-25 15:34:33 +00:00
Pedro Algarvio
225464d3b5 Fix the Mac OS onedir package download tests
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-25 15:03:59 +00:00
Shane Lee
9baaab2135 Add some import tests for the package 2024-01-24 14:39:38 -07:00
Daniel A. Wozniak
a003271bf5 Fix fileroots tests 2024-01-24 14:37:58 -07:00
Daniel A. Wozniak
4ef0ca4f72 Fix test on windows 2024-01-24 14:37:58 -07:00
Daniel A. Wozniak
1109ee516f Clean up test fixtures 2024-01-24 14:37:58 -07:00
Daniel A. Wozniak
c10c8a7a20 Fix linter issue 2024-01-24 14:37:58 -07:00
Daniel A. Wozniak
e0cdb80b55 CVE fix 2024-01-24 14:37:58 -07:00
Pedro Algarvio
d8facee4de Fix and AttributeError on Windows
```
AttributeError: module 'signal' has no attribute 'SIGALRM'. Did you mean: 'SIGABRT'?
```
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-24 19:39:49 +00:00
Insoo Ha
a395534469 Resolve lint failed 2024-01-24 16:00:41 +00:00
Insoo Ha
4708fe8900 Fix missing error handling. 2024-01-24 16:00:41 +00:00
Insoo Ha
10b9aeda05 fix pre-commit 2024-01-24 16:00:41 +00:00
Insoo Ha
13cfa9341f Revert "fix pre-commit"
This reverts commit 9f779c68cfef5683fc8ffc2cf7f39a94366a4fe1.
2024-01-24 16:00:41 +00:00
Insoo Ha
95bccf06c2 fix pre-commit 2024-01-24 16:00:41 +00:00
Insoo Ha
98c92a3fac Use send_multipart instead of send when sending multipart message. 2024-01-24 16:00:41 +00:00
Shane Lee
4b6aad6230 Add some tests for unicode
Test reading and writing to utf-8, utf-16, utf-16-le and utf-32-le
ini files
2024-01-23 14:11:22 -07:00
Shane Lee
51adf9e0b2 Migrate ini_manage tests from unittests 2024-01-23 14:11:22 -07:00
Shane Lee
ba44de34fa Rebase to 3006.x 2024-01-23 14:11:22 -07:00
Thomas Phipps
d922f94e95 fix http unit test 2024-01-23 10:15:26 -07:00
Thomas Phipps
482ff737e6 try gate trustme 2024-01-23 10:15:26 -07:00
Thomas Phipps
c91e1d8a5e add https to proxy so that requests knows how to proxy https 2024-01-23 10:15:26 -07:00
Pedro Algarvio
4fbb0f9943 Fix and AttributeError on Windows
```
AttributeError: module 'signal' has no attribute 'SIGALRM'. Did you mean: 'SIGABRT'?
```
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-19 07:01:13 +00:00
Pedro Algarvio
6d5958d9e5 Migrate some crypt tests to pytest
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-18 16:05:39 +00:00
Pedro Algarvio
e75bc47c00 Migrate test to functional
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-17 16:58:39 -07:00
Pedro Algarvio
bd4422187c Fix test and no need to be root
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-17 16:58:39 -07:00
Pedro Algarvio
287de2b898 Timeout the tests instead of just hanging indefinitely
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-17 16:58:39 -07:00
Pedro Algarvio
281bf59f3c Cleanup aws unit test hang
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-17 16:58:39 -07:00
Daniel A. Wozniak
93ab61e46d Even more reliable pillar timeout test 2024-01-17 16:58:39 -07:00
Daniel A. Wozniak
688093c4aa Fix up test and close minion channels 2024-01-17 16:58:39 -07:00
Daniel A. Wozniak
828ce69b80 Destroy event_listener when app is no-longer used 2024-01-17 16:58:39 -07:00