Skip to content

Commit d8e2fec

Browse files
committed
Add el96 optional sigstore test
1 parent 280e6ac commit d8e2fec

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
# Sourced from scenario.sh and uses functions defined there.
4+
5+
# Enable container signature verification for current release images,
6+
# including the optional components.
7+
# These are ec / rc / z-stream, thus must all to be signed.
8+
# shellcheck disable=SC2034 # used elsewhere
9+
IMAGE_SIGSTORE_ENABLED=true
10+
11+
start_image=rhel96-bootc-crel-optionals
12+
13+
scenario_create_vms() {
14+
if ! does_image_exist "${start_image}"; then
15+
echo "Image '${start_image}' not found - skipping test"
16+
return 0
17+
fi
18+
prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
19+
launch_vm --boot_blueprint rhel96-bootc
20+
}
21+
22+
scenario_remove_vms() {
23+
if ! does_image_exist "${start_image}"; then
24+
echo "Image '${start_image}' not found - skipping test"
25+
return 0
26+
fi
27+
remove_vm host1
28+
}
29+
30+
scenario_run_tests() {
31+
if ! does_image_exist "${start_image}"; then
32+
echo "Image '${start_image}' not found - skipping test"
33+
return 0
34+
fi
35+
# Run a minimal test for this scenario as its main functionality is
36+
# to verify container image signature check is enabled
37+
run_tests host1 \
38+
--variable "EXPECTED_OS_VERSION:9.6" \
39+
--variable "IMAGE_SIGSTORE_ENABLED:True" \
40+
suites/standard1/containers-policy.robot
41+
}

0 commit comments

Comments
 (0)