diff --git a/apps/managedidentity/managedidentity.go b/apps/managedidentity/managedidentity.go index e868a288..1d83dc51 100644 --- a/apps/managedidentity/managedidentity.go +++ b/apps/managedidentity/managedidentity.go @@ -373,17 +373,13 @@ func createAzureArcAuthRequest(ctx context.Context, id ID, resource string) (*ht func isAzureArcEnvironment(identityEndpoint, imdsEndpoint string, platform string) bool { if identityEndpoint != "" && imdsEndpoint != "" { - println("both not empty") return true } himdsFilePath := getAzureArcFilePath(platform) - println("himdsFilePath: " + himdsFilePath) if himdsFilePath != "" { - println("himdsFilePath not empty") if _, err := os.Stat(himdsFilePath); err == nil { - println("himdsFilePath exists") return true } } diff --git a/apps/managedidentity/managedidentity_test.go b/apps/managedidentity/managedidentity_test.go index 7eaa11c2..ac874e03 100644 --- a/apps/managedidentity/managedidentity_test.go +++ b/apps/managedidentity/managedidentity_test.go @@ -194,9 +194,6 @@ func Test_AcquireToken_Returns_Token_Success(t *testing.T) { {source: DefaultToIMDS, endpoint: imdsDefaultEndpoint, resource: resourceDefaultSuffix, miType: UserAssignedObjectID("objectId"), apiVersion: imdsAPIVersion}, {source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: SystemAssigned(), apiVersion: azureArcAPIVersion}, {source: AzureArc, endpoint: azureArcEndpoint, resource: resourceDefaultSuffix, miType: SystemAssigned(), apiVersion: azureArcAPIVersion}, - // {source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: UserAssignedClientID("clientId"), apiVersion: azureArcAPIVersion}, - // {source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: UserAssignedObjectID("objectId"), apiVersion: azureArcAPIVersion}, - // {source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: UserAssignedResourceID("resourceId"), apiVersion: azureArcAPIVersion}, } for _, testCase := range testCases {