Commit graph

111521 commits

Author SHA1 Message Date
Bryce Larson
1a9b7be0e2 add distro_arch 2021-04-09 14:51:17 -07:00
Bryce Larson
6c59577df8 add ubuntu-2004-amd64 m2crypto pycryptodome and tcp tests 2021-04-09 14:51:17 -07:00
Frode Gundersen
6fa95b058b update releasenotes 3003 2021-04-06 06:47:03 -04:00
Daniel A. Wozniak
9242a14ebc Fix warts in changelog 2021-03-23 15:27:01 -07:00
Frode Gundersen
982431e0d4 update docs 3003 - newline 2021-03-23 12:11:50 -07:00
Frode Gundersen
a586f9df19 update docs 3003 2021-03-23 12:11:50 -07:00
Daniel A. Wozniak
9fbb63f3fb Fix tests and add changelog 2021-03-23 14:05:29 -04:00
Daniel A. Wozniak
605c654cf9 Fix pre-commit 2021-03-23 14:05:29 -04:00
Daniel A. Wozniak
a94e25f5aa Initial pass at fips_mode config option 2021-03-23 14:05:29 -04:00
Gareth J. Greenaway
f34b7a1aa1 Update 59804.removed 2021-03-23 13:27:03 -04:00
Gareth J. Greenaway
c92a98f6c2 Renaming changelog file. 2021-03-23 13:27:03 -04:00
Gareth J. Greenaway
33c7a57ba7 Adding changelog. 2021-03-23 13:27:03 -04:00
Gareth J. Greenaway
56aabf224b Removing the _ext_nodes deprecation warning and alias. 2021-03-23 13:27:03 -04:00
Megan Wilhite
d536face8c Uncomment Sulfur release name 2021-03-23 10:21:22 -04:00
Megan Wilhite
bececdef4a Bump deprecation release for neutron 2021-03-23 10:21:22 -04:00
Daniel A. Wozniak
e5a792b375 Clean up test 2021-03-23 08:43:40 -04:00
Daniel A. Wozniak
d778ee14be Fix linter issues 2021-03-23 08:43:40 -04:00
Daniel A. Wozniak
de8db1549d _get_initial_pillar function returns pillar 2021-03-23 08:43:40 -04:00
Daniel A. Wozniak
1434716e70 Add changelog for #59773 2021-03-23 08:43:40 -04:00
Daniel A. Wozniak
0403439277 Fix for issue #59773
- When instantiating the loader grab values of grains and pillars if
  they are NamedLoaderContext instances.
- The loader uses a copy of opts.
- Impliment deepcopy on NamedLoaderContext instances.
2021-03-23 08:43:40 -04:00
Elias Probst
ebcf77e232 modules/match: add missing "minion_id" in Pillar example
The documented Pillar example for `match.filter_by` lacks the `minion_id` parameter. Without it, the assignment won't work as expected.
- fix documentation
- add tests:
  - to prove the misbehavior of the documented example
  - to prove the proper behaviour when supplying `minion_id`
  - to ensure some misbehaviour observed with compound matchers doesn't occur
2021-03-23 08:41:56 -04:00
Megan Wilhite
b9c52e4619 Patch sys.platform for test_rsax931 tests 2021-03-22 15:52:34 -04:00
Hoa-Long Tam
0ef344ee2a Fix description of test_find_libcrypto_with_system_before_catalina 2021-03-22 15:52:34 -04:00
Hoa-Long Tam
9bf4912030 Update _find_libcrypto tests
This commit simplifies the unit tests for _find_libcrypto by mocking out the
host's filesystem and testing the common libcrypto installations (brew, ports,
etc.) on Big Sur. It simplifies the tests for falling back on system versions
of libcrypto on previous versions of macOS.
2021-03-22 15:52:34 -04:00
Hoa-Long Tam
cdd5233852 Make _find_libcrypto fail on Big Sur if it can't find a library
Right now, if `_find_libcrypto` can't find any externally-managed versions of
libcrypto, it will fall back on the pre-Catalina un-versioned system libcrypto.
This does not exist on Big Sur and it would be better to raise an exception
here rather than crashing later when trying to open it.
2021-03-22 15:52:34 -04:00
Hoa-Long Tam
6f7203baff Add changelog entry 2021-03-22 15:52:34 -04:00
Megan Wilhite
f1df562b6d Add changelog for 59808 2021-03-22 15:52:34 -04:00
krionbsd
bf845a1f14 Add test case 2021-03-22 15:52:34 -04:00
Hoa-Long Tam
484f8b6b0d Check $HOMEBREW_PREFIX when linking against libcrypto
When loading `libcrypto`, Salt checks for a Homebrew installation of `openssl`
at Homebrew's default prefix of `/usr/local`. However, on Apple Silicon Macs,
Homebrew's default installation prefix is `/opt/homebrew`. On all platforms,
the prefix is configurable.  If Salt doesn't find one of those `libcrypto`s,
it will fall back on the un-versioned `/usr/lib/libcrypto.dylib`, which will
cause the following crash:

    Application Specific Information:
    /usr/lib/libcrypto.dylib
    abort() called
    Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.

This commit checks $HOMEBREW_PREFIX instead of hard-coding `/usr/local`.
2021-03-22 15:52:34 -04:00
Gareth J. Greenaway
519049d16e Update salt/modules/keystone.py
Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>
2021-03-22 06:54:05 -04:00
Gareth J. Greenaway
274db7b64d Updating warnutil version to Phosphorous. 2021-03-22 06:54:05 -04:00
Gareth J. Greenaway
9a4b379290 bump deprecation warning to Silicon. 2021-03-22 06:54:05 -04:00
Megan Wilhite
65ee9dfc1d update wording in changelog 2021-03-18 10:39:24 -04:00
Megan Wilhite
c6776fb823 Remove glance state module in favor of glance_image 2021-03-18 10:39:24 -04:00
Daniel Wozniak
fb48254ec4
Merge 3002.6 bugfix changes (#59822)
* Pass `CI_RUN` as an environment variable to the test run.

This allows us to know if we're running the test suite under a CI
environment or not and adapt/adjust if needed

* Migrate `unit.setup` to PyTest

* Backport ae36b15 just for test_install.py

* Only skip tests on CI runs

* Always store git sha in _version.py during installation

* Fix PEP440 compliance.

The wheel metadata version 1.2 states that the package version MUST be
PEP440 compliant.

This means that instead of `3002.2-511-g033c53eccb`, the salt version
string should look like `3002.2+511.g033c53eccb`, a post release of
`3002.2` ahead by 511 commits with the git sha `033c53eccb`

* Fix and migrate `tests/unit/test_version.py` to PyTest

* Skip test if `easy_install` is not available

* We also need to be PEP440 compliant when there's no git history

* Allow extra_filerefs as sanitized kwargs for SSH client

* Fix regression on cmd.run when passing tuples as cmd

Co-authored-by: Alexander Graul <agraul@suse.com>

* Add unit tests to ensure cmd.run accepts tuples

* Add unit test to check for extra_filerefs on SSH opts

* Add changelog file

* Fix comment for test case

* Fix unit test to avoid failing on Windows

* Skip failing test on windows

* Fix test to work on Windows

* Add all ssh kwargs to sanitize_kwargs method

* Run pre-commit

* Fix pylint

* Fix cmdmod loglevel and module_names tests

* Fix pre-commit

* Skip ssh tests if binary does not exist

* Use setup_loader for cmdmod test

* Prevent argument injection in restartcheck

* Add changelog for restartcheck fix

* docs_3002.6

* Add back tests removed in merge

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>
Co-authored-by: Bryce Larson <brycel@vmware.com>
Co-authored-by: Pablo Suárez Hernández <psuarezhernandez@suse.com>
Co-authored-by: Alexander Graul <agraul@suse.com>
Co-authored-by: Frode Gundersen <fgundersen@saltstack.com>
2021-03-18 10:38:23 -04:00
Sage the Rage
4af72e7875 Update issue templates
Adding `needs-traige` label to Bug, Docs, Feature and adding Test Failure template
2021-03-10 07:39:45 -05:00
Daniel A. Wozniak
c13593b89b Attempt to fix on darwin freebsd 2021-03-06 14:21:54 -07:00
Daniel A. Wozniak
04c91089e4 Attempt to fix on darwin OSes 2021-03-06 14:21:54 -07:00
Daniel A. Wozniak
0ed184fcef Fix flaky multimaster tests 2021-03-06 14:21:54 -07:00
Pedro Algarvio
10fdf2f9d7 .venv_dir is now a pathlib.Path instance 2021-03-06 16:14:35 -05:00
Frode Gundersen
c9b2d89267 update releasenotes 2021-03-05 18:24:29 -05:00
Frode Gundersen
fbb249c4df update changelog/releasenotes for 3003 2021-03-05 18:24:29 -05:00
Pedro Algarvio
ac4ea9820f Don't cast venv_dir to a string 2021-03-05 18:16:51 -05:00
Pedro Algarvio
4671573207 Make sure venv_dir is always a pathlib.Path instance 2021-03-05 18:16:51 -05:00
Frode Gundersen
e64854fdb9 Update neutron.py 2021-03-05 18:16:06 -05:00
Frode Gundersen
b82eed7de8 change back deprecation warnings 2021-03-05 18:16:06 -05:00
Frode Gundersen
2fdb5d4451 aluminium reference update to 3003 2021-03-05 18:16:06 -05:00
Charles McMarrow
b4c356c5cb Delete test_x509.py 2021-03-05 12:35:40 -05:00
cmcmarrow
b5e8b484fe fix test and clean up x509 2021-03-05 12:35:40 -05:00
cmcmarrow
84904862bc add test and log 2021-03-05 12:35:40 -05:00