Commit graph

23103 commits

Author SHA1 Message Date
Gareth J. Greenaway
800ca02398
Merge branch 'master' into metadata_azure 2023-02-09 09:45:51 -08:00
Pedro Algarvio
3fa827925f Fix pre-commit by changing the pyzmq requirements.
It's now `pyzmq>=20.0.0` on all platforms, and `<=22.0.3` just for windows.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-09 05:37:59 +00:00
Pedro Algarvio
6c819439b5 Add a few more nice to have hooks
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-07 07:10:13 +00:00
Pedro Algarvio
de0070b713 Properly handle .0 new style versions.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-06 15:36:48 +00:00
Gareth J. Greenaway
aad8c7bb75
Merge branch 'master' into metadata_azure 2023-02-03 18:37:58 -08:00
Gareth J. Greenaway
3aa8c67ea1
Merge pull request #63316 from barneysowood/state-events-option
Add state_events option for state module functions
2023-02-03 08:31:07 -08:00
jeanluc
f9737ea019 Disable FQDNs grains on macOS by default 2023-02-02 13:45:19 -07:00
Barney Sowood
018c2160a7 Change state_event tag from global to fixture 2023-02-02 16:06:44 +00:00
Barney Sowood
bb3379b502 Add tests for state_events flag in state module 2023-02-02 16:06:44 +00:00
guvishal989
5e9b82c201
Merge branch 'master' into metadata_azure 2023-02-02 14:22:06 +05:30
Twangboy
72429ae421
Add support for RelaxMinimumPasswordLengthLimits 2023-02-01 16:06:44 -07:00
Gareth J. Greenaway
2c1526a634
Merge pull request #63591 from garethgreenaway/63590_cmd_run_powershell_fixes
cmd.run powershell fixes
2023-02-01 11:42:55 -08:00
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