Daniel A. Wozniak
d85644015c
Only warn when connect was called
2023-11-22 12:48:56 +00:00
Ryan Addessi
b06444317f
Update tests/pytests/functional/states/file/test_directory.py
...
lgtm, ty
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2023-11-22 12:46:00 +00:00
Ryan Addessi
12ff4bf963
black
2023-11-22 12:46:00 +00:00
Ryan Addessi
7bc016f9fd
skip on windows
2023-11-22 12:46:00 +00:00
Ryan Addessi
5eb5d57ea0
trying another method
2023-11-22 12:46:00 +00:00
Ryan Addessi
3069df132b
& 0o7777
2023-11-22 12:46:00 +00:00
Ryan Addessi (raddessi)
7d07076040
precommit
2023-11-22 12:46:00 +00:00
Ryan Addessi (raddessi)
1913f5dda8
add a test
2023-11-22 12:46:00 +00:00
Shane Lee
92a9707420
Put cleanup in a try/except block
...
If it fails to cleanup the PAexec binaries, it should still continue
2023-11-21 16:42:21 -08:00
MKLeb
7370733bae
Fix windows tests
2023-11-21 12:28:20 +00:00
MKLeb
4c7f477d80
Migrate tests/integration/modules/test_jinja.py
to pytest
2023-11-21 12:28:20 +00:00
MKLeb
55b1ff7b64
Migrate tests/integration/renderers/test_jinja.py
to pytest
2023-11-21 12:28:20 +00:00
MKLeb
83ab0d8807
Add full coverage for the jinja filters
2023-11-21 12:28:20 +00:00
MKLeb
907e334361
Add some more filter tests in test_jinja_filters.py
2023-11-21 12:28:20 +00:00
MKLeb
018dbfacab
Add full coverage for SaltCacheLoader
2023-11-21 12:28:20 +00:00
MKLeb
9afc4ca7d3
Add test for pillar_rend=True
2023-11-21 12:28:20 +00:00
Pedro Algarvio
43e17e62ac
Remove the custom pyinstaller support code needed for Salt < 3006.x
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-21 07:26:08 +00:00
Shane Lee
3b8337c371
Add some more tests for LGPO module
...
Split out some of the tests into their own file
2023-11-20 06:46:26 +00:00
Pedro Algarvio
9e1bdd1415
Skip pyinstaller related tests
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-19 19:42:47 +00:00
nicholasmhughes
109a62c779
fixes saltstack/salt#65501 file.comment ignore_missing not working with multiline char
...
(cherry picked from commit c5fbfa1fe7
)
# Conflicts:
# salt/states/file.py
2023-11-17 07:11:46 +00:00
Joe Groocock
238a744bcb
Fix vt.Terminal failing test: test_log_sanitize
...
Fixes failing test added in a09b4f4450
We can't assume tests are run at debug level, so this ensures the test
passes regardless of what logging level is currently set by capturing
the output in caplog at DEBUG which stream_stdout/stream_stderr uses by
default.
Signed-off-by: Joe Groocock <jgroocock@cloudflare.com>
2023-11-16 12:45:23 +00:00
Pedro Algarvio
c13898620a
Let's just skip on Aarch64 instead
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
a09afcba68
Use -eq 0
instead of == 0
in shell script logic
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
066afb90f0
Skip tests which can't run, or even pass on FIPS enabled platforms
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
c5db6bf766
Flush the logging handler just to be sure
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
dc365fdce3
Switch to sha256
as the hash_type
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
023b1504d0
Remove unused variables
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
265ec5becf
Cannot currently create virtual environments on a FIPS enabled platforms
...
See https://github.com/saltstack/salt/issues/65444
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
3ed6e05262
Don't use hashlib.md5
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
3f3154ed41
Use `sha256
as the default
hash_type
`. It has been the default since Salt v2016.9
...
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +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
Daniel A. Wozniak
2ddd5fce46
Use context manager to ensure channel is closed properly
2023-11-14 17:52:55 +00:00
Daniel A. Wozniak
6e5a301ca6
Fix test when using context manager is used
2023-11-14 17:52:55 +00:00
Daniel A. Wozniak
be5ef66a3a
Connect callback closes it's request channel
2023-11-14 17:52:55 +00:00
David Murphy
ee75a65837
Updated test per reviewer's comments
2023-11-14 17:00:07 +00:00
David Murphy
1bbe6489fd
Ensure quoted filespec when using egrep to allow for regex with selinux
2023-11-14 17:00:07 +00:00
David Murphy
c9c0ad0b46
Further test refractoring from unittest to pytest per reviewer comments
2023-11-14 16:53:15 +00:00
David Murphy
8ffa21355d
Parameterize as per reviewer comments
2023-11-14 16:53:15 +00:00
David Murphy
14fdf49939
Updated for further reviewer comments
2023-11-14 16:53:15 +00:00
David Murphy
350f04e058
Updated test per reviewer comments
2023-11-14 16:53:15 +00:00
David Murphy
ac2bedab23
Update tests for salt/utils/network.py as per reviewer, and fix netmask bug
2023-11-14 16:53:15 +00:00
David Murphy
beea32d839
Allow for Photon returning the wrong thing for IPv4 localhost test
2023-11-14 16:53:15 +00:00
David Murphy
903778d83f
Re-arranged the IPv6 localhost test and allowed for forms of Arch
2023-11-14 16:53:15 +00:00
David Murphy
6809e97146
Added debug logic to determine correct value for test localhost on IPv6
2023-11-14 16:53:15 +00:00
David Murphy
66fd7a5096
Update localhost and IPv6 tests for Debian 12 and Arch
2023-11-14 16:53:15 +00:00
David Murphy
3fb20089bb
Cleaned up typo
2023-11-14 16:53:15 +00:00
David Murphy
a4a11986b3
Added debugging for localhost tests
2023-11-14 16:53:15 +00:00
David Murphy
5f8130a592
Updated tests and mark other old OS's as no coverage
2023-11-14 16:53:15 +00:00
David Murphy
fbd2fb282a
Updated localhost IPv6 tests to allow for different Linux OSs
2023-11-14 16:53:15 +00:00
David Murphy
eac9121a87
Update tests
2023-11-14 16:53:15 +00:00