From cacafc11a0e77113bfb447964f114240eb2bb352 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Mon, 8 Dec 2025 17:27:44 +0800 Subject: [PATCH 1/2] test(redis): disable tests due to internal policy restrictions - Disabled canCRUDRedisCache test method - Disabled canCRUDLinkedServers test method - Disabled canCreateRedisWithRdbAof test method - Disabled canCreateRedisCacheWithDisablePublicNetworkAccess test method - Added explanatory comments for disabled tests regarding local authentication policy --- .../resourcemanager/redis/RedisCacheOperationsTests.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java b/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java index c4b260c5684c..1a0bbf57a978 100644 --- a/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java +++ b/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java @@ -39,6 +39,7 @@ public class RedisCacheOperationsTests extends RedisManagementTest { @Test + @Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.") @SuppressWarnings("unchecked") public void canCRUDRedisCache() throws Exception { // Create @@ -206,7 +207,7 @@ public void canCRUDRedisCache() throws Exception { // com.microsoft.azure.CloudException: One of the SAS URIs provided could not be used for the following reason: // The SAS token is poorly formatted. /*premiumCache.exportData(storageAccount.name(),"snapshot1"); - + premiumCache.importData(Arrays.asList("snapshot1"));*/ } @@ -241,6 +242,7 @@ public void canRedisVersionUpdate() { } @Test + @Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.") public void canCRUDLinkedServers() throws Exception { RedisCache rgg = redisManager.redisCaches() @@ -298,6 +300,7 @@ public void canCRUDLinkedServers() throws Exception { } @Test + @Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.") public void canCreateRedisWithRdbAof() { StorageAccount storageAccount = storageManager.storageAccounts() .define(saName) @@ -349,6 +352,7 @@ public void canCreateRedisWithRdbAof() { } @Test + @Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.") public void canCreateRedisCacheWithDisablePublicNetworkAccess() { resourceManager.resourceGroups().define(rgNameSecond).withRegion(Region.US_CENTRAL); From e69b48647e5ffd0a6baf2258a7621ea93f496d72 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Tue, 9 Dec 2025 12:19:59 +0800 Subject: [PATCH 2/2] test(redis): disable public network access update test - Disabled test case for updating public network access due to internal policy restrictions - Added @Disabled annotation with explanation about local authentication methods not being allowed - Preserved existing test structure and comments for future reference --- .../azure/resourcemanager/redis/RedisCacheOperationsTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java b/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java index 1a0bbf57a978..7b488c57ebc9 100644 --- a/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java +++ b/sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java @@ -207,7 +207,7 @@ public void canCRUDRedisCache() throws Exception { // com.microsoft.azure.CloudException: One of the SAS URIs provided could not be used for the following reason: // The SAS token is poorly formatted. /*premiumCache.exportData(storageAccount.name(),"snapshot1"); - + premiumCache.importData(Arrays.asList("snapshot1"));*/ } @@ -367,6 +367,7 @@ public void canCreateRedisCacheWithDisablePublicNetworkAccess() { } @Test + @Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.") public void canUpdatePublicNetworkAccess() { resourceManager.resourceGroups().define(rgNameSecond).withRegion(Region.US_CENTRAL);