Skip to content

Commit

Permalink
test: Check additional labels on instance metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmetzner committed Oct 23, 2024
1 parent abda7f9 commit 9da45ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hcloud/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ func TestInstances_InstanceMetadata(t *testing.T) {
},
Zone: "Test DC",
Region: "Test Location",
AdditionalLabels: map[string]string{
"instance.hetzner.cloud/provided-by": "cloud",
},
}

if !reflect.DeepEqual(metadata, expectedMetadata) {
Expand Down Expand Up @@ -405,6 +408,9 @@ func TestInstances_InstanceMetadataRobotServer(t *testing.T) {
},
Zone: "nbg1-dc1",
Region: "nbg1",
AdditionalLabels: map[string]string{
"instance.hetzner.cloud/provided-by": "cloud",
},
}

if !reflect.DeepEqual(metadata, expectedMetadata) {
Expand Down

0 comments on commit 9da45ad

Please sign in to comment.