Skip to content

Commit cacafc1

Browse files
committed
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
1 parent 38e062e commit cacafc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk/redis/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
public class RedisCacheOperationsTests extends RedisManagementTest {
4040

4141
@Test
42+
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
4243
@SuppressWarnings("unchecked")
4344
public void canCRUDRedisCache() throws Exception {
4445
// Create
@@ -206,7 +207,7 @@ public void canCRUDRedisCache() throws Exception {
206207
// com.microsoft.azure.CloudException: One of the SAS URIs provided could not be used for the following reason:
207208
// The SAS token is poorly formatted.
208209
/*premiumCache.exportData(storageAccount.name(),"snapshot1");
209-
210+
210211
premiumCache.importData(Arrays.asList("snapshot1"));*/
211212
}
212213

@@ -241,6 +242,7 @@ public void canRedisVersionUpdate() {
241242
}
242243

243244
@Test
245+
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
244246
public void canCRUDLinkedServers() throws Exception {
245247

246248
RedisCache rgg = redisManager.redisCaches()
@@ -298,6 +300,7 @@ public void canCRUDLinkedServers() throws Exception {
298300
}
299301

300302
@Test
303+
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
301304
public void canCreateRedisWithRdbAof() {
302305
StorageAccount storageAccount = storageManager.storageAccounts()
303306
.define(saName)
@@ -349,6 +352,7 @@ public void canCreateRedisWithRdbAof() {
349352
}
350353

351354
@Test
355+
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
352356
public void canCreateRedisCacheWithDisablePublicNetworkAccess() {
353357
resourceManager.resourceGroups().define(rgNameSecond).withRegion(Region.US_CENTRAL);
354358

0 commit comments

Comments
 (0)