Skip to content

Commit 5993ff4

Browse files
committed
test(e2e): audit mixed-image compatibility policy
1 parent 965e805 commit 5993ff4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • test-suites/full-stack-compose/scripts

test-suites/full-stack-compose/scripts/runner.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,10 +748,10 @@ PY
748748

749749
jq -e '
750750
.kms_enabled == true and .gateway_enabled == true
751-
and .manifest_version == "3"
752-
and .requirements.tdx_measure_acpi_tables == true
751+
and .manifest_version == 2
752+
and (has("requirements") | not)
753753
' "$WORK_DIR/legacy.app-compose.json" >/dev/null \
754-
|| die "legacy app manifest did not force the legacy TDX verifier"
754+
|| die "v0.5.11 app manifest is not legacy-compatible"
755755
jq -e '
756756
.kms_enabled == true and .gateway_enabled == true
757757
and .manifest_version == "3"
@@ -761,8 +761,10 @@ PY
761761

762762
jq -e --arg id "$GATEWAY_APP_ID" \
763763
--arg device "$ATTESTED_DEVICE_ID" \
764+
--arg current_image "$OS_IMAGE_HASH" \
765+
--arg old_image "$OLD_OS_IMAGE_HASH" \
764766
'.gatewayAppId == $id and .gatewayAppId != "any"
765-
and (.osImages | length) == 1
767+
and (.osImages | sort == ([$current_image, $old_image] | sort))
766768
and (.kms.mrAggregated | length) == 2
767769
and (.kms.allowAnyDevice == false)
768770
and (.kms.devices == [$device])

0 commit comments

Comments
 (0)