Skip to content

fix: make sure tests are not failing on cloudtop#1025

Merged
bwplotka merged 1 commit intomainfrom
fixes
Jun 12, 2024
Merged

fix: make sure tests are not failing on cloudtop#1025
bwplotka merged 1 commit intomainfrom
fixes

Conversation

@bwplotka
Copy link
Copy Markdown
Collaborator

Turns out @TheSpiritXIII suggestion was worth doing 🙃

Signed-off-by: bwplotka <bwplotka@google.com>
@bwplotka bwplotka requested a review from TheSpiritXIII June 12, 2024 13:36
@bwplotka bwplotka merged commit 1df4974 into main Jun 12, 2024
// Asserting there is actually no GCE underneath.
if metadata.OnGCE() {
t.Fatal("This test assumes we don't run on GCP")
t.Skip("This test can't run on GCP or Cloudtop; we expect no metadata server.")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm - it should work on Cloudtop:

$ nslookup metadata.google.internal
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	metadata.google.internal
Address: 169.254.169.254

@pintohutch pintohutch deleted the fixes branch March 20, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants