Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #562 from kinvolk/invidian/fix-calico-tests-on-fla…
Browse files Browse the repository at this point in the history
…tcar-edge

test/calico/metadata_access_test.go: add support for aws_edge platform
  • Loading branch information
invidian authored Jun 4, 2020
2 parents 962713f + 08959a1 commit 19cb54a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/calico/metadata_access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func TestNoMetadataAccessRandomPod(t *testing.T) { //nolint:funlen
switch platform {
case testutil.PlatformPacket, testutil.PlatformPacketARM:
metadataAddress = "https://metadata.packet.net/metadata"
case testutil.PlatformAWS:
case testutil.PlatformAWS, testutil.PlatformAWSEdge:
metadataAddress = "http://169.254.169.254/latest/meta-data"
}

Expand Down
3 changes: 3 additions & 0 deletions test/components/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ const (
// PlatformAWS is for AWS
PlatformAWS = "aws"

// PlatformAWSEdge is for AWS with FCL Edge.
PlatformAWSEdge = "aws_edge"

// PlatformPacket is for Packet
PlatformPacket = "packet"

Expand Down

0 comments on commit 19cb54a

Please sign in to comment.