Commit graph

111387 commits

Author SHA1 Message Date
Pedro Algarvio
dc131a9369 Address Bandit's B602(subprocess_popen_with_shell_equals_true) on the test suite 2021-03-03 06:21:53 -05:00
Pedro Algarvio
fd9f9e94f8 Ignore Bandit's B103(set_bad_file_permissions)
When external authentication is involved, we should allow these systems
to write to salt's bus?
2021-03-03 06:21:53 -05:00
Pedro Algarvio
e3cb97a4ed Ignore Bandit's B402(blacklist) regarding ftplib
The choice to use it or not is on the user's hands.
2021-03-03 06:21:53 -05:00
Pedro Algarvio
a4dd864ef6 Ignore Bandit's B413(blacklist) regarding PyCrypto
The Salt project is aware and only uses PyCrypto as a last resort.
Additionally, see #30287
2021-03-03 06:21:53 -05:00
Pedro Algarvio
43e4ac985a Address Bandit's B605(start_process_with_a_shell) flagged issue 2021-03-03 06:21:53 -05:00
Pedro Algarvio
16751fa002 Address Bandit's B602(subprocess_popen_with_shell_equals_true) flagged issue 2021-03-03 06:21:53 -05:00
Pedro Algarvio
fbdd6478d1 Bandit does not read .bandit when files are passed.
See https://github.com/PyCQA/bandit/issues/332
2021-03-03 06:21:53 -05:00
Pedro Algarvio
0453b7ac7e Don't run the B701(jinja2_autoescape_false) checks. 2021-03-03 06:21:53 -05:00
Pedro Algarvio
d16ab08a4d Start checking the salt code base with bandit 2021-03-03 06:21:53 -05:00
Megan Wilhite
7bff39ed0e Add changelog file for 56461 2021-03-02 13:47:54 -05:00
Jason Traub
e3cbba35f4 add salt_monitor beacon
pr suggestions
2021-03-02 13:47:54 -05:00
twangboy
ac4ecad325 Fix pre-commit 2021-03-02 09:07:53 -05:00
twangboy
e4f9545edf Fix failing unit test
unit.fileserver.test_roots.RootsTest.test_update_mtime_map
2021-03-02 09:07:53 -05:00
twangboy
1bdba8bd60 Revert removal of stringutils.to_bytes 2021-03-02 09:07:53 -05:00
Erik Johnson
7bf94390a0 Shoehorn in the pyupgrade stuff 2021-03-02 09:07:53 -05:00
Erik Johnson
40a16880e8 roots: Use rsplit instead of split to read from mtime_map
Also remove now-unnecessary use of binary file I/O and
to_unicode/to_bytes usage.
2021-03-02 09:07:53 -05:00
Pedro Algarvio
b5b6f24367 Only run check-docs on deleted files on CI.
The hook fails when we delete a module and don't delete the corresponding docs

This is a slow hook to run locally.
2021-03-02 08:42:19 -05:00
krionbsd
2d40084abc Move openvswitch state tests to pytest 2021-03-02 13:22:14 +00:00
krionbsd
f3d9833844 Move Gentoo portage state tests to pytest 2021-03-02 13:09:51 +00:00
krionbsd
394fbd3a42 Move pecl state tests to pytest 2021-03-02 13:09:28 +00:00
krionbsd
83810cd2ec Move pagerduty state tests to pytest 2021-03-02 13:08:47 +00:00
Gareth J. Greenaway
8e7e0cbe49 Fixing issue that this PR broke when querying pillar lists via index numbers. This change duplicates the handling of pillar values when the pillar key points at a dictionary. 2021-03-02 08:06:19 -05:00
Gareth J. Greenaway
8312e087aa Adding changelog. 2021-03-02 08:06:19 -05:00
Gareth J. Greenaway
8e8556a027 moving test to tests/pytests/integration/modules/test_pillar.py 2021-03-02 08:06:19 -05:00
ScriptAutomate
cb97a9bde7 Updating Twitch links 2021-03-02 07:42:07 -05:00
Ken Crowell
d3788da120 Update test from #58883 to work with new work 2021-03-01 16:51:56 -07:00
Ken Crowell
3059796b48 Add pkg state doc for zypper hold support 2021-03-01 16:51:56 -07:00
Ken Crowell
e71d7c341c Add Suse support to installed-hold integration test 2021-03-01 16:51:56 -07:00
Ken Crowell
191a6248d2 Allow both name and pkgs for zypper un/hold
This is expected by the pkg.installed state, and is consistent with
other package states.
2021-03-01 16:51:56 -07:00
Ken Crowell
e0a1928034 Add versionadded for zypperpkg un/hold 2021-03-01 16:51:56 -07:00
Ken Crowell
656b93d805 Clean up some split strings in yumpkg 2021-03-01 16:51:56 -07:00
Ken Crowell
107de4fecf Fix result statuses for zypper un/hold 2021-03-01 16:51:56 -07:00
Ken Crowell
a0265ebfa7 Run pre-commit against changed files 2021-03-01 16:51:56 -07:00
Ken Crowell
0e71279a18 Fix variously broken hold/lock zypper functions 2021-03-01 16:51:56 -07:00
Bo Maryniuk
1f80dca753 Add warnings 2021-03-01 16:51:56 -07:00
Bo Maryniuk
53018c09a2 Add unhold function 2021-03-01 16:51:56 -07:00
Bo Maryniuk
f70023aad8 Add hold function 2021-03-01 16:51:56 -07:00
James Howe
1e219c9074
Add SCRAM-SHA-256 support to postgres states (#59034)
* Tests for existing postgres_user states. Basic usage and password-related.

* Fix minor failing tests in postgres_user.present

* Make postgres_group consistent with postgres_user

Related: #59028

* Add support for SCRAM-SHA-256 for PostgreSQL.

Fixes: #51217

* Some additional old postgres tests that are now redundant.

* Add postgres changelog entries.

* Update documentation for 3003 release

* Convert DB_ARGS constant to fixture

* Simplify six auto-removal

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>

* filename_map.yml should still list pytests

* Another six removal simplification

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>

Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2021-03-01 13:39:48 -07:00
Ian Chilton
71d274c2d0 Fix typo in the states.x509 docs 2021-03-01 10:50:15 -07:00
Ian Chilton
6824a0742e Fix salt minion restart example in states.x509 docs 2021-03-01 10:50:15 -07:00
Joe Eacott
2ab53be54a update version check 2021-03-01 10:48:06 -07:00
Joe Eacott
c24b9f47c4 fix pre commit 2021-03-01 10:48:06 -07:00
Joe Eacott
5e2c94941a rm win 3.5 ci stuff and change string 2021-03-01 10:48:06 -07:00
Joe Eacott
7a789ab4ed update reqs 2021-03-01 10:48:06 -07:00
Joe Eacott
69042c5a9b blacken 2021-03-01 10:48:06 -07:00
Joe Eacott
8a1610dcd4 changes 2021-03-01 10:48:06 -07:00
Joe Eacott
c9990f9b6e blacken 2021-03-01 10:48:06 -07:00
Joe Eacott
374d9b899c changes 2021-03-01 10:48:06 -07:00
Joe Eacott
3c2fa2c7e8 upgrade pywinrm to latest 2021-03-01 10:48:06 -07:00
Joe Eacott
bc9b1a97fe remove scope 2021-03-01 10:48:06 -07:00