Skip to content

Commit

Permalink
Cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer committed Feb 1, 2021
1 parent 18f1429 commit 0b84cb9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cluster-autoscaler/cloudprovider/azure/azure_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,3 @@ func TestOverrideDefaultRateLimitConfig(t *testing.T) {
newconfig = overrideDefaultRateLimitConfig(&defaultConfigWithRateLimits.RateLimitConfig, &falseCloudProviderRateLimit.RateLimitConfig)
assert.Equal(t, &falseCloudProviderRateLimit.RateLimitConfig, newconfig)
}

func TestGetSubscriptionIdFromInstanceMetadata(t *testing.T) {
// metadataURL in azure_manager.go is not available for our tests, expect fail.
result, err := getSubscriptionIdFromInstanceMetadata()
expected := ""
assert.NotNil(t, err.Error())
assert.Equal(t, expected, result, "Verify return result failed, expected: %v, actual: %v", expected, result)
}

0 comments on commit 0b84cb9

Please sign in to comment.