Commit graph

119507 commits

Author SHA1 Message Date
David Murphy
f98b7073cd Moved location for finding machine_id to salt utils files, and had grains import from there 2024-06-03 12:24:11 -07:00
David Murphy
37164221e5 Removed commented out debug code 2024-06-03 12:24:11 -07:00
David Murphy
21cf213b10 Cleaned up tests and removal of debug statements 2024-06-03 12:24:11 -07:00
David Murphy
695353ee91 Updated to use grains/core.py get_machine_id for machine identifier 2024-06-03 12:24:11 -07:00
David Murphy
c982cbdb3e Updated SIGTERM test, and additional tests, and cleanup 2024-06-03 12:24:11 -07:00
David Murphy
2265376154 Working test for SIGTERM of held lock 2024-06-03 12:24:11 -07:00
David Murphy
56a11ba9d1 WIP Test for kill SIGTERM 2024-06-03 12:24:11 -07:00
David Murphy
443fdd3e34 WIP - Test kill cleanup of resources 2024-06-03 12:24:11 -07:00
David Murphy
ee55b9abe3 Initial SIGTERM testing 2024-06-03 12:24:11 -07:00
David Murphy
9c80258c0c Tests for gen_lock functionality 2024-06-03 12:24:11 -07:00
David Murphy
f832181ee3 Testing additional test 2024-06-03 12:24:11 -07:00
David Murphy
ec549d6a06 Working tests ported from unittest to pytest 2024-06-03 12:24:11 -07:00
David Murphy
3d2c111f58 [WIP] Almost working port from unit test to pytest, contains debugging 2024-06-03 12:24:11 -07:00
David Murphy
40d5a253fe Initial port from unittest to pytest of unit/utils/test_gitfs.py to test_gitfs_locks.py 2024-06-03 12:24:11 -07:00
David Murphy
1b6e964244 Updated format to f-string, and adjusted error messages to match tests 2024-06-03 12:24:11 -07:00
David Murphy
2a532aa2a3 Fix missing typo f-string 2024-06-03 12:24:11 -07:00
David Murphy
0ba93f829c Fix up use of get_machine_identifer 2024-06-03 12:24:11 -07:00
David Murphy
0206162c2d Moved get_machine_identifier temporiarly till sorted where it will be and what 2024-06-03 12:24:11 -07:00
David Murphy
563556eade Updated gitfs tests for machine identifier 2024-06-03 12:24:11 -07:00
David Murphy
d58a6897e6 Fix for GitFS failure to unlock lock file, and resource cleanup for process SIGTERM, tests to be done 2024-06-03 12:24:11 -07:00
David Murphy
1290f93d06 WIP - Handling GitFS locking issue and resource loss due to SIGTERM not clearing up 2024-06-03 12:24:11 -07:00
Shane Lee
99e158f429
Merge pull request #66601 from ScriptAutomate/pypi-index-migration
[3006.x] Migrate to new internal pypi proxy
2024-05-30 07:39:57 -06:00
ScriptAutomate
38faa6806b
Migrate to new internal pypi proxy 2024-05-29 10:27:06 -05:00
ScriptAutomate
eb817ac64c Simplify CODEOWNERS file for PR management 2024-05-28 14:57:53 -07:00
Pedro Algarvio
41ef078433 Consistency. Part 2. 2024-05-23 11:34:13 +01:00
Pedro Algarvio
2e93352060 Consistency 2024-05-23 11:27:15 +01:00
Pedro Algarvio
5d8655cb26 Update to ncipollo/release-action@v1 2024-05-22 18:19:12 +01:00
Pedro Algarvio
f525138d67 Yet some more artifact merging fixes 2024-05-19 09:45:54 +01:00
Pedro Algarvio
600e0b3a94 Fix windows repository artifact name 2024-05-18 19:28:41 +01:00
Pedro Algarvio
27173cb94e Reduce the potential of failing when merging artifacts 2024-05-17 18:12:53 +01:00
Pedro Algarvio
f184bfe499 Allow merging artifacts not to fail on re-runs 2024-05-17 18:03:03 +01:00
Pedro Algarvio
8f76636c54 Fix broken test on Windows 2024-05-17 18:03:03 +01:00
Pedro Algarvio
ae0e579747 Improve/fix the condition of when the reports jobs run 2024-05-17 18:03:03 +01:00
Pedro Algarvio
738b373b4b Make sure all uploaded artifacts have different names
So that we can always merge them on reports
2024-05-17 18:03:03 +01:00
hurzhurz
1694f84643 roots fileserver fix path verification for symlinks with destination outside of root 2024-05-16 15:20:12 -07:00
hurzhurz
d2e2bf7db8 salt.utils.verify.clean_path: make filesystem link resolution optinally 2024-05-16 15:20:12 -07:00
Pedro Algarvio
6052a1ede2 Temporary skip tests on PhotonOS 5 2024-05-16 11:55:26 +01:00
Pedro Algarvio
4656263cfc Throttle before merging reports. Sometimes we just need to wait a little. 2024-05-16 11:55:26 +01:00
Pedro Algarvio
23ee362db6 Special-case Ubuntu 24.04 2024-05-16 11:55:26 +01:00
Pedro Algarvio
1b3368b13d There's no such thing as pytest.skipTest 2024-05-16 08:49:02 +01:00
Shane Lee
580ad437fd Fix some tests 2024-05-14 21:15:16 +01:00
Shane Lee
dccf230a01 Make redirect_true default to True 2024-05-14 21:15:16 +01:00
Shane Lee
45c56b0033 Fix issues with the cmd module on Windows
stderr is no longer piped to stdout by default for cmd.run
Scripts are called using the -File paramter for powershell.exe
stderr is cleared if it contains CLIXML (only for encoded commands)
cmd.powershell now accepts lists as commands
Makes sure returned JSON data is valid before trying to load it
Strips whitespace from the stdout in win_runas
2024-05-14 21:15:16 +01:00
Shane Lee
b6a9cc90b6 Remove test for 57591 since N/A 2024-05-14 17:05:21 +01:00
Shane Lee
974dacc5bb Remove __virtual__ and __hostname__ 2024-05-14 17:05:21 +01:00
Shane Lee
344a3d8c2f Use Powershell instead of netsh for firewall settings 2024-05-14 17:05:21 +01:00
Alex Dehnert
5028305cd3 Add warning about effective rights mask
Group permission on the file should generally be at least as broad as
any file ACLs, to avoid ineffective ACLs and/or changes each time the
state is run.

(cherry picked from commit b897734f4a)
2024-05-14 07:08:09 +01:00
nicholasmhughes
b6dcf7ec18 fixes saltstack/salt#65295 nftables module type does not ensure unique nft family values
(cherry picked from commit ab72e70697)
2024-05-14 07:05:31 +01:00
Jonas Maurus
9e16ab47e0 Fix #66382 (nftables): Produce correct ip family for rules with saddr or daddr 2024-05-14 06:57:51 +01:00
jeanluc
1ba52960ea Add regression test for issue 65837 2024-05-14 06:42:50 +01:00