Test aliases fix (#84377)

* integrity tests: Tag (destructive) root tests as such

- apt_key needs root to touch the apt key database
- debconf needs root to change debconf values of system packages
- gathering writes to /etc/ansible/*, writeable only to root
- group creates system groups
- noexec mounts/umounts a ramdisk
- systemd requires root to start/stop services

Mark all except noexec as "destructive" as they change the state of the system.

* integration test cron requires root, as it calls setup_cron

* integration test dpkg_selection runs dpkg as root

* integration test facts_linux_network requires root

It adds/removes IP addresses from network interfaces, requiring root for that.

* integration test package requires root

installs/removes system packages

* Integration test service requires root

Creates/starts/stops/removes systemd services

* integration test user requires root to create users

* integration tests using setup_test_user require root

---------

Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
This commit is contained in:
Lee Garrett 2024-11-26 01:43:40 +01:00 committed by GitHub
parent 2a53b851fe
commit f2a77b071e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,5 @@
destructive
needs/root
shippable/posix/group1
skip/freebsd
skip/macos

View File

@ -1,3 +1,4 @@
destructive
needs/root
shippable/posix/group1
skip/macos

View File

@ -1 +1,3 @@
destructive
needs/root
shippable/posix/group1

View File

@ -1,5 +1,6 @@
shippable/posix/group1
destructive
needs/root
skip/freebsd
skip/macos
skip/rhel

View File

@ -1,4 +1,5 @@
needs/privileged
needs/root
shippable/posix/group1
skip/freebsd
skip/macos

View File

@ -1,2 +1,4 @@
destructive
needs/root
shippable/posix/group5
context/controller

View File

@ -1 +1,3 @@
destructive
needs/root
shippable/posix/group1

View File

@ -1,4 +1,5 @@
shippable/posix/group4
context/controller
needs/root
needs/target/setup_test_user
setup/always/setup_passlib_controller # required for setup_test_user

View File

@ -1,3 +1,4 @@
needs/root
shippable/posix/group4
context/controller
skip/docker

View File

@ -1,4 +1,5 @@
shippable/posix/group5
needs/root
needs/target/setup_test_user
context/controller
setup/always/setup_passlib_controller # required for setup_test_user

View File

@ -1,2 +1,3 @@
needs/root
shippable/posix/group1
destructive

View File

@ -1,3 +1,4 @@
destructive
needs/root
shippable/posix/group1
skip/macos

View File

@ -1,2 +1,3 @@
needs/root
shippable/posix/group2
skip/macos

View File

@ -1 +1,3 @@
destructive
needs/root
shippable/posix/group1

View File

@ -1,2 +1,3 @@
destructive
needs/root
shippable/posix/group1