Skip to content

Commit

Permalink
tests/kola: switch to IMDSV2 for aws.assert-xen test
Browse files Browse the repository at this point in the history
We switched to IMDSV2 by default in COSA so let's update our call here.
coreos/coreos-assembler#3607
  • Loading branch information
dustymabe committed Sep 16, 2023
1 parent 1b01ba0 commit 8d4b72a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/kola/platforms/aws/assert-xen
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ set -xeuo pipefail
# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

hypervisor=$(curl http://169.254.169.254/2022-09-24/meta-data/system || true)
token=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
hypervisor=$(curl -H "X-aws-ec2-metadata-token: $token" http://169.254.169.254/2022-09-24/meta-data/system || true)
if [ "${hypervisor}" != "xen" ]; then
fatal "expected xen instance type"
fi
Expand Down

0 comments on commit 8d4b72a

Please sign in to comment.