mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 06:27:49 +01:00
tests: minor tests improvment.
Some checks are pending
Ubuntu / check (push) Waiting to run
Ubuntu / build (default, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (default, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / tests (push) Blocked by required conditions
Some checks are pending
Ubuntu / check (push) Waiting to run
Ubuntu / build (default, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (default, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / tests (push) Blocked by required conditions
This commit is contained in:
parent
b4bcb2f16e
commit
a1c6e79dc7
7 changed files with 12 additions and 15 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -15,6 +15,7 @@ jobs:
|
|||
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
needs: check
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
|
@ -93,7 +94,6 @@ jobs:
|
|||
sudo apt-get install -y \
|
||||
apparmor-profiles apparmor-utils \
|
||||
bats bats-support
|
||||
bash tests/requirements.sh
|
||||
|
||||
- name: Install apparmor.d
|
||||
run: |
|
||||
|
@ -101,6 +101,12 @@ jobs:
|
|||
sudo dpkg --install .pkg/apparmor.d_*_amd64.deb || true
|
||||
sudo systemctl restart apparmor.service
|
||||
|
||||
- name: Github Action specific requirements
|
||||
run: |
|
||||
bash tests/requirements.sh
|
||||
sudo systemctl restart systemd-hostnamed
|
||||
sudo systemctl restart snapd
|
||||
|
||||
- name: Run the bats integration tests
|
||||
run: |
|
||||
make bats
|
||||
|
|
|
@ -24,10 +24,9 @@
|
|||
|
||||
network netlink raw, # PAM
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/login1
|
||||
interface=org.freedesktop.logi1.Manager
|
||||
member=CreateSession
|
||||
peer=(name=org.freedesktop.login1, label=systemd-logind),
|
||||
unix bind type=stream addr=@@{hex16}/bus/sudo/system,
|
||||
|
||||
#aa:dbus talk bus=system name=org.freedesktop.login1 label=systemd-logind
|
||||
|
||||
dbus (send receive) bus=session path=/org/freedesktop/systemd1
|
||||
interface=org.freedesktop.systemd.Manager
|
||||
|
|
|
@ -31,8 +31,6 @@ profile sudo @{exec_path} flags=(attach_disconnected) {
|
|||
signal (send) set=(winch) peer=pacman,
|
||||
signal (send) set=(winch, hup, term) peer=rpm,
|
||||
|
||||
unix bind type=stream addr=@@{hex16}/bus/sudo/system/,
|
||||
|
||||
@{bin}/@{shells} rUx,
|
||||
@{lib}/** PUx,
|
||||
/opt/*/** PUx,
|
||||
|
|
|
@ -7,6 +7,7 @@ load common
|
|||
|
||||
setup_file() {
|
||||
aa_setup
|
||||
skip
|
||||
}
|
||||
|
||||
# bats test_tags=homectl
|
||||
|
|
|
@ -7,7 +7,6 @@ load common
|
|||
|
||||
setup_file() {
|
||||
aa_setup
|
||||
skip
|
||||
}
|
||||
|
||||
# bats test_tags=snap
|
||||
|
|
|
@ -27,12 +27,6 @@ setup_file() {
|
|||
aa_check
|
||||
}
|
||||
|
||||
# bats test_tags=systemd-id128
|
||||
@test "systemd-id128: Print the identifier of the current service invocation (this is available in systemd services)" {
|
||||
systemd-id128 invocation-id
|
||||
aa_check
|
||||
}
|
||||
|
||||
# bats test_tags=systemd-id128
|
||||
@test "systemd-id128: Generate a new random identifier and print it as a UUID (five groups of digits separated by hyphens)" {
|
||||
systemd-id128 new --uuid
|
||||
|
|
|
@ -19,7 +19,7 @@ arch)
|
|||
;;
|
||||
debian | ubuntu | whonix)
|
||||
sudo apt-get install -y \
|
||||
cpuid dfc systemd-userdbd
|
||||
cpuid dfc systemd-userdbd systemd-homed tlp
|
||||
;;
|
||||
opensuse*)
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue