File tree Expand file tree Collapse file tree
test/scenarios-bootc/periodics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments