Skip to content

Commit

Permalink
test/cases/api/azure: actually verify the HyperV Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne authored and ondrejbudai committed Nov 29, 2024
1 parent 6310115 commit 1372be3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/cases/api/azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@ function verify() {
cloud_login

# verify that the image exists and tag it
$AZURE_CMD image show --resource-group "${AZURE_RESOURCE_GROUP}" --name "${AZURE_IMAGE_NAME}"
IMG=$($AZURE_CMD image show --resource-group "${AZURE_RESOURCE_GROUP}" --name "${AZURE_IMAGE_NAME}")
echo "$IMG" | jq -r .
HYPER_V_GEN=$(echo "$IMG" | jq -r '.hyperVGeneration')
if [ "$HYPER_V_GEN" != "V2" ]; then
redprint "$AZURE_IMAGE_NAME isn't hyper v generation V2, but $HYPER_V_GEN"
exit 1
fi

$AZURE_CMD image update --resource-group "${AZURE_RESOURCE_GROUP}" --name "${AZURE_IMAGE_NAME}" --tags gitlab-ci-test=true

# Verify that the image boots and have customizations applied
Expand Down

0 comments on commit 1372be3

Please sign in to comment.