Commit graph

33 commits

Author SHA1 Message Date
David Murphy
9f8fc27cba Updated check version of Salt for the test 2023-11-09 17:03:03 +00:00
David Murphy
a75f0a9f41 Updated test per reviewer comments 2023-11-09 17:03:03 +00:00
David Murphy
57b02f4973 Updated tests per reviewer comments 2023-11-09 17:03:03 +00:00
David Murphy
3cee13afda Remove Photon OS from test 2023-11-09 17:03:03 +00:00
David Murphy
0ff32b01de Removed group membership check from the test 2023-11-09 17:03:03 +00:00
David Murphy
cd236c42d9 Limited test ownership to id and no longer change group on files 2023-11-09 17:03:03 +00:00
David Murphy
6d7c2f0dd1 Updated version check in test to prevent running on downgrade 2023-11-09 17:03:03 +00:00
David Murphy
7c4f68b774 Updated test to only run on RedHat family, Ubuntu/Debian has issue 65231 2023-11-09 17:03:03 +00:00
David Murphy
9b6e493db2 Added missing include for temp_directory 2023-11-09 17:03:03 +00:00
David Murphy
af8e35ebce Package test for log rotation and ownership / permissions 2023-11-09 17:03:03 +00:00
David Murphy
de84120e58 Initial log rotation test for ownership user and group 2023-11-09 17:03:03 +00:00
MKLeb
d9bfb7b7bb Address review comments, hiding non-important fixtures and removing a basically blank method 2023-09-11 21:41:05 +01:00
MKLeb
660be2a5d0 Add skip for testing package path ownership on versions <=3006.2 2023-09-11 21:41:05 +01:00
MKLeb
ad93c28386 Finally fix the debian downgrade tests, and hopefully fix the 3006.1 upgrades 2023-09-11 21:41:05 +01:00
Barney Sowood
1da32ae614 Remove seperate salt-cloud path tests
Removes seperate salt-cloud path tests as they are now covered by
test_pkg_paths
2023-08-16 15:53:29 -07:00
Barney Sowood
79c808623e Revert to not hardcoding python version in cloud deploy path 2023-08-16 15:53:29 -07:00
Barney Sowood
6b922be29e Return paths without setting var 2023-08-16 15:53:29 -07:00
Barney Sowood
b3d2a55535 Removing check on /etc/salt/minion.d
Removes check on /etc/salt/minion.d - it's causing issues in CI
that I can't reproduce locally and we'll deal with it in #64235
anyway.
2023-08-16 15:53:29 -07:00
Barney Sowood
cc7611e1db Handle pytest-salt-factories permission changes
Handles permission changes caused by test suite running as root and
the creation of /var/cache/salt/master/.root_key.

Running the test suite as root means that /etc/salt/pki/master subdirs
get their ownership changed to root - clean that up in conftest.py.
No longer need to fix /var/log/salt as we handle the files in there
individually.

Adds exclusion for /var/cache/salt/master/.root_key as that gets created
by salt* cli tools running as root.
2023-08-16 15:53:29 -07:00
Barney Sowood
94adcd1b2c Remove group test for files
Removes group test for ownership on files by the salt user. Files that
are created by the salt-master process can be owned by salt:root, rather
than salt:salt and that's valid
2023-08-16 15:53:29 -07:00
Barney Sowood
b6661011d2 Add tests for package directory and file ownership
Adds test that checks that files and directories created by the packages
that should be owned by salt:salt are owned by that user and that the
other files/directories created are owned by root:root.
2023-08-16 15:53:29 -07:00
Barney Sowood
1aa8276e6c Correct docstrings for salt user test_salt_user
Corrects docstrings for salt user tests - they were all the same.
2023-08-16 15:53:29 -07:00
Clay Oster
f4efa4fb79 Fix salt user login shell path in Debian packages 2023-08-16 12:49:45 +00:00
Pedro Algarvio
e4876d2e49 Don't hardcode the python version in the test.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-06-28 07:26:05 +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
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
60d790597a Add test to ensure salt user is running salt-master 2023-04-15 20:49:08 +01:00