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>
pull/84396/head
Lee Garrett 1 year ago committed by GitHub
parent 2a53b851fe
commit f2a77b071e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

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

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

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

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

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

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

@ -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

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

@ -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

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

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

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

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

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

Loading…
Cancel
Save