Commit graph

114609 commits

Author SHA1 Message Date
Alexander Graul
dcfe24fed7 state.apply: don't check for cached pillar errors
state.apply request new pillar data from the server. This done to always
have the most up-to-date pillar to work with. Previously, checking for
pillar errors looked at both the new pillar and the in-memory pillar.
The latter might contain pillar rendering errors even if the former does
not.

For this reason, only the new pillar should be checked, not both.
2022-10-06 13:27:19 -06:00
Leif Liddy
91efaea497 modified assert statements 2022-10-06 13:14:23 -06:00
Leif Liddy
18ee7cff5c modified comment 2022-10-06 13:14:23 -06:00
Leif Liddy
3f2f6286d8 change function name 2022-10-06 13:14:23 -06:00
Leif Liddy
39c347866f fixed formatting error v2 2022-10-06 13:14:23 -06:00
Leif Liddy
603afd9f99 fixed formatting error 2022-10-06 13:14:23 -06:00
Leif Liddy
bed96a944a add _get_flags tests 2022-10-06 13:14:23 -06:00
Leif Liddy
ddd057775e better summary 2022-10-06 13:14:23 -06:00
Leif Liddy
28669dd9bb remove unecessary check 2022-10-06 13:14:23 -06:00
Leif Liddy
8678adb7eb add changelog 2022-10-06 13:14:23 -06:00
Leif Liddy
53f8059cc3 remove tmp files 2022-10-06 13:14:23 -06:00
Leif Liddy
aaf6514db0 cleanup formating v3 2022-10-06 13:14:23 -06:00
Leif Liddy
3d087eaef6 cleanup formating v2 2022-10-06 13:14:23 -06:00
Leif Liddy
706230d94c general cleanup 2022-10-06 13:14:23 -06:00
Leif Liddy
4a7135b8fe rework _get_flags 2022-10-06 13:14:23 -06:00
Leif Liddy
cfed20d2a1 no need to populate _flags_acc
I don't see how an empty list could possibly be returned
Either getattr is going to return a value or its going to error
out.
2022-10-06 13:14:23 -06:00
Leif Liddy
00352ae6e0 _get_flags should return int 2022-10-06 13:14:23 -06:00
MKLeb
6d8ca439ce move roster unit tests to pytest 2022-10-06 12:37:57 -06:00
MKLeb
8112e8a445 changelog 2022-10-06 12:34:12 -06:00
MKLeb
2f2df11287 add and update tests 2022-10-06 12:34:12 -06:00
XelK
79bd783cff update formatting 2022-10-06 12:34:12 -06:00
XelK
f57c0929a1 add docs 2022-10-06 12:34:12 -06:00
xelk
13904ed5c9 [FEATURE REQUEST] #60700 - implemented autostart option 2022-10-06 12:34:12 -06:00
Alexander Graul
63cee6cd0f Add diff_attr parameter to zypper/yum upgrade
diff_attr works just like it does for pkg.install. Having the
option to return additional attributes can remove the need for a
follow-up list_pkgs call.

Fixes: https://github.com/saltstack/salt/issues/62031
2022-10-06 12:27:57 -06:00
Alexander Graul
84951f7cd6 Don't turn attr="all" into a list
pkg_resource.format_pkg_list expects its `attr` argument to be either a
list of attributes or the string "all" to indicate all available
attributes should be used for formatting.

Fixes: https://github.com/saltstack/salt/issues/62032
2022-10-06 12:27:57 -06:00
Alexander Graul
bb1fe9cf22 Add names and pkgs parameters to zypper.upgrade
Fixes https://github.com/saltstack/salt/issues/62030
2022-10-06 12:27:57 -06:00
Alexander Graul
4398d59c10 Migrate zypper.upgrade tests to pytest 2022-10-06 12:27:57 -06:00
Cesar Augusto Sanchez
c4c84ac403 fix: address review comments 2022-10-05 21:38:52 -07:00
Cesar Augusto Sanchez
de97822be5 fix: update cassandra_cql module to allow execution from CLI.
- add load_balancing_policy argument
2022-10-05 21:38:52 -07:00
Jan Zerebecki
5515989e84 Fix link to module zypperpkg in docs
Also change a few instances of the free standing name of yumpkg to yum
and aptpkg to apt, only the module has the postfix, not the package
manager.
2022-10-05 21:36:57 -07:00
MKLeb
fa2855abfe switch to explicit kwargs for headers and auth that are passed through to utils.http:query 2022-10-05 13:50:23 -07:00
MKLeb
39ee1d396c pre-commit and docs fixes 2022-10-05 13:50:23 -07:00
Alkivi
1e74b19ba9 fix(all) 2022-10-05 13:50:23 -07:00
Anthony Martinet
07b3c033a9 feat(http_pillar): added kwargs to handle extra option for http.query 2022-10-05 13:50:23 -07:00
jwyoungpm
8006ca52bb Apply suggestions from code review
more pythonic if/then/else on list

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2022-10-05 12:43:16 -06:00
James Young
72bd29cdc8 Add ability for wait_for_event to handle list event_id values 2022-10-05 12:43:16 -06:00
Gareth J. Greenaway
1c4beef6e0 removing tests/unit/files/rosters/sshknownhosts/known_hosts which is not longer needed. 2022-10-05 09:11:43 -07:00
Gareth J. Greenaway
2a9eb1895c Adding versionadded. 2022-10-05 09:11:43 -07:00
Gareth J. Greenaway
513b43b6ce moving test_sshknownhosts.py to pytest. 2022-10-05 09:11:43 -07:00
Gareth J. Greenaway
a3e5ba47d4 manually run pre-commit 2022-10-05 09:11:43 -07:00
Daniel A. Wozniak
60ccb9f5c0 Blacken changed files 2022-10-05 09:11:43 -07:00
Daniel A. Wozniak
5cc9143c45 Blacken changed files 2022-10-05 09:11:43 -07:00
Daniel A. Wozniak
c96e98ca39 Blacken changed files 2022-10-05 09:11:43 -07:00
Daniel A. Wozniak
d7c0c643cd Fix linter and docs 2022-10-05 09:11:43 -07:00
Gareth J. Greenaway
627f0c4a7c Porting PR #51840 to 2019.2.1 2022-10-05 09:11:43 -07:00
Twangboy
9822bc592f Rename changelog file 2022-10-05 09:18:04 -06:00
Twangboy
b1dd4482aa Fix some lint 2022-10-05 09:18:04 -06:00
Twangboy
906fddf4e0 Fixed issue with forward slashes on Windows with file.recurse 2022-10-05 09:18:04 -06:00
Gareth J. Greenaway
e7fdbf6709 Adding more functional tests for MySQL state module 2022-10-05 06:47:32 -06:00
Gareth J. Greenaway
d4041532b0 Need to use unique names for dummy modules between the tests. 2022-10-05 06:46:50 -06:00