-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TMT: Add sanity tests from c9s downstream
This commit upstreams sanity tests added to CentOS Stream 9 contributed by Alex Jia <[email protected]> Ref: https://gitlab.com/redhat/centos-stream/rpms/crun/-/merge_requests/117 These tests will now run for all active Fedora and CentOS Stream. The existing podman system tests have also been made more idiomatic. The rpm gating config also has updated rules for rhel updates. Signed-off-by: Lokesh Mandvekar <[email protected]>
- Loading branch information
Showing
10 changed files
with
336 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
--- !Policy | ||
product_versions: | ||
- fedora-* | ||
decision_context: bodhi_update_push_stable | ||
decision_context: | ||
- bodhi_update_push_stable | ||
- bodhi_update_push_testing | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} | ||
|
||
--- !Policy | ||
product_versions: | ||
- rhel-* | ||
decision_context: osci_compose_gate | ||
rules: [] | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require: | ||
- bats | ||
- conmon | ||
- crun | ||
- make | ||
- podman-tests | ||
|
||
adjust: | ||
duration: 10m | ||
when: arch == aarch64 | ||
|
||
/system_test: | ||
tag: [ upstream, downstream ] | ||
summary: Run crun specific Podman tests | ||
test: bash ./system-test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if [[ "$(id -u)" -ne 0 ]];then | ||
echo "Please run this script as superuser" | ||
exit 1 | ||
fi | ||
|
||
cat /etc/redhat-release | ||
rpm -q conmon containers-common crun podman podman-tests | ||
|
||
# Run crun specific podman tests | ||
bats -t /usr/share/podman/test/system/030-run.bats | ||
bats -t /usr/share/podman/test/system/075-exec.bats | ||
bats -t /usr/share/podman/test/system/280-update.bats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"ociVersion": "1.0.0", | ||
"process": { | ||
"terminal": false, | ||
"user": { | ||
"uid": 0, | ||
"gid": 0 | ||
}, | ||
"args": [ | ||
"sleep", "10" | ||
], | ||
"env": [ | ||
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | ||
"TERM=xterm" | ||
], | ||
"cwd": "/", | ||
"capabilities": { | ||
"bounding": [ | ||
"CAP_AUDIT_WRITE", | ||
"CAP_KILL", | ||
"CAP_NET_BIND_SERVICE" | ||
], | ||
"effective": [ | ||
"CAP_AUDIT_WRITE", | ||
"CAP_KILL", | ||
"CAP_NET_BIND_SERVICE" | ||
], | ||
"inheritable": [ | ||
], | ||
"permitted": [ | ||
"CAP_AUDIT_WRITE", | ||
"CAP_KILL", | ||
"CAP_NET_BIND_SERVICE" | ||
], | ||
"ambient": [ | ||
"CAP_AUDIT_WRITE", | ||
"CAP_KILL", | ||
"CAP_NET_BIND_SERVICE" | ||
] | ||
}, | ||
"rlimits": [ | ||
{ | ||
"type": "RLIMIT_NOFILE", | ||
"hard": 1024, | ||
"soft": 1024 | ||
} | ||
], | ||
"noNewPrivileges": true | ||
}, | ||
"root": { | ||
"path": "rootfs", | ||
"readonly": true | ||
}, | ||
"hostname": "crun", | ||
"mounts": [ | ||
{ | ||
"destination": "/proc", | ||
"type": "proc", | ||
"source": "proc" | ||
}, | ||
{ | ||
"destination": "/dev", | ||
"type": "tmpfs", | ||
"source": "tmpfs", | ||
"options": [ | ||
"nosuid", | ||
"strictatime", | ||
"mode=755", | ||
"size=65536k" | ||
] | ||
}, | ||
{ | ||
"destination": "/dev/pts", | ||
"type": "devpts", | ||
"source": "devpts", | ||
"options": [ | ||
"nosuid", | ||
"noexec", | ||
"newinstance", | ||
"ptmxmode=0666", | ||
"mode=0620", | ||
"gid=5" | ||
] | ||
}, | ||
{ | ||
"destination": "/dev/shm", | ||
"type": "tmpfs", | ||
"source": "shm", | ||
"options": [ | ||
"nosuid", | ||
"noexec", | ||
"nodev", | ||
"mode=1777", | ||
"size=65536k" | ||
] | ||
}, | ||
{ | ||
"destination": "/dev/mqueue", | ||
"type": "mqueue", | ||
"source": "mqueue", | ||
"options": [ | ||
"nosuid", | ||
"noexec", | ||
"nodev" | ||
] | ||
}, | ||
{ | ||
"destination": "/sys", | ||
"type": "sysfs", | ||
"source": "sysfs", | ||
"options": [ | ||
"nosuid", | ||
"noexec", | ||
"nodev", | ||
"ro" | ||
] | ||
}, | ||
{ | ||
"destination": "/sys/fs/cgroup", | ||
"type": "cgroup", | ||
"source": "cgroup", | ||
"options": [ | ||
"nosuid", | ||
"noexec", | ||
"nodev", | ||
"relatime", | ||
"ro" | ||
] | ||
} | ||
], | ||
"linux": { | ||
"resources": { | ||
"devices": [ | ||
{ | ||
"allow": false, | ||
"access": "rwm" | ||
} | ||
] | ||
}, | ||
"namespaces": [ | ||
{ | ||
"type": "pid" | ||
}, | ||
{ | ||
"type": "network" | ||
}, | ||
{ | ||
"type": "ipc" | ||
}, | ||
{ | ||
"type": "uts" | ||
}, | ||
{ | ||
"type": "cgroup" | ||
}, | ||
{ | ||
"type": "mount" | ||
} | ||
], | ||
"maskedPaths": [ | ||
"/proc/acpi", | ||
"/proc/asound", | ||
"/proc/kcore", | ||
"/proc/keys", | ||
"/proc/latency_stats", | ||
"/proc/timer_list", | ||
"/proc/timer_stats", | ||
"/proc/sched_debug", | ||
"/sys/firmware", | ||
"/proc/scsi" | ||
], | ||
"readonlyPaths": [ | ||
"/proc/bus", | ||
"/proc/fs", | ||
"/proc/irq", | ||
"/proc/sys", | ||
"/proc/sysrq-trigger" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require: [crun, podman] | ||
summary: Sanity test for crun | ||
tag: ['upstream', 'downstream'] | ||
test: bash ./runtest.sh | ||
duration: 10m |
Oops, something went wrong.