From 0b84cb925d3c345bcfdcb2a681565f2373502edd Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Tue, 2 Feb 2021 01:39:48 +0800 Subject: [PATCH] Cleanup test --- .../cloudprovider/azure/azure_config_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cluster-autoscaler/cloudprovider/azure/azure_config_test.go b/cluster-autoscaler/cloudprovider/azure/azure_config_test.go index fbeb90bc21b6..7a04465ff7a2 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_config_test.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_config_test.go @@ -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) -}