Skip to content

Commit 217bf06

Browse files
committed
test(e2e): authorize both release image hashes
1 parent 14510e6 commit 217bf06

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

test-suites/full-stack-compose/scripts/render-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ GATEWAY_ADMIN_TOKEN=$(tr -d '[:space:]' < "$token_file")
127127

128128
cat > "$CONFIG_DIR/auth-allowlist.json" <<JSON
129129
{
130-
"osImages": ["$OS_IMAGE_HASH"],
130+
"osImages": ["$OS_IMAGE_HASH", "$OLD_OS_IMAGE_HASH"],
131131
"gatewayAppId": "$GATEWAY_APP_ID",
132132
"kms": {
133133
"mrAggregated": [],

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,11 @@ phase_upgrade() {
863863
"$WORK_DIR/artifacts-access.log" || true)
864864
(( os_archive_gets >= 2 )) \
865865
|| die "expected verified OS image downloads by both KMS versions, saw ${os_archive_gets}"
866+
os_archive_gets=$(grep -Fc \
867+
"GET /os/mr_${OLD_OS_IMAGE_HASH}.tar.gz HTTP/1.1\" 200" \
868+
"$WORK_DIR/artifacts-access.log" || true)
869+
(( os_archive_gets >= 2 )) \
870+
|| die "expected v0.5.11 OS verification by both KMS versions, saw ${os_archive_gets}"
866871
if grep -E 'Image verification is disabled|self-authorization is disabled' \
867872
"$WORK_DIR/kms-"*.vm.log; then
868873
die "KMS logs contain a forbidden disabled verification path"

0 commit comments

Comments
 (0)