Skip to content

Commit

Permalink
Merge pull request kubernetes#3864 from feiskyer/clean-test
Browse files Browse the repository at this point in the history
Azure: Cleanup test
  • Loading branch information
k8s-ci-robot authored Feb 2, 2021
2 parents 18f1429 + 0b84cb9 commit 8c31539
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 8c31539

Please sign in to comment.