diff --git a/automation/test-windows.sh b/automation/test-windows.sh index b1a378e0..20a35b68 100755 --- a/automation/test-windows.sh +++ b/automation/test-windows.sh @@ -6,49 +6,67 @@ namespace="kubevirt" template_name="windows2k22" username="Administrator" +if [[ $TARGET =~ windows10.* ]]; then + template_name="windows10" + workloads=("desktop") +elif [[ $TARGET =~ windows11.* ]]; then + template_name="windows11" + workloads=("desktop") +elif [[ $TARGET =~ windows2016.* ]]; then + template_name="windows2k16" +elif [[ $TARGET =~ windows2019.* ]]; then + template_name="windows2k19" +elif [[ $TARGET =~ windows2022.* ]]; then + template_name="windows2k22" +elif [[ $TARGET =~ windows2025.* ]]; then + template_name="windows2k25" +fi + dv_name="${TARGET}-datavolume-original" +version=$(oc version -o json | jq -r '.openshiftVersion | split("\\."; null)[:2]|join(".")') oc apply -n ${namespace} -f - < config.json + + oc registry login --registry="cnv-qe-artifactory.apps.ocp-virt.prod.psi.redhat.com" \ + --auth-basic="${id}:${token}" \ + --to=config.json + + oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=config.json + oc wait --for=condition=Updated --timeout=900s machineconfigpool worker fi + fi fi echo "Deploying CDI" oc apply -f https://github.com/kubevirt/containerized-data-importer/releases/download/$CDI_VERSION/cdi-operator.yaml