Commit graph

23414 commits

Author SHA1 Message Date
Pedro Algarvio
4f027308f8 Run pyupgrade on the changes from the merge forward
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-20 03:34:21 +01:00
nicholasmhughes
77482013d6 fixes saltstack/salt#64477 file.symlink will not replace/update existing symlink 2023-06-20 03:34:21 +01:00
Pedro Algarvio
14282d69f6 Use proper keys since Python's base64 in Py3.11 is more picky
```
❯ artifacts/salt/bin/python3
Python 3.10.11 (main, May  5 2023, 02:31:54) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
>>> base64.b64decode("AAAAB3NzaC1kcQ9J5bYTEyZ==", validate=True)
b'\x00\x00\x00\x07ssh-dq\x0fI\xe5\xb6\x13\x13&'
```
```
$ artifacts/salt/bin/python3
Python 3.11.3 (main, May  5 2023, 02:31:40) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
>>> base64.b64decode("AAAAB3NzaC1kcQ9J5bYTEyZ==", validate=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/testing/artifacts/salt/lib/python3.11/base64.py", line 88, in b64decode
    return binascii.a2b_base64(s, strict_mode=validate)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
binascii.Error: Excess data after padding
```

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-19 23:35:51 +01:00
Pedro Algarvio
8331264fdb Stop using the deprecated imp module
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-19 23:35:51 +01:00
Pedro Algarvio
3f78a510c0 Add __getstate__ to blacklisted methods, present in Py 3.11
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-19 23:35:51 +01:00
Pedro Algarvio
7d57774710 Switch to FullArgSpec since Py 3.11 no longer has ArgSpec, deprecated since Py 3.0
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-19 23:35:51 +01:00
David Murphy
60086b0fa0 Updated tests for removed RHEL 5 support 2023-06-18 08:45:50 +01:00
David Murphy
98422f3848 Updated to remove RHEL 5 support and single RHEL 6 instance too 2023-06-18 08:45:50 +01:00
MKLeb
22c4437580 Add test suite for wheel.file_roots and fix finding files when they are under a subdir of a root 2023-06-16 07:32:35 +01:00
Megan Wilhite
9ab90fdc63
Merge pull request #64028 from nicholasmhughes/add-keyvalue-create_if_missing
[master] file.keyvalue should allow creating a file if it doesn't exist
2023-06-14 19:02:07 +00:00
Pedro Algarvio
3506e7fd0e Fix mock calls
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-14 14:33:46 +01:00
Pedro Algarvio
3c415b222f Address lint issue
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-14 14:33:46 +01:00
Nicholas Hughes
756af0299b
Merge branch 'master' into add-keyvalue-create_if_missing 2023-06-12 16:51:11 -04:00
Pedro Algarvio
5069c1f916
Run pyupgrade of the modified files from the merge forward
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-11 10:03:42 +01:00
Pedro Algarvio
4886b6de2d
Merge 3006.x into master 2023-06-11 10:01:52 +01:00
twangboy
a90f62dc21 Use minion_opts to set cachedir 2023-06-10 08:02:39 +01:00
twangboy
aafb2fac46 Run cleanup even on failure 2023-06-10 08:02:39 +01:00
twangboy
f7f5b8a95e Fix issue with checkboxes not being returned 2023-06-10 08:02:39 +01:00
saville
7da18aa93a Add option to use a fresh connection for mysql cache 2023-06-09 14:06:06 -07:00
saville
96c4c441a2 Skip the isfile check to increase speed of listing large numbers of keys on slow file storage 2023-06-09 20:33:29 +00:00
David Murphy
7916ffb63e Fixed committed reviewer suggestion 2023-06-09 20:30:12 +00:00
David Murphy
dfdb2aff48 Update tests/pytests/unit/modules/test_network.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2023-06-09 20:30:12 +00:00
David Murphy
1d02c08bad Added support for ip neighbor for IPv4 and IPv6 and tests 2023-06-09 20:30:12 +00:00
Meghann Cunningham
fa7c345977 fix in test file 2023-06-09 19:12:03 +00:00
Meghann Cunningham
222f3017ad updated test_saltcheck.py 2023-06-09 19:12:03 +00:00
Meghann Cunningham
dac338bd1c Update tests/pytests/unit/modules/test_saltcheck.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2023-06-09 19:12:03 +00:00
Meghann Cunningham
0f529c13fc Update tests/pytests/unit/modules/test_saltcheck.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2023-06-09 19:12:03 +00:00
Pedro Algarvio
94bce224fa added xmldiff package for testing expected output vs returned output 2023-06-09 19:12:03 +00:00
Meghann Cunningham
1375b85cba fixes saltstack/salt#63463 add JUnit output for saltcheck 2023-06-09 19:12:03 +00:00
Pedro Algarvio
fcfe059402 Updating test requirements for saltcheck junit output 2023-06-09 19:12:03 +00:00
Nicholas Hughes
528f345c87
Merge branch 'master' into add-keyvalue-create_if_missing 2023-06-09 14:41:55 -04:00
nicholasmhughes
2e4c57edaa fixes saltstack/salt#64430 regression for user.present on handling groups with dupe GIDs 2023-06-09 13:07:01 +00:00
saville
ced3436053 Add flags to create local users and groups 2023-06-08 20:34:54 +00:00
Pedro Algarvio
85e4687c4a Revert "More recent versions of immutables require typing_extensions"
This reverts commit c9a6100a4f503e2640d8baf394aabae49c40b054.
2023-06-07 22:28:15 +01:00
Pedro Algarvio
1851456b3f Bump to pyvmomi==8.0.1.0.1
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-07 22:28:15 +01:00
Pedro Algarvio
bec7b90566 Bump to python-telegram-bot==20.3
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-07 22:28:15 +01:00
Pedro Algarvio
69b890c0f6 Bump to junos-eznc==2.6.7 and ncclient==0.6.13
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-07 22:28:15 +01:00
Pedro Algarvio
8c268f47ce Bump to docker==6.1.2
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-07 22:28:15 +01:00
Pedro Algarvio
723e7a66c7 More recent versions of immutables require typing_extensions
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-07 22:28:15 +01:00
Pedro Algarvio
06504a4ec7 Fix lint issues after the pyyaml package upgrade
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-07 22:28:15 +01:00
Frode Gundersen
e2a0161968 fix when exceptions are raised 2023-06-06 19:44:35 +00:00
Frode Gundersen
a226526210 migrate unit_states_test_jboss7 to pytest 2023-06-06 19:44:35 +00:00
Frode Gundersen
f1c24cab78 FIx asserts 2023-06-06 19:43:32 +00:00
Frode Gundersen
a5a26b8066 migrate unit_states_test_kubernetes to pytest 2023-06-06 19:43:32 +00:00
Megan Wilhite
a5bd72653f
Merge branch 'master' into add-keyvalue-create_if_missing 2023-06-06 19:32:01 +00:00
nicholasmhughes
9ffbd2103d fixes saltstack/salt#64418 configurable_test_state should be able to return False result in test mode 2023-06-06 19:12:31 +00:00
twangboy
ef40721949 Py3.8 updates 2023-06-06 18:48:58 +00:00
twangboy
faf1f267c6 Fix tests 2023-06-06 18:48:58 +00:00
Twangboy
7c6d550123 Add tests 2023-06-06 18:48:58 +00:00
Megan Wilhite
398ebb961e
Merge branch 'master' into add-keyvalue-create_if_missing 2023-06-05 20:11:25 +00:00