Forked from
tests / apertis-test-cases
474 commits behind the upstream repository.
-
The `auditd` package is being dropped from the images. The audit log can be retrieved from the system journal, and the `auditd` daemon currently fails to start on the ostree images. However, the apparmor-{geoclue,ofono,tracker} testcases use the `run-aa-test` tool which is not trivial to port away from `audit.log`, so add an explicit installation step for the `auditd` package to paper over it. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
The `auditd` package is being dropped from the images. The audit log can be retrieved from the system journal, and the `auditd` daemon currently fails to start on the ostree images. However, the apparmor-{geoclue,ofono,tracker} testcases use the `run-aa-test` tool which is not trivial to port away from `audit.log`, so add an explicit installation step for the `auditd` package to paper over it. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
apparmor-ofono.yaml 1.14 KiB
metadata:
name: apparmor-ofono
format: "Apertis Test Definition 1.0"
image-types:
target: [ armhf-internal, amd64 ]
image-deployment:
- APT
type: functional
exec-type: manual
priority: medium
maintainer: "Apertis Project"
description: "Test that AppArmor profiles provided in ofono package work
without unexpected auditd log entries."
resources:
- "A 3G modem connected."
macro_install_packages_preconditions: auditd apertis-tests-apparmor-ofono apertis-tests
expected:
- "A list of executed test with related result (as pass/fail/skip) will be
shown on console, similar to the following:"
- |
>ofonod-normal.expected: pass
notes:
- "ofonod-malicous test might (and will, so far) segfault. This is normal and
does not preclude the test, which shall pass anyway. If the 3G modem is not
connected, the TC might pass (any of the tests in it), but it would be a
meaningless test. Be sure that a 3G modem is connected for a meaningful
test."
run:
steps:
- "Execute the following command:"
- $ sudo /usr/lib/apertis-tests/apparmor/ofono/test-ofonod