diff --git a/automation/test-windows.sh b/automation/test-windows.sh index b1a378e0..a16d07a8 100755 --- a/automation/test-windows.sh +++ b/automation/test-windows.sh @@ -6,71 +6,6 @@ namespace="kubevirt" template_name="windows2k22" username="Administrator" -dv_name="${TARGET}-datavolume-original" - -oc apply -n ${namespace} -f - < config.json + + oc registry login --registry="ibmc.artifactory.cnv-qe.rhood.us" \ + --auth-basic="${id}:${token}" \ + --to=config.json + + oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=config.json + fi + fi +fi + # Latest released Kubevirt version export KUBEVIRT_VERSION=$(latest_version "kubevirt") @@ -108,8 +159,6 @@ EOF oc wait --for=condition=Updated --timeout=900s machineconfigpool worker fi -namespace="kubevirt" - _curl() { # this dupes the baseline "curl" command line, but is simpler # wrt shell quoting/expansion. @@ -120,13 +169,6 @@ _curl() { fi } -ocenv="OC" - -if [ -z "$CLUSTERENV" ] -then - export CLUSTERENV=$ocenv -fi - git submodule update --init make generate @@ -144,8 +186,6 @@ chmod +x virtctl oc apply -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml oc apply -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-cr.yaml -sample=10 -current_time=0 timeout=600 # Waiting for kubevirt cr to report available @@ -153,29 +193,6 @@ oc wait --for=condition=Available --timeout=${timeout}s kubevirt/kubevirt -n $na oc patch kubevirt kubevirt -n $namespace --type merge -p '{"spec":{"configuration":{"developerConfiguration":{"featureGates": ["DataVolumes", "CPUManager", "NUMA", "DownwardMetrics", "VMPersistentState"]}}}}' -key="/tmp/secrets/accessKeyId" -token="/tmp/secrets/secretKey" - -if [ "${CLUSTERENV}" == "$ocenv" ] -then - if test -f "$key" && test -f "$token"; then - id=$(cat $key | tr -d '\n' | base64) - token=$(cat $token | tr -d '\n' | base64 | tr -d ' \n') - - oc apply -n $namespace -f - <