Commit graph

24078 commits

Author SHA1 Message Date
Ryan Addessi (raddessi)
1913f5dda8 add a test 2023-11-22 12:46:00 +00:00
Sander Cornelissen
86fab4e358 Fix pylint issues in unit test for pip state
(cherry picked from commit a686ce00b2)
2023-11-22 08:52:34 +00:00
Sander Cornelissen
018f3260ff Add test for fix when user does not exists on pip
(cherry picked from commit f36b821e1a)
2023-11-22 08:52:34 +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
Sander Cornelissen
a686ce00b2 Fix pylint issues in unit test for pip state 2023-11-20 07:16:55 +00:00
Sander Cornelissen
f36b821e1a Add test for fix when user does not exists on pip 2023-11-20 07:16:55 +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
jeanluc
d7338a0e79 Support master tops on masterless minions
Also, make salt-ssh master tops behave like regular ones, i.e. merge the
returns of multiple master top modules for the same environment.
2023-11-17 11:34:02 +00:00
jeanluc
33d35f6336 Review comments 2 2023-11-17 09:18:30 +00:00
jeanluc
9718d1e617 Enable new func tests for GPG state module on Win 2023-11-17 09:18:30 +00:00
jeanluc
e1717bcf5a Commit review remarks 2023-11-17 09:18:30 +00:00
jeanluc
bad064ffc9 Clean up new module unit tests 2023-11-17 09:18:30 +00:00
jeanluc
b97022a705 Add test for issue 65169
gpg.present succeeds when the keyserver is unreachable
2023-11-17 09:18:30 +00:00
jeanluc
3e45b1f727 Backport fix for delete_key 2023-11-17 09:18:30 +00:00
jeanluc
311e2938c0 Backport more meaningful tests 2023-11-17 09:18:30 +00:00
jeanluc
3dbf49190f Backport message fixes 2023-11-17 09:18:30 +00:00
jeanluc
702a899a15 Add tests for issue 63159 2023-11-17 09:18:30 +00:00
jeanluc
94ae9f4fc9 Fix gpg.receive_keys returns success on failed import 2023-11-17 09:18:30 +00:00
jeanluc
ba395d7c27 Add tests for issue 63156 2023-11-17 09:18:30 +00:00
jeanluc
5fa3605611 Add tests for state module and issue 63144 2023-11-17 09:18:30 +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
nicholasmhughes
0557667bbf fixes saltstack/salt#63214 enable/disable broken if systemd service is an alias 2023-11-16 18:31:12 +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
Nicholas Hughes
040ae9e55c
[master] Add wildcard removal for aptpkg (#65221)
* fixes saltstack/salt#65220 add wildcard removal for aptpkg

* adding functional module tests for wildcard removal

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* fix functional pkg tests for wildcard

* adding pytest marks to skip yum tests on non-el systems

* fixing update method for match_wildcard dict

---------

Co-authored-by: Megan Wilhite <mwilhite@vmware.com>
2023-11-15 11:48:45 -08:00
nicholasmhughes
c5fbfa1fe7 fixes saltstack/salt#65501 file.comment ignore_missing not working with multiline char 2023-11-15 16:48:48 +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