Commit graph

23291 commits

Author SHA1 Message Date
Gareth J. Greenaway
2515b31594
Merge pull request #63354 from nicholasmhughes/fix-pip.list-local-packages
Fix pip.list parsing of local packages
2023-02-01 11:36:18 -08:00
Vishal Gupta
f384888b6f metadata_azure: added tests and docs 2023-02-01 20:03:35 +05:30
Gareth J. Greenaway
eece6b8c03
Mock salt.utils.platform.is_windows as False for those tests that should simulate running on a system that is not Windows. 2023-01-31 15:09:52 -08:00
Gareth J. Greenaway
48344faaa5
Running pre-commit manually 2023-01-30 18:12:35 -08:00
Gareth J. Greenaway
380c9035ec
When the shell is passed as powershell or pwsh, only wrapper the shell in quotes if cmd.run is running on Windows. When quoted on Linux hosts, this results in an error when the keyword arguments are appended. 2023-01-30 18:02:28 -08:00
Megan Wilhite
7b54e4d320
Merge branch 'master' into fix-pip.list-local-packages 2023-01-30 13:45:37 -07:00
Megan Wilhite
becc27227d
Merge branch 'master' into fix_win_reg 2023-01-30 13:29:57 -07:00
Pedro Algarvio
00b13ff1cd Switch to the VirtualEnv helper
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-25 10:05:16 -07:00
Pedro Algarvio
92a845cacf Fix test by switching to a repo we own and pinning to a tag.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-25 10:05:16 -07:00
Pedro Algarvio
c4fa5a641f Only set ONEDIR_TESTRUN if onedir is True
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-25 10:05:16 -07:00
Twangboy
709578bfa2
Fix lint 2023-01-23 17:24:36 -07:00
Twangboy
788bfebb13
Fix pre-commit 2023-01-23 17:24:35 -07:00
Twangboy
15882e1fd5
Handle access denied 2023-01-23 17:24:35 -07:00
Pedro Algarvio
bb617f23d0 Migrate tests/pytests/integration/modules/test_saltcheck.py to functional
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
b018eae8b4 Set auth.pam.python in the config files to the path of python3 on the container
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
4dd5d53f1f Non onedir builds might be able to user the newer pip and setuptools requirements
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Daniel A. Wozniak
f00479ac70 Fix pre-commit 2023-01-21 07:51:50 +00:00
Daniel A. Wozniak
da39358b7e Fix pam unit tests 2023-01-21 07:51:50 +00:00
Pedro Algarvio
dc74f3aa45 Increase timeout to see if the test starts passing
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
3b31ae4076 Set PYTHONPATH pointing to CODE_ROOT so that tests can run against onedir
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
90bca1a7f9 Bump pip and setuptools requirements
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
606731993b Skip initial relenv onedir known failures
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
5dbf87ff17 Add skip_initial_onedir_failure marker support
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
2ca75aaed5 Adjust sys.path and the salt_factories_config fixture for onedir test runs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
7382aa187e Allow running unit/functional tests against the salt checkout for now
This is until the problem with the newer pytest-salt-factories releases is fixed.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Pedro Algarvio
c3c464fd11 Fail to start pytest when testing onedir and the imported salt is the wrong one
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-21 07:51:50 +00:00
Nicholas Hughes
011871264b
Merge branch 'master' into fix-pip.list-local-packages 2023-01-19 14:29:34 -05:00
Pedro Algarvio
1015d3a1ca Now that docker is installed on windows golden images, the tests run and fail.
Remove the whitelist marker.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-18 14:34:13 +00:00
Pedro Algarvio
6acef263b1 Stop triggering the jinja2.contextfunction deprecation warning
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-18 11:54:43 +00:00
Pedro Algarvio
5a0fd275eb Update setptoctitle requirements to stop getting the PY_SSIZE_T_CLEAN warning
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-18 11:54:43 +00:00
MKLeb
afd6e0fdc5 Try to give the redis container time to fully start up before running the redis cache tests 2023-01-13 07:44:03 -07:00
Gareth J. Greenaway
64fd0cdcb2
Merge pull request #63428 from dwoz/issue/master/62618
Syndics honor MoM acl
2023-01-12 15:07:01 -08:00
Frode Gundersen
62b050d084 migrate test_smartos_imgadm to pytest 2023-01-12 13:24:03 -07:00
Frode Gundersen
4a1d18d26c migrate test_rh_service to pytest 2023-01-12 13:22:35 -07:00
Frode Gundersen
14e31a6641 migrate test_pam to pytest 2023-01-12 13:20:32 -07:00
Frode Gundersen
1830881388 migrate test_logrotate to pytest 2023-01-12 13:18:12 -07:00
Frode Gundersen
1c8b5a7b05 migrate test_restartcheck to pytest 2023-01-12 12:57:17 -07:00
Wayne Werner
9cfdf3cc60
Workaround for docker images missing dependencies 2023-01-12 10:07:34 -06:00
Wayne Werner
416a59c2bb
Use test instead of ls
It's possible that the output of ls is different for some reason, but
test -f should always return 0 if the file exists, or 1 otherwise. We
want it to be not 0.
2023-01-11 17:56:53 -06:00
David Murphy
06ffb86cf7 Updated tests for purging of removed packages on Debian family systems 2023-01-11 10:53:46 -07:00
Daniel A. Wozniak
9d0ba70dfb Fix isort precommit 2023-01-11 10:36:27 -07:00
Daniel A. Wozniak
f6d1c78a03 Pam eauth not available on windows 2023-01-11 10:36:27 -07:00
Daniel A. Wozniak
4a141d5c68 Remove docker puge logic 2023-01-11 10:36:26 -07:00
Daniel A. Wozniak
957d27031f Test purging of docker resources before tests run 2023-01-11 10:36:26 -07:00
Daniel A. Wozniak
20edbfd4ac Address test issues 2023-01-11 10:36:25 -07:00
Wayne Werner
93dd8b4b10 Update tests
We want to ensure that targeting invalid minions does *not* allow us to
run any sort of shenanigans on the minions in question! This ensures
that valid commands (i.e. file.touch in this case) cannot inadvertently
be sent to minions that we don't have ACL for.
2023-01-11 10:35:48 -07:00
Daniel A. Wozniak
8296d5cd65 Auth errors result in error events 2023-01-11 10:35:48 -07:00
Daniel A. Wozniak
98a2655e9e Syndics honor MoM acl 2023-01-11 10:35:48 -07:00
Nicholas Hughes
54956c94e5
Merge branch 'master' into fix-pip.list-local-packages 2023-01-10 16:50:44 -05:00
Frode Gundersen
39d62287d8 fix fixture 2023-01-10 13:26:12 -07:00