Commit graph

172 commits

Author SHA1 Message Date
Pedro Algarvio
c6e2bd18e9 Don't hardcode the python version in the test.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-19 23:35:51 +01:00
Pedro Algarvio
40d8564265
The fixture should be session scoped
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-17 20:45:41 +01:00
Pedro Algarvio
28d2987b63 Make sure system installed packages are up-to-date before running tests.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-17 13:39:37 +01:00
MKLeb
e68ee534da Use unzip for the windows onedir archives after download 2023-06-12 20:24:07 +00:00
MKLeb
1f5191ec65 Fix the condition in another spot 2023-06-12 20:24:07 +00:00
MKLeb
6518cedcb5 Windows has multiple package types, change the setup condition to reflect that 2023-06-12 20:24:07 +00:00
MKLeb
95d8e03a10 Assign arch outside of the ifs 2023-06-12 20:24:07 +00:00
MKLeb
c0c5058156 provide the right arguments to setup_windows and setup_macos 2023-06-12 20:24:07 +00:00
MKLeb
ba4f80b0ee Add onedir download tests for windows and mac as well 2023-06-12 20:24:07 +00:00
MKLeb
9ea7a0177b Give a separate path to extract the onedir to 2023-06-12 20:24:07 +00:00
MKLeb
d99b7684eb Add initial onedir download test for linux (using Ubuntu x86 and arm) 2023-06-12 20:24:07 +00:00
Daniel A. Wozniak
50c666eaf8 Check return code instead of stdout 2023-05-22 18:40:56 +01:00
Daniel A. Wozniak
a5cfe80c89 Ubuntu pkg tests run apt non-interactive mode.
Issue #64307
2023-05-22 18:40:56 +01:00
Pedro Algarvio
9a94ec6d6a Confirm salt extensions are discoverable by salt when salt-pip installed
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-05 10:11:18 +01:00
Pedro Algarvio
a59929ad20 Be sure to run the installed script to confirm it works
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-05 10:11:18 +01:00
Daniel A. Wozniak
8e4907a057 Skip salt user tests on macos 2023-05-03 16:42:19 -07:00
Daniel A. Wozniak
c4ee9ee967 Fix perms on could deployment directories 2023-05-03 16:42:19 -07:00
Daniel A. Wozniak
e36aa3cfcb Skip all salt user tests on mac 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
28d87c1333 Add chahgelogs for #64141 and #64158 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
e00031c5e5 Salt home has world read and execute perms 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
b7fbec8158 Move salt user creation to common package
Move the salt user creation to the common package shared all other salt
packages.
2023-05-03 12:35:08 -07:00
Pedro Algarvio
ba29a27ad7 Fix test
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-03 11:15:07 +01:00
Twangboy
e4c5ce3692 Add test to ensure ssm.exe present 2023-05-03 11:15:07 +01:00
MKLeb
12d41db5d2 Turn setup_windows into a context manager so we can uninstall the MSI packages after the tests are done 2023-05-02 15:49:00 -07:00
MKLeb
9c349a8bc9 get the latest release from the environment variable we propogate 2023-05-02 15:49:00 -07:00
MKLeb
8008417de9 get_repo_subpath_params already returns a list 2023-05-02 15:49:00 -07:00
MKLeb
28861443fe Only run the download tests for the latest subpath if the current version being released is greater than or equal to the latest salt release 2023-05-02 15:49:00 -07:00
MKLeb
353cf57470 dmesg should now already be installed on centosstream 9 2023-05-02 15:49:00 -07:00
MKLeb
2024eb3d71 Only minor will have the salt_release subpath 2023-05-02 15:49:00 -07:00
MKLeb
f601bd078c Run the package download tests for minor, latest, and the version being staged/released 2023-05-02 15:49:00 -07:00
Pedro Algarvio
1f145d37f2 Fix Linux only logical check
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Pedro Algarvio
0fe922f3cd Don't yield!
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Pedro Algarvio
79d3acce18 Use an indirect fixture
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Pedro Algarvio
9d502045d3 Point the command directly at the scripts
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Pedro Algarvio
15a1e7b785 Update PATH to include the directory where the salt CLI scripts are
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Pedro Algarvio
76026d0c1e Use the tests downloads path
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Pedro Algarvio
63e45bc5aa Add supporting code to get the system's grains as a fixture
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Pedro Algarvio
1b765b1d54 Run Linux package download tests in VMs instead of containers
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00
Megan Wilhite
d2bd6004a8 Only set file and pill roots perms on linux 2023-04-20 19:57:06 +01:00
Pedro Algarvio
10e75b2a8f Wipe the extras directory between tests
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-15 20:49:08 +01:00
Pedro Algarvio
d33a8b7b4a Only show the warnings when running the download package tests
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-15 20:49:08 +01:00
Pedro Algarvio
f56dfae0c0 Only windows doesn't have all binaries. Assert against that too.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-15 20:49:08 +01:00
MKLeb
bb2a12db32 Fix salt-api not starting and ensure the pip module installs into the desired relenv directory by default 2023-04-15 20:49:08 +01:00
Megan Wilhite
dda65af43d Set correct perms on file and pillar roots in test suite 2023-04-15 20:49:08 +01:00
Megan Wilhite
b7b3d5fa40 Fix permissions in test suite and add all paths to both packages 2023-04-15 20:49:08 +01:00
Megan Wilhite
741918923d Only open master file if it exists 2023-04-15 20:49:08 +01:00
Megan Wilhite
ddc8f4c232 Set master config in pkg/common 2023-04-15 20:49:08 +01:00
Megan Wilhite
678b5c63bf Patch Salt Master config file 2023-04-15 20:49:08 +01:00
Megan Wilhite
4013d4e9a5 Use system configs if user is salt 2023-04-15 20:49:08 +01:00
Megan Wilhite
35ddf6319f Use salt default configs 2023-04-15 20:49:08 +01:00