Commit graph

24967 commits

Author SHA1 Message Date
bdrx312
221420cd57 Use importlib.metadata for python >= 3.10
Add slots to DependencyGraph

Pinned networkx to 3.1

Pinned networkx to latest version supported on python 3.8 to support running salt-ssh to systems with python 3.8

Fixed assignment of env in support helpers VirtualEnv

Restrict networkx version with contraints instead of in base

Fixed setting context retcode in some places where errors are returned.
Removed unnecessary pylint ignore comment.
Reverted importlib-metadata version bump.

Added networkx to versions report

Actually fixed VirtualEnv env assignment from kwargs
2024-10-10 01:53:52 -07:00
bdrx312
66caa58346 Fix issues with requisites and aggregate
add install of networkx
fix aggregate to properly work with requisites
fix requisite checking to not be exponential
fix pkg aggregate to work when multiple states specify the same package
add some type hints to state.py to make the code easier to follow
fix case of pkg aggregate duplicate package.
2024-10-10 01:53:52 -07:00
Tyler Levy Conde
216764c69e Allow fstring linting 2024-09-30 12:10:26 -07:00
Tyler Levy Conde
7e334bce6f Allow fstring linting 2024-09-30 12:10:26 -07:00
Tyler Levy Conde
3bf8dda2e5 Relenv salt-ssh fully functional 2024-09-30 12:10:26 -07:00
Tyler Levy Conde
a74ce63e09 add basic ssh-relenv test 2024-09-30 12:10:26 -07:00
Olivier Mehani
15573a8f20 Add state.sls_exists to ssh client
fixes: #66893

Signed-off-by: Olivier Mehani <shtrom@ssji.net>

Fix typo in sate.sls_exists doctstrings (module & ssh wrapper)

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2024-09-26 15:11:09 -07:00
Carlos Álvaro
8416fe4311 feat(mac_brew_pkg): Add options to list_upgrades method 2024-09-19 14:49:57 -07:00
Carlos Álvaro
ae69865ab3 feat(mac_brew_pkg): Add options to remove method 2024-09-19 14:49:57 -07:00
Carlos Álvaro
436bdd50aa chore(mac_brew_pkg): Update tests to use Homebrew's full API v2 2024-09-19 14:49:57 -07:00
Carlos Álvaro
faa7a7ba97 feat(mac_brew_pkg): Improve latest_version support
Fixes #66291
2024-09-19 14:49:57 -07:00
Carlos Álvaro
c56afbe514 feat(mac_brew_pkg): Allow additional options in info_installed 2024-09-19 14:49:57 -07:00
vzhestkov
9ae5bcaeba
Add test to check extension_modules value alignment 2024-09-09 10:18:58 +02:00
Daniel Wozniak
246d066457
Merge pull request #66691 from dwoz/merge/master/3007.x
[master] Merge forward 3007.x into master
2024-08-19 15:00:26 -07:00
Daniel A. Wozniak
17c58d6587 Fix grains test on FIPS platforms
Also, clean up pre-commit
2024-08-17 14:39:54 -07:00
Daniel A. Wozniak
a87f2418aa Skip pkg tests that need new golden image 2024-08-15 23:19:17 -07:00
Daniel A. Wozniak
320641ca3c Remove commented out code 2024-08-08 18:39:40 -07:00
Daniel A. Wozniak
9c353984d7 Migrate grains tests to pytest 2024-08-08 17:03:15 -07:00
Daniel A. Wozniak
c24ccef828 Increase test timeout 2024-08-08 14:47:22 -07:00
Daniel A. Wozniak
aad1050e21 Increase test timeout 2024-08-07 15:06:51 -07:00
Daniel A. Wozniak
6a9fa5e2ec increase timeout 2024-08-07 00:58:49 -07:00
Daniel A. Wozniak
6597a6b115 Increase timeout on grains test 2024-08-06 17:08:07 -07:00
Daniel A. Wozniak
9d123b949e Skip chocolatey tests
These tests are failing because CI/CD is flooding chocolatey's APIs with
requests. They need to be refactored to not hit APIs outside of our
infrustructure.
2024-08-06 17:05:58 -07:00
Daniel A. Wozniak
f2b4410681 Fix pkg tests on arch 2024-08-06 00:26:24 -07:00
Daniel A. Wozniak
cd9753ff0f Skip ssh slsutil tests when system python is below 3.8 2024-08-05 22:23:46 -07:00
Carlos Álvaro
83225aca7d fix(macdefaults): Use salt.utils.files.open 2024-07-12 15:27:33 -07:00
Carlos Álvaro
dd5575e90f fix(macdefaults): Use TemporaryDirectory instead of TemporaryFile
TemporaryFile has no name, so NamedTemporaryFile would be a better option.

However, until Python 3.12, this file is deleted on close, which is not valid for this purpose. TemporaryDirectory is used instead.
2024-07-12 15:27:33 -07:00
Carlos Álvaro
5124936f9e feat(macdefaults): Allow selecting key separator 2024-07-12 15:27:33 -07:00
Carlos Álvaro
f5067e7853 feat(macdefaults): Add support for copmplex keys and nested dictionaries 2024-07-12 15:27:33 -07:00
Carlos Álvaro
aaba6250c0 feat(macdefaults): Add basic support for array-add and dict-add 2024-07-12 15:27:33 -07:00
Carlos Álvaro
19cbf09521 feat(macdefaults): Improve macOS defaults support 2024-07-12 15:27:33 -07:00
Pablo Suárez Hernández
22611256aa Add unit tests to cover rich rules normalization 2024-07-11 15:00:53 -07:00
Daniel A. Wozniak
539664c6ba Merge branch '3007.x' into merge/master/3007.x 2024-07-04 21:35:33 -07:00
Daniel A. Wozniak
cb09449401 Merge remote-tracking branch 'saltstack/3006.x' into merge/3007.x/3006.x 2024-07-03 15:51:48 -07:00
David Murphy
43c32e62df
Merge branch '3006.x' into 3006.x-wintask-fixes 2024-07-01 14:32:55 -06:00
Daniel A. Wozniak
62903c242f Merge forward 3006.x to 3007.x 2024-07-01 08:29:08 -07:00
Daniel Wozniak
847c94b56d
Merge pull request #66654 from dwoz/merge/3007.x/3006.x
[3007.x] Merge forward 3006.x into 3007.x
2024-06-27 05:39:18 -07:00
Daniel A. Wozniak
679605891d Skip test on photon 2024-06-26 12:43:04 -07:00
Daniel A. Wozniak
24d5a4ea4b Skip flawed test 2024-06-25 05:20:39 -07:00
Daniel A. Wozniak
a359f9188f More fips test fixes 2024-06-25 05:18:45 -07:00
jeanluc
8e54f28333 Fix state.test test, run pre-commit
The test fix was part of 6a715107fa
2024-06-25 00:16:04 -07:00
jeanluc
512f61d573 Add state.test to SSH wrapper
(cherry picked from commit 82f90e2f15)
2024-06-25 00:16:04 -07:00
jeanluc
6c62792c73 Sync config SSH wrapper with execution module
The wrapper has diverged significantly from the module.

* `option` did not check grains
* `option` did not have `omit_all` and `wildcard` parameters
* `get` missed several parameters: `delimiter`, `merge` and all `omit_*`
* There was no wrapping function for `items`.

(cherry picked from commit 8356be888b)
2024-06-25 00:16:04 -07:00
jeanluc
e9ecf30500 Add defaults SSH wrapper module
This is a 1:1 copy of the execution module, incl. tests...

(cherry picked from commit 47a609fab0)
2024-06-25 00:16:04 -07:00
jeanluc
94eaf94345 Add slsutil SSH wrapper
(cherry picked from commit ddc1197647)
2024-06-25 00:16:04 -07:00
Daniel A. Wozniak
6c6f0f41f0 fix configuration path test on windows 2024-06-24 09:54:49 -07:00
Daniel A. Wozniak
5f6c06ed56 Remove unwanted print statement 2024-06-24 09:54:49 -07:00
Daniel A. Wozniak
baee8afd3a Additional fixes for windows root_dir logic 2024-06-24 09:54:49 -07:00
Daniel A. Wozniak
9bfe7cf898 Fix cloud config root_dir paths on windows 2024-06-24 09:54:49 -07:00
Daniel A. Wozniak
57d2becb8f Add basic unit test for prepend_root_dir method 2024-06-24 09:54:49 -07:00