Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions test/scenarios-bootc/periodics/el94-crel@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-crel-optionals
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/periodics/el94-crel@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-crel
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
15 changes: 13 additions & 2 deletions test/scenarios-bootc/periodics/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# Sourced from scenario.sh and uses functions defined there.

# Enable container signature verification for published MicroShift images.
# These are ec / rc / z-stream, thus guaranteed to be signed.
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=true

scenario_create_vms() {
if [[ "${CURRENT_RELEASE_REPO}" == http* ]] ; then
# Discover a pre-release MicroShift bootc image reference on the mirror
Expand Down Expand Up @@ -37,7 +42,13 @@ scenario_remove_vms() {
}

scenario_run_tests() {
run_tests host1 suites/standard1/
# When SELinux is working on bootc systems add following suite:
if [[ "${CURRENT_RELEASE_REPO}" == "" ]] ; then
# Empty string means there's no EC build yet, so the test needs to be skipped.
exit 0
fi
run_tests host1 \
--variable "IMAGE_SIGSTORE_ENABLED:True" \
suites/standard1/
# When SELinux is working on RHEL 9.6 bootc systems add following suite:
# suites/selinux/validate-selinux-policy.robot
}
13 changes: 12 additions & 1 deletion test/scenarios-bootc/periodics/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# Sourced from scenario.sh and uses functions defined there.

# Enable container signature verification for published MicroShift images.
# These are ec / rc / z-stream, thus guaranteed to be signed.
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=true

scenario_create_vms() {
if [[ "${CURRENT_RELEASE_REPO}" == http* ]] ; then
# Discover a pre-release MicroShift bootc image reference on the mirror
Expand Down Expand Up @@ -37,5 +42,11 @@ scenario_remove_vms() {
}

scenario_run_tests() {
run_tests host1 suites/standard2/
if [[ "${CURRENT_RELEASE_REPO}" == "" ]] ; then
# TODO: While 4.19-ec is not available, it needs to exit without an error.
exit 0
fi
run_tests host1 \
--variable "IMAGE_SIGSTORE_ENABLED:True" \
suites/standard2/
}
5 changes: 0 additions & 5 deletions test/scenarios-bootc/periodics/el94-prel@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-prel
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/periodics/el94-prel@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-prel
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/periodics/el94-prel@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
# The y-1 ostree image will be fetched from the cache as it is not built
# as part of the bootc image build procedure
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/periodics/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-source
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
# The y-1 ostree image will be fetched from the cache as it is not built
# as part of the bootc image build procedure
Expand Down
40 changes: 40 additions & 0 deletions test/scenarios-bootc/periodics/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

# Sourced from scenario.sh and uses functions defined there.

# Enable container signature verification for current release images,
# including the optional components.
# These are ec / rc / z-stream, thus must all to be signed.
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=true

start_image=rhel95-bootc-crel-optionals

scenario_create_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi
prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel95-bootc
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi
remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi
# Run a minimal test for this scenario as its main functionality is
# to verify container image signature check is enabled
run_tests host1 \
--variable "IMAGE_SIGSTORE_ENABLED:True" \
suites/standard1/containers-policy.robot
}
3 changes: 0 additions & 3 deletions test/scenarios-bootc/presubmits/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
VM_BRIDGE_IP="$(get_vm_bridge_ip "${VM_MULTUS_NETWORK}")"
# shellcheck disable=SC2034 # used elsewhere
WEB_SERVER_URL="http://${VM_BRIDGE_IP}:${WEB_SERVER_PORT}"
# Disable signature verification due to unsigned images used in this test
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template cos9-bootc-source-optionals
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/presubmits/el94-base@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-source-base
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/presubmits/el94-crel@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-crel
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/presubmits/el94-prel@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-prel
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/presubmits/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-source-fake-next-minor
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
3 changes: 0 additions & 3 deletions test/scenarios-bootc/presubmits/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
VM_BRIDGE_IP="$(get_vm_bridge_ip "${VM_MULTUS_NETWORK}")"
# shellcheck disable=SC2034 # used elsewhere
WEB_SERVER_URL="http://${VM_BRIDGE_IP}:${WEB_SERVER_PORT}"
# Disable signature verification due to unsigned images used in this test
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-source-optionals
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/presubmits/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-source
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
5 changes: 0 additions & 5 deletions test/scenarios-bootc/presubmits/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-bootc-source
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# Sourced from scenario.sh and uses functions defined there.

# Disable signature verification because the test performs an upgrade to
# a target reference unsigned image that was generated by local builds
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel94-ostree-microshift-yminus2
launch_vm --boot_blueprint rhel94-bootc --bootc
Expand Down
40 changes: 40 additions & 0 deletions test/scenarios/periodics/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

# Sourced from scenario.sh and uses functions defined there.

# Enable container signature verification for current release images,
# including the optional components.
# These are ec / rc / z-stream, thus must all to be signed.
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=true

start_commit=rhel-9.4-microshift-crel-optionals

scenario_create_vms() {
if ! does_commit_exist "${start_commit}"; then
echo "Commit '${start_commit}' not found in ostree repo - skipping test"
return 0
fi
prepare_kickstart host1 kickstart.ks.template "${start_commit}"
launch_vm
}

scenario_remove_vms() {
if ! does_commit_exist "${start_commit}"; then
echo "Commit '${start_commit}' not found in ostree repo - skipping test"
return 0
fi
remove_vm host1
}

scenario_run_tests() {
if ! does_commit_exist "${start_commit}"; then
echo "Commit '${start_commit}' not found in ostree repo - skipping test"
return 0
fi
# Run a minimal test for this scenario as its main functionality is
# to verify container image signature check is enabled
run_tests host1 \
--variable "IMAGE_SIGSTORE_ENABLED:True" \
suites/standard1/containers-policy.robot
}
3 changes: 0 additions & 3 deletions test/scenarios/periodics/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
VM_BRIDGE_IP="$(get_vm_bridge_ip "${VM_MULTUS_NETWORK}")"
# shellcheck disable=SC2034 # used elsewhere
WEB_SERVER_URL="http://${VM_BRIDGE_IP}:${WEB_SERVER_PORT}"
# Disable signature verification due to unsigned images used in this test
# shellcheck disable=SC2034 # used elsewhere
IMAGE_SIGSTORE_ENABLED=false

scenario_create_vms() {
prepare_kickstart host1 kickstart.ks.template rhel-9.4-microshift-source-optionals
Expand Down
Loading