From 7d90a3ca278546258c5ce281dd8ffba04826f047 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Tue, 17 Dec 2024 15:58:29 +0800 Subject: [PATCH] fix comments --- .../azure-resourcemanager-resourcehealth/pom.xml | 6 ------ .../resourcemanager/resourcehealth/ResourceHealthTests.java | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sdk/resourcehealth/azure-resourcemanager-resourcehealth/pom.xml b/sdk/resourcehealth/azure-resourcemanager-resourcehealth/pom.xml index 12e3618e1e606..6d1402dbe0894 100644 --- a/sdk/resourcehealth/azure-resourcemanager-resourcehealth/pom.xml +++ b/sdk/resourcehealth/azure-resourcemanager-resourcehealth/pom.xml @@ -95,11 +95,5 @@ 2.45.0 test - - com.azure.resourcemanager - azure-resourcemanager-resources - 2.45.0 - test - diff --git a/sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/test/java/com/azure/resourcemanager/resourcehealth/ResourceHealthTests.java b/sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/test/java/com/azure/resourcemanager/resourcehealth/ResourceHealthTests.java index b2901efde118a..e0265bf01c1a2 100644 --- a/sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/test/java/com/azure/resourcemanager/resourcehealth/ResourceHealthTests.java +++ b/sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/test/java/com/azure/resourcemanager/resourcehealth/ResourceHealthTests.java @@ -55,12 +55,12 @@ public void resourceHealthTest() { ComputeManager computeManager = ComputeManager.configure() .withPolicy(new ProviderRegistrationPolicy(resourceManager)) .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) - .authenticate(new AzurePowerShellCredentialBuilder().build(), new AzureProfile(AzureEnvironment.AZURE)); + .authenticate(credential, profile); ResourceHealthManager resourceHealthManager = ResourceHealthManager.configure() .withPolicy(new ProviderRegistrationPolicy(resourceManager)) .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) - .authenticate(new AzurePowerShellCredentialBuilder().build(), new AzureProfile(AzureEnvironment.AZURE)); + .authenticate(credential, profile); String testResourceGroup = Configuration.getGlobalConfiguration().get("AZURE_RESOURCE_GROUP_NAME"); boolean testEnv = !CoreUtils.isNullOrEmpty(testResourceGroup);