Commit graph

23291 commits

Author SHA1 Message Date
natalieswork
15849a5911 removing azure code from repo 2023-05-22 14:21:25 -04: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
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
MKLeb
9dc95bec19 Default to a 0 timeout if none is given in the terraform roster 2023-05-01 18:16:13 -07:00
Twangboy
3448a6c990 Add support for test=True to file.cached 2023-04-29 09:18:30 +01:00
Gareth J. Greenaway
34f2ed4b4e Check that the return data from the cloud create function is a dictionary before attempting to pull values out. 2023-04-29 09:15:52 +01:00
Pedro Algarvio
6766db4114 Add test case to assert that salt.client.ssh.SSH.fsclient.destroy() is called.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-28 14:35:17 +00:00
Pedro Algarvio
c33b56281b
Merge 3006.x into master
Conflicts:
* doc/ref/configuration/minion.rst
2023-04-28 10:20:04 +01:00
Pedro Algarvio
2e3f98a95c Add unit test to validate logic on calls to destroy()
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-28 06:24:27 +01:00
Pedro Algarvio
c94b36c441 Don't cache the file client at the class level
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-28 06:24:27 +01:00
Daniel A. Wozniak
3962fcd281 Add regression test for #64111
Test importing jinja files
2023-04-28 06:24:27 +01:00
Pedro Algarvio
13d571807c Add regression test for https://github.com/saltstack/salt/issues/64118
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-27 20:58:18 -07:00
Pedro Algarvio
7f2650ae37 Drop **kwargs usage and be explicit about the supported keyword arguments.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-27 20:58:18 -07:00
Twangboy
54be72064d Don't fail when registry.pol missing 2023-04-27 09:28:25 +01:00
Twangboy
4d52af1336 Join masters if it is a list 2023-04-27 09:25:45 +01:00
nicholasmhughes
98ecf8d45c fixes saltstack/salt#64150 cmd.run doesn't output changes in test mode 2023-04-27 09:20:59 +01:00
David Murphy
e25da80c7e Test to check for passing of dunder globals outside of execution modules 2023-04-26 09:50:47 -07:00
David Murphy
b78d771454 Updated test 2023-04-26 09:50:47 -07:00
Thomas Phipps
196023a086 fix #64082 2023-04-26 13:03:55 +01:00
Charles McMarrow
f0df597691
Merge branch '3006.x' into pick_nichol_cmd_fix 2023-04-25 21:52:58 -05:00
nicholasmhughes
62e438a4b6 fixes saltstack/salt#64150 cmd.run doesn't output changes in test mode 2023-04-25 21:47:40 -05:00
cmcmarrow
13437829fc Merge remote-tracking branch 'upstream/3006.x' into merge-forward/3006.x/master 2023-04-20 17:39:55 -05:00
Megan Wilhite
b35db04826 Fix setup.py called with salt args 2023-04-20 13:39:44 +00:00
Pedro Algarvio
672f6586d7 The repo.saltproject.io index.html file changed it's contents. Fix tests.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-19 16:56:12 +01:00