summaryrefslogtreecommitdiff
path: root/test/selinux.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/selinux.bats')
-rw-r--r--test/selinux.bats26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/selinux.bats b/test/selinux.bats
new file mode 100644
index 000000000..1617e5546
--- /dev/null
+++ b/test/selinux.bats
@@ -0,0 +1,26 @@
+#!/usr/bin/env bats
+
+load helpers
+
+function teardown() {
+ cleanup_test
+}
+
+@test "ctr termination reason Completed" {
+ start_crio
+ run crioctl pod run --config "$TESTDATA"/sandbox_config_selinux.json
+ echo "$output"
+ [ "$status" -eq 0 ]
+ pod_id="$output"
+ run crioctl ctr create --config "$TESTDATA"/container_redis.json --pod "$pod_id"
+ echo "$output"
+ [ "$status" -eq 0 ]
+ ctr_id="$output"
+ run crioctl ctr start --id "$ctr_id"
+ echo "$output"
+ [ "$status" -eq 0 ]
+
+ cleanup_ctrs
+ cleanup_pods
+ stop_crio
+}