Commit graph

23414 commits

Author SHA1 Message Date
Megan Wilhite
00c97d6865 Add test coverage and changelog 2023-05-23 14:26:27 +01:00
Pedro Algarvio
19025ad568 Skip tests/unit/{modules,states}/test_zcbuildout.py on windows.
It needs special work on the golden images to get SSL to properly work.
These steps are required because the code being tested is using
`easy_install` which does not know how to get certificates from `certifi`.
Since `easy_install` is too old, and deprecated, the extra work is not
worth it, plus, they are still being tested on other platforms.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-23 13:33:30 +01:00
Pedro Algarvio
80ff2f662d Skip tests/unit/{modules,states}/test_zcbuildout.py on windows.
It needs special work on the golden images to get SSL to properly work.
These steps are required because the code being tested is using
`easy_install` which does not know how to get certificates from `certifi`.
Since `easy_install` is too old, and deprecated, the extra work is not
worth it, plus, they are still being tested on other platforms.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-23 12:49:19 +01:00
Eric Graham
724fc20824 Run Black Pre-Commit Step 2023-05-22 19:56:16 +00:00
Eric Graham
926270054d Remove Silent Catch 2023-05-22 19:56:16 +00:00
Eric Graham
a467c04d04 Clarify Failing Test Message; Search for Entire Log Line in caplog 2023-05-22 19:56:16 +00:00
Eric Graham
071a65fb10 Rename Global Logger log to logger in pip_state.py 2023-05-22 19:56:16 +00:00
Eric Graham
3c552ecb90 Add unit test for #64169 2023-05-22 19:56:16 +00:00
jeanluc
6503765b3f Add test for issue 64232 2023-05-22 19:56:16 +00:00
Frode Gundersen
b91f363951 Update tests/pytests/unit/states/test_linux_acl.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2023-05-22 19:56:16 +00:00
Frode Gundersen
33e2538aa8 migrate unit_states_test_linux_acl to pytest 2023-05-22 19:56:16 +00:00
natalieswork
15849a5911 removing azure code from repo 2023-05-22 14:21:25 -04:00
Megan Wilhite
b2090e26bd
Merge branch 'master' into add-keyvalue-create_if_missing 2023-05-17 19:42:17 +00:00
pjcreath
7fc547faff Move the mac_user._kcpassword unit test into the pytests directory.
Also fix a typo in the pytests README.
2023-05-15 20:46:34 +00:00
pjcreath
402aa367ed Fix the password hashing function of mac_user.enable_auto_login
Fixes #64226
2023-05-15 20:46:34 +00:00
jeanluc
fceb58d543 Fix tests, return res dict 2023-05-15 20:45:48 +00:00
jeanluc
b622d96a62 Return minion_id on success
This makes checking the response downstream more reliable.
2023-05-15 20:45:48 +00:00
jeanluc
0873ece26c Add match runner 2023-05-15 20:45:48 +00:00
Nicholas Hughes
40ce1d1580
Merge branch 'master' into add-keyvalue-create_if_missing 2023-05-11 15:42:54 -04:00
Eric Graham
1e4bb8318e Run Black Pre-Commit Step 2023-05-10 20:49:34 +00:00
Eric Graham
092cb30f6d Remove Silent Catch 2023-05-10 20:49:34 +00:00
Eric Graham
8d682f09b3 Clarify Failing Test Message; Search for Entire Log Line in caplog 2023-05-10 20:49:34 +00:00
Eric Graham
45369f0367 Rename Global Logger log to logger in pip_state.py 2023-05-10 20:49:34 +00:00
Eric Graham
80713947ca Add unit test for #64169 2023-05-10 20:49:34 +00:00
jeanluc
816fdb8c20 Add test for issue 64232 2023-05-10 20:45:06 +00:00
Frode Gundersen
d629d47414 Update tests/pytests/unit/states/test_linux_acl.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2023-05-09 20:09:15 +00:00
Frode Gundersen
99261e77a5 migrate unit_states_test_linux_acl to pytest 2023-05-09 20:09:15 +00:00
jeanluc
4d617dd44a
Add signed_by_[any|all] parameters to gpg.verify (#63168)
* Add test for issue 63145

* Make gpg.verify respect gnupghome

* Add `signed_by_any`/`signed_by_all` params to gpg.verify

* Reconsider status check

* Fix tests

* Plug verification issue after status check reconsideration

Since missing pubkeys also cause the previous signature's
fingerprint to be overwritten, this would have led to
situations where the check could have passed when it
should not have.

* Cleanup logic

* Workaround python-gnupg issue

https://github.com/vsajip/python-gnupg/issues/214

* Adapt offical fix for workaround

ee94a7ecc1
That was very fast.

* Backport more meaningful test

* Update versionadded

* Avoid exception on import w/ missing gnupg lib

* Do not apply workaround on fixed versions

* Correct bool comparison

* Account for subkeys

sig_info["fingerprint"] contains the actual signing key's fingerprint,
which might be a subkey. The primary key's fingerprint is always found in
sig_info["pubkey_fingerprint"]. In cases where a signing subkey was
used, the intended behavior is still comparison with the primary key.

* Bump versionadded

* Rename changelog files to .md
2023-05-09 13:24:48 -06:00
Pedro Algarvio
dfa273bc5e
Merge 3006.x into master 2023-05-06 08:37:41 +01:00
Pedro Algarvio
9a94ec6d6a Confirm salt extensions are discoverable by salt when salt-pip installed
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-05 10:11:18 +01:00
Pedro Algarvio
42d3eaa6e6 HTTPS is also valid. Switch to parametrized test.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-04 10:32:13 +01:00
cmcmarrow
370d6e4f0f add tests and add support for an iter 2023-05-04 10:32:13 +01:00
Twangboy
88f223e1ca Fix test_reg, migrate to pytests 2023-05-03 20:51:28 -07:00
Twangboy
66e085740c make lgpo_reg enforce registry changes 2023-05-03 20:51:28 -07:00
Pedro Algarvio
87074deea0 Stop using the deprecated salt.transport.client imports.
Fixes #64186

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-03 08:24:36 +01:00
Charles McMarrow
bae0321af9
[3006.x] saltutil.refresh_grains(clean_pillar_cache=False) (#64176)
* flacky jail most have label

* add clean_pillar_cache arg

* add docs

* Revert "flacky jail most have label"

This reverts commit 0888b84fd0.

* add clean pillar cache refresh util

* dont clear unless refresh_pillar

* tests

* changelong
2023-05-02 18:18:48 -07:00
Gareth J. Greenaway
c673bc4542 Adding one more sub proxy. 2023-05-02 19:57:38 +00:00
Gareth J. Greenaway
beaa9ee3a5 removing from integration in favor of the in functional tests 2023-05-02 19:57:38 +00:00
Gareth J. Greenaway
418d575bb4 trying the large sub proxy as a functional test. 2023-05-02 19:57:38 +00:00
Gareth J. Greenaway
489f956a3c reduce the number of sub proxies. 2023-05-02 19:57:38 +00:00
Gareth J. Greenaway
eff6515760 temporarily removing the ping to the control proxy. 2023-05-02 19:57:38 +00:00
Gareth J. Greenaway
d051a6b9d6 Adding test_exit_status_correct_usage_large_number_of_minions to test_salt_deltaproxy.py to test starting deltaproxy with larger number of sub proxies. 2023-05-02 19:57:38 +00:00
Gareth J. Greenaway
abac2e04fa Revert "Updating integration tests to launch more sub proxies. Update single target tests to use a sample of 4 sub proxies for the target."
This reverts commit 8a08200d06.
2023-05-02 19:57:38 +00:00
Gareth J. Greenaway
de7c2f0515 Updating integration tests to launch more sub proxies. Update single target tests to use a sample of 4 sub proxies for the target. 2023-05-02 19:57:38 +00:00
Twangboy
cc627c024b Fix some lint 2023-05-02 08:22:37 -07:00
Twangboy
9ddc8d25eb Fix test fixture to remove key in HKCU 2023-05-02 08:22:37 -07:00
Twangboy
0e86853321 Fix pre-commit 2023-05-02 08:22:37 -07:00
Twangboy
13cd87b245 Fix state for User policy 2023-05-02 08:22:37 -07:00
Twangboy
afcd6a8114 Fix test description 2023-05-02 07:14:09 +01:00
Twangboy
962f708c92 Write some tests 2023-05-02 07:14:09 +01:00