diff --git a/assets/components/openshift-router/deployment.yaml b/assets/components/openshift-router/deployment.yaml index 4a7520c32e..af1f48f67f 100644 --- a/assets/components/openshift-router/deployment.yaml +++ b/assets/components/openshift-router/deployment.yaml @@ -219,7 +219,7 @@ spec: args: - -v=4 {{- if and .AccessLoggingEnabled (not .AccessLoggingSyslogAddress) }} - - name: access-logs + - name: logs imagePullPolicy: IfNotPresent terminationMessagePolicy: FallbackToLogsOnError image: '{{ .ReleaseImage.haproxy_router }}' diff --git a/scripts/auto-rebase/manifests_patches/011-ingress-deployment-access-logging.patch b/scripts/auto-rebase/manifests_patches/011-ingress-deployment-access-logging.patch index 8bb6df79c5..b9517e5751 100644 --- a/scripts/auto-rebase/manifests_patches/011-ingress-deployment-access-logging.patch +++ b/scripts/auto-rebase/manifests_patches/011-ingress-deployment-access-logging.patch @@ -78,7 +78,7 @@ index 916e4b601..9261e3700 100644 args: - -v=4 + {{- if and .AccessLoggingEnabled (not .AccessLoggingSyslogAddress) }} -+ - name: access-logs ++ - name: logs + imagePullPolicy: IfNotPresent + terminationMessagePolicy: FallbackToLogsOnError + image: '{{ .ReleaseImage.haproxy_router }}' diff --git a/test/bin/common_versions.sh b/test/bin/common_versions.sh index 444875cc87..fc8aaaaee7 100644 --- a/test/bin/common_versions.sh +++ b/test/bin/common_versions.sh @@ -140,3 +140,6 @@ export BREW_NIGHTLY_RELEASE_VERSION # Set the release type to ec, rc or zstream LATEST_RELEASE_TYPE="ec" export LATEST_RELEASE_TYPE + +BREW_LREL_RELEASE_VERSION="${BREW_EC_RELEASE_VERSION}" +export BREW_LREL_RELEASE_VERSION diff --git a/test/bin/manage_build_cache.sh b/test/bin/manage_build_cache.sh index eeb88378ac..637b14052a 100755 --- a/test/bin/manage_build_cache.sh +++ b/test/bin/manage_build_cache.sh @@ -7,7 +7,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # shellcheck source=test/bin/common.sh source "${SCRIPTDIR}/common.sh" -AWS_BUCKET_NAME="${AWS_BUCKET_NAME:-microshift-build-cache}" +AWS_BUCKET_NAME="microshift-ushift-6072-cache-us-west-2" BCH_SUBDIR= TAG_SUBDIR= diff --git a/test/image-blueprints-bootc/layer1-base/group2/centos9-bootc.image-bootc b/test/image-blueprints-bootc/layer1-base/group3/centos9-bootc.image-bootc similarity index 100% rename from test/image-blueprints-bootc/layer1-base/group2/centos9-bootc.image-bootc rename to test/image-blueprints-bootc/layer1-base/group3/centos9-bootc.image-bootc diff --git a/test/image-blueprints-bootc/layer1-base/group2/rhel94-bootc.image-bootc b/test/image-blueprints-bootc/layer1-base/group3/rhel94-bootc.image-bootc similarity index 100% rename from test/image-blueprints-bootc/layer1-base/group2/rhel94-bootc.image-bootc rename to test/image-blueprints-bootc/layer1-base/group3/rhel94-bootc.image-bootc diff --git a/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-ec-with-optional.image-bootc b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-ec-with-optional.image-bootc new file mode 100644 index 0000000000..b40ceb3b68 --- /dev/null +++ b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-ec-with-optional.image-bootc @@ -0,0 +1,3 @@ +{{- if env.Getenv "BREW_EC_RELEASE_VERSION" "" -}} +localhost/rhel96-bootc-brew-ec-with-optional:latest +{{- end }} diff --git a/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-nightly-with-optional.image-bootc b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-nightly-with-optional.image-bootc new file mode 100644 index 0000000000..266a2dffa5 --- /dev/null +++ b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-nightly-with-optional.image-bootc @@ -0,0 +1,3 @@ +{{- if env.Getenv "BREW_NIGHTLY_RELEASE_VERSION" "" -}} +localhost/rhel96-bootc-brew-nightly-with-optional:latest +{{- end }} diff --git a/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-rc-with-optional.image-bootc b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-rc-with-optional.image-bootc new file mode 100644 index 0000000000..76cde0cba0 --- /dev/null +++ b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-rc-with-optional.image-bootc @@ -0,0 +1,3 @@ +{{- if env.Getenv "BREW_RC_RELEASE_VERSION" "" -}} +localhost/rhel96-bootc-brew-rc-with-optional:latest +{{- end }} diff --git a/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-zstream-with-optional.image-bootc b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-zstream-with-optional.image-bootc new file mode 100644 index 0000000000..af993ec682 --- /dev/null +++ b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc-brew-zstream-with-optional.image-bootc @@ -0,0 +1,3 @@ +{{- if env.Getenv "BREW_Y0_RELEASE_VERSION" "" -}} +localhost/rhel96-bootc-brew-zstream-with-optional:latest +{{- end }} diff --git a/test/image-blueprints-bootc/layer1-base/group2/rhel96-bootc.image-bootc b/test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc.image-bootc similarity index 100% rename from test/image-blueprints-bootc/layer1-base/group2/rhel96-bootc.image-bootc rename to test/image-blueprints-bootc/layer1-base/group3/rhel96-bootc.image-bootc diff --git a/test/scenarios-bootc/releases/el96-lrel@standard1.sh b/test/scenarios-bootc/releases/el96-lrel@standard1.sh index 052faac7e1..191741b5f2 100644 --- a/test/scenarios-bootc/releases/el96-lrel@standard1.sh +++ b/test/scenarios-bootc/releases/el96-lrel@standard1.sh @@ -4,7 +4,7 @@ scenario_create_vms() { prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional" - launch_vm --boot_blueprint rhel96-bootc + launch_vm --boot_blueprint "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional" } scenario_remove_vms() { diff --git a/test/scenarios-bootc/releases/el96-lrel@standard2.sh b/test/scenarios-bootc/releases/el96-lrel@standard2.sh index 048165ad4d..fd86be7254 100644 --- a/test/scenarios-bootc/releases/el96-lrel@standard2.sh +++ b/test/scenarios-bootc/releases/el96-lrel@standard2.sh @@ -4,7 +4,7 @@ scenario_create_vms() { prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional" - launch_vm --boot_blueprint rhel96-bootc + launch_vm --boot_blueprint "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional" } scenario_remove_vms() { diff --git a/test/scenarios/presubmits/el96-src@rpm-install.sh b/test/scenarios/presubmits/el96-src@rpm-install.sh index 21576362a6..8cc976a807 100644 --- a/test/scenarios/presubmits/el96-src@rpm-install.sh +++ b/test/scenarios/presubmits/el96-src@rpm-install.sh @@ -112,5 +112,7 @@ scenario_run_tests() { --variable "SOURCE_REPO_URL:${source_repo_url}" \ --variable "TARGET_VERSION:${target_version}" \ --variable "PREVIOUS_MINOR_VERSION:${PREVIOUS_MINOR_VERSION}" \ - suites/rpm/install-and-upgrade-successful.robot + suites/rpm/install.robot \ + suites/rpm/remove.robot \ + suites/rpm/upgrade-successful.robot } diff --git a/test/scenarios/releases/el96-lrel@standard1.sh b/test/scenarios/releases/el96-lrel@standard1.sh deleted file mode 100644 index cfd6cf0b3d..0000000000 --- a/test/scenarios/releases/el96-lrel@standard1.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -# Sourced from scenario.sh and uses functions defined there. - -scenario_create_vms() { - prepare_kickstart host1 kickstart.ks.template "rhel-9.6-microshift-brew-optionals-4.${MINOR_VERSION}-${LATEST_RELEASE_TYPE}" - launch_vm -} - -scenario_remove_vms() { - remove_vm host1 -} - -scenario_run_tests() { - run_tests host1 \ - --variable "EXPECTED_OS_VERSION:9.6" \ - suites/standard1/ suites/selinux/validate-selinux-policy.robot -} diff --git a/test/scenarios/releases/el96-lrel@standard2.sh b/test/scenarios/releases/el96-lrel@standard2.sh deleted file mode 100644 index 84e892dca8..0000000000 --- a/test/scenarios/releases/el96-lrel@standard2.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# Sourced from scenario.sh and uses functions defined there. - -scenario_create_vms() { - prepare_kickstart host1 kickstart.ks.template "rhel-9.6-microshift-brew-optionals-4.${MINOR_VERSION}-${LATEST_RELEASE_TYPE}" - launch_vm -} - -scenario_remove_vms() { - remove_vm host1 -} - -scenario_run_tests() { - run_tests host1 suites/standard2/ -} diff --git a/test/scenarios/releases/el96@rpm-install-upgrade.sh b/test/scenarios/releases/el96@rpm-install-upgrade.sh new file mode 100644 index 0000000000..d9b8506c86 --- /dev/null +++ b/test/scenarios/releases/el96@rpm-install-upgrade.sh @@ -0,0 +1,117 @@ +#!/bin/bash + +# Sourced from scenario.sh and uses functions defined there. + +# The RPM-based image used to create the VM for this test does not +# include MicroShift or greenboot, so tell the framework not to wait +# for greenboot to finish when creating the VM. +export SKIP_GREENBOOT=true + +# NOTE: Unlike most suites, these tests rely on being run IN ORDER to +# ensure the host is in a good state at the start of each test. We +# could have separated them and run them as separate scenarios, but +# did not want to spend the resources on a new VM. +export TEST_RANDOMIZATION=none + +configure_microshift_mirror() { + local -r repo=$1 + + # `repo` might be empty if we install microshift from rhocp + if [[ -z "${repo}" ]] ; then + return + fi + + # `repo` might be an enabled repo from a released version instead + # of a mirror. + if [[ ! "${repo}" =~ ^http ]]; then + return + fi + + local -r tmp_file=$(mktemp) + tee "${tmp_file}" >/dev/null </dev/null </dev/null </dev/null <