diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
index 583af28ae9fbe..9311f20ae0f6f 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.1.0-beta.4 (Unreleased)
+## 1.0.0-beta.1 (2023-04-05)
+
+- Azure Resource Manager RedisEnterprise client library for Java. This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2023-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
index f0c7862a34854..85fd50b17e9f3 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-redisenterprise
- 1.1.0-beta.3
+ 1.1.0-beta.4
```
[//]: # ({x-version-update-end})
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
index 9f98d3cb8661c..950d2d879b42b 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
@@ -45,7 +45,6 @@
UTF-8
0
0
- true
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java
index ed9b33f6b7bcf..9caf16b2979d8 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java
@@ -227,7 +227,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.redisenterprise")
.append("/")
- .append("1.1.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/CapabilityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/CapabilityTests.java
deleted file mode 100644
index 610043a8d46dd..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/CapabilityTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Capability;
-import org.junit.jupiter.api.Assertions;
-
-public final class CapabilityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Capability model =
- BinaryData.fromString("{\"name\":\"oklyaxuconuq\",\"value\":false}").toObject(Capability.class);
- Assertions.assertEquals("oklyaxuconuq", model.name());
- Assertions.assertEquals(false, model.value());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Capability model = new Capability().withName("oklyaxuconuq").withValue(false);
- model = BinaryData.fromObject(model).toObject(Capability.class);
- Assertions.assertEquals("oklyaxuconuq", model.name());
- Assertions.assertEquals(false, model.value());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterInnerTests.java
deleted file mode 100644
index 15f7bbc8cbedb..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterInnerTests.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterInner model =
- BinaryData
- .fromString(
- "{\"sku\":{\"name\":\"EnterpriseFlash_F700\",\"capacity\":992034682},\"zones\":[\"k\",\"vd\"],\"identity\":{\"principalId\":\"f5d47d63-4d8c-4425-9f08-befe321ff670\",\"tenantId\":\"aa43d95d-3905-4c9d-96c4-efd75eb5dbc2\",\"type\":\"None\",\"userAssignedIdentities\":{\"ukxgaud\":{\"principalId\":\"7a20e069-609c-4680-b9aa-e9ce7d87d024\",\"clientId\":\"1efc16fa-c5ff-48a1-9c85-4910c07da9c6\"},\"nhsjcnyej\":{\"principalId\":\"e40317fa-41f4-40d8-baea-a1e193f6138a\",\"clientId\":\"61cfc4f6-8a7d-4ccf-bc66-c8b1864a2f63\"}}},\"properties\":{\"minimumTlsVersion\":\"1.0\",\"encryption\":{},\"hostName\":\"apcz\",\"provisioningState\":\"Creating\",\"resourceState\":\"DeleteFailed\",\"redisVersion\":\"emkkvnipjox\",\"privateEndpointConnections\":[{\"id\":\"gejspodmailzyde\",\"name\":\"o\",\"type\":\"wyahuxinpmqnja\"},{\"id\":\"xj\",\"name\":\"prozvcputegjvwmf\",\"type\":\"atscmd\"}]},\"location\":\"jhulsuuvmkjo\",\"tags\":{\"ej\":\"wfndiodjpsl\",\"azakl\":\"pvwryoqpsoacc\"},\"id\":\"lahbcryff\",\"name\":\"fdosyg\",\"type\":\"xpaojakhmsbz\"}")
- .toObject(ClusterInner.class);
- Assertions.assertEquals("jhulsuuvmkjo", model.location());
- Assertions.assertEquals("wfndiodjpsl", model.tags().get("ej"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F700, model.sku().name());
- Assertions.assertEquals(992034682, model.sku().capacity());
- Assertions.assertEquals("k", model.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterInner model =
- new ClusterInner()
- .withLocation("jhulsuuvmkjo")
- .withTags(mapOf("ej", "wfndiodjpsl", "azakl", "pvwryoqpsoacc"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F700).withCapacity(992034682))
- .withZones(Arrays.asList("k", "vd"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(
- mapOf("ukxgaud", new UserAssignedIdentity(), "nhsjcnyej", new UserAssignedIdentity())))
- .withMinimumTlsVersion(TlsVersion.ONE_ZERO)
- .withEncryption(new ClusterPropertiesEncryption());
- model = BinaryData.fromObject(model).toObject(ClusterInner.class);
- Assertions.assertEquals("jhulsuuvmkjo", model.location());
- Assertions.assertEquals("wfndiodjpsl", model.tags().get("ej"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F700, model.sku().name());
- Assertions.assertEquals(992034682, model.sku().capacity());
- Assertions.assertEquals("k", model.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterListTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterListTests.java
deleted file mode 100644
index 35b760d40b2d0..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterListTests.java
+++ /dev/null
@@ -1,114 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
-import com.azure.resourcemanager.redisenterprise.models.ClusterList;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"sku\":{\"name\":\"Enterprise_E100\",\"capacity\":757698897},\"zones\":[\"l\",\"ndlik\",\"yqkgfg\"],\"identity\":{\"principalId\":\"90eff83e-825f-48f3-965e-3d795be6a629\",\"tenantId\":\"75977f0f-8699-47eb-a4d1-da4ff4ec7b73\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.1\",\"hostName\":\"rxybz\",\"provisioningState\":\"Canceled\",\"resourceState\":\"Disabled\",\"redisVersion\":\"tbciqfouflmm\",\"privateEndpointConnections\":[]},\"location\":\"smodmgloug\",\"tags\":{\"ta\":\"wtmutduq\",\"whbmd\":\"spwgcuertumkdosv\",\"bhtqqrolfpfpsa\":\"bbjfddgmbmbexp\",\"jgzjaoyfhrtx\":\"gbquxigj\"},\"id\":\"lnerkujysvleju\",\"name\":\"fqawrlyxw\",\"type\":\"kcprbnw\"},{\"sku\":{\"name\":\"EnterpriseFlash_F1500\",\"capacity\":19976049},\"zones\":[\"bvpyss\",\"dnrujqguhmuouqfp\",\"wzwbnguitn\"],\"identity\":{\"principalId\":\"c00a688f-e999-484c-a8a0-66e1185caef2\",\"tenantId\":\"2cbddb9d-555d-4e1d-bad2-29624caf2ff6\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.1\",\"hostName\":\"zuckyfi\",\"provisioningState\":\"Creating\",\"resourceState\":\"EnableFailed\",\"redisVersion\":\"vzwdzuhtymwis\",\"privateEndpointConnections\":[]},\"location\":\"thwxmnteiwaopvkm\",\"tags\":{\"uf\":\"mmxdcu\"},\"id\":\"rpymzidnsez\",\"name\":\"xtbzsgfyccsne\",\"type\":\"mdwzjeiachboo\"},{\"sku\":{\"name\":\"Enterprise_E20\",\"capacity\":219333087},\"zones\":[\"sfqpteehz\",\"vypyqrimzinpv\",\"wjdk\"],\"identity\":{\"principalId\":\"3bd9ea38-b56c-4244-85ed-751adf8ece99\",\"tenantId\":\"e55d238e-b999-422a-bc19-990b3d105f10\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.0\",\"hostName\":\"mnoh\",\"provisioningState\":\"Failed\",\"resourceState\":\"Running\",\"redisVersion\":\"dsoifiyipj\",\"privateEndpointConnections\":[]},\"location\":\"wpgrjbzno\",\"tags\":{\"nb\":\"xv\",\"rzafbljjgpbtoqcj\":\"xqabnmocpcysh\",\"vbqid\":\"klj\"},\"id\":\"qajzyulpkudjkr\",\"name\":\"khbzhfepgzg\",\"type\":\"e\"},{\"sku\":{\"name\":\"Enterprise_E20\",\"capacity\":1678385538},\"zones\":[\"scpai\",\"rhhbcs\",\"l\"],\"identity\":{\"principalId\":\"7b158bd3-97df-4c2a-ac7e-1b2217741991\",\"tenantId\":\"e484b802-9883-4733-a687-d29514741b98\",\"type\":\"SystemAssigned,"
- + " UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"hostName\":\"obnbdxkqpxokaj\",\"provisioningState\":\"Succeeded\",\"resourceState\":\"Disabling\",\"redisVersion\":\"ex\",\"privateEndpointConnections\":[]},\"location\":\"xgcp\",\"tags\":{\"mcl\":\"maajrmvdjwzrlo\",\"jctbza\":\"hijco\"},\"id\":\"s\",\"name\":\"sycbkbfk\",\"type\":\"ukdkexxppofmxa\"}],\"nextLink\":\"fjpgddtocjjxhvp\"}")
- .toObject(ClusterList.class);
- Assertions.assertEquals("smodmgloug", model.value().get(0).location());
- Assertions.assertEquals("wtmutduq", model.value().get(0).tags().get("ta"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.value().get(0).sku().name());
- Assertions.assertEquals(757698897, model.value().get(0).sku().capacity());
- Assertions.assertEquals("l", model.value().get(0).zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.value().get(0).identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ONE, model.value().get(0).minimumTlsVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterList model =
- new ClusterList()
- .withValue(
- Arrays
- .asList(
- new ClusterInner()
- .withLocation("smodmgloug")
- .withTags(
- mapOf(
- "ta",
- "wtmutduq",
- "whbmd",
- "spwgcuertumkdosv",
- "bhtqqrolfpfpsa",
- "bbjfddgmbmbexp",
- "jgzjaoyfhrtx",
- "gbquxigj"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E100).withCapacity(757698897))
- .withZones(Arrays.asList("l", "ndlik", "yqkgfg"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ONE),
- new ClusterInner()
- .withLocation("thwxmnteiwaopvkm")
- .withTags(mapOf("uf", "mmxdcu"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F1500).withCapacity(19976049))
- .withZones(Arrays.asList("bvpyss", "dnrujqguhmuouqfp", "wzwbnguitn"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ONE),
- new ClusterInner()
- .withLocation("wpgrjbzno")
- .withTags(mapOf("nb", "xv", "rzafbljjgpbtoqcj", "xqabnmocpcysh", "vbqid", "klj"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(219333087))
- .withZones(Arrays.asList("sfqpteehz", "vypyqrimzinpv", "wjdk"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ZERO),
- new ClusterInner()
- .withLocation("xgcp")
- .withTags(mapOf("mcl", "maajrmvdjwzrlo", "jctbza", "hijco"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(1678385538))
- .withZones(Arrays.asList("scpai", "rhhbcs", "l"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_TWO)));
- model = BinaryData.fromObject(model).toObject(ClusterList.class);
- Assertions.assertEquals("smodmgloug", model.value().get(0).location());
- Assertions.assertEquals("wtmutduq", model.value().get(0).tags().get("ta"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.value().get(0).sku().name());
- Assertions.assertEquals(757698897, model.value().get(0).sku().capacity());
- Assertions.assertEquals("l", model.value().get(0).zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.value().get(0).identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ONE, model.value().get(0).minimumTlsVersion());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java
deleted file mode 100644
index f4ebd3e0e5c6c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity;
-import com.azure.resourcemanager.redisenterprise.models.CmkIdentityType;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity model =
- BinaryData
- .fromString(
- "{\"userAssignedIdentityResourceId\":\"ininmay\",\"identityType\":\"systemAssignedIdentity\"}")
- .toObject(ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.class);
- Assertions.assertEquals("ininmay", model.userAssignedIdentityResourceId());
- Assertions.assertEquals(CmkIdentityType.SYSTEM_ASSIGNED_IDENTITY, model.identityType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity model =
- new ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity()
- .withUserAssignedIdentityResourceId("ininmay")
- .withIdentityType(CmkIdentityType.SYSTEM_ASSIGNED_IDENTITY);
- model =
- BinaryData
- .fromObject(model)
- .toObject(ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.class);
- Assertions.assertEquals("ininmay", model.userAssignedIdentityResourceId());
- Assertions.assertEquals(CmkIdentityType.SYSTEM_ASSIGNED_IDENTITY, model.identityType());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterUpdateTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterUpdateTests.java
deleted file mode 100644
index 5465c3945be3e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterUpdateTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
-import com.azure.resourcemanager.redisenterprise.models.ClusterUpdate;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterUpdate model =
- BinaryData
- .fromString(
- "{\"sku\":{\"name\":\"EnterpriseFlash_F300\",\"capacity\":422670277},\"properties\":{\"minimumTlsVersion\":\"1.0\",\"encryption\":{},\"hostName\":\"tnhxbn\",\"provisioningState\":\"Creating\",\"resourceState\":\"EnableFailed\",\"redisVersion\":\"rglssainqpj\",\"privateEndpointConnections\":[{\"id\":\"jfm\",\"name\":\"pee\",\"type\":\"vmgxsab\"},{\"id\":\"duuji\",\"name\":\"c\",\"type\":\"czdzev\"},{\"id\":\"krwpdap\",\"name\":\"dsbdkvwrwjf\",\"type\":\"usnhutje\"},{\"id\":\"rl\",\"name\":\"hugjzzdatqxhoc\",\"type\":\"geablgphuticndvk\"}]},\"identity\":{\"principalId\":\"e84f62b1-2b03-467b-b87a-d96e0b7bea22\",\"tenantId\":\"658aedbe-c6c3-465e-887d-c6bc7115ba00\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"hxh\":{\"principalId\":\"ef6b2490-4e98-4cfb-b2e2-351940dfc312\",\"clientId\":\"05a96c3d-d9e2-42d5-aa75-35d9cd89e45c\"},\"k\":{\"principalId\":\"4c71974d-b491-42db-8c3a-2b0ae199951c\",\"clientId\":\"6d3c5a9d-76cb-4700-b927-e153ac1b3d29\"},\"xolniwpwcukjfk\":{\"principalId\":\"3c01bd84-5c98-4fff-acf3-94fdcf59eff5\",\"clientId\":\"dd3813d9-95e6-4ddf-86ce-64f6207edea3\"}}},\"tags\":{\"klryplwck\":\"w\",\"pnddhsgcbacphejk\":\"asy\"}}")
- .toObject(ClusterUpdate.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F300, model.sku().name());
- Assertions.assertEquals(422670277, model.sku().capacity());
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type());
- Assertions.assertEquals("w", model.tags().get("klryplwck"));
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterUpdate model =
- new ClusterUpdate()
- .withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F300).withCapacity(422670277))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "hxh",
- new UserAssignedIdentity(),
- "k",
- new UserAssignedIdentity(),
- "xolniwpwcukjfk",
- new UserAssignedIdentity())))
- .withTags(mapOf("klryplwck", "w", "pnddhsgcbacphejk", "asy"))
- .withMinimumTlsVersion(TlsVersion.ONE_ZERO)
- .withEncryption(new ClusterPropertiesEncryption());
- model = BinaryData.fromObject(model).toObject(ClusterUpdate.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F300, model.sku().name());
- Assertions.assertEquals(422670277, model.sku().capacity());
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type());
- Assertions.assertEquals("w", model.tags().get("klryplwck"));
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseInnerTests.java
deleted file mode 100644
index 8bc50f5acc18a..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseInnerTests.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabaseInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":248377661,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Creating\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileRandom\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"6h\"},\"modules\":[{\"name\":\"ftutqxlngxlefgu\",\"args\":\"xkrxdqmi\",\"version\":\"thz\"},{\"name\":\"vqdra\",\"args\":\"jybige\",\"version\":\"qfbow\"},{\"name\":\"kanyktzlcuiywg\",\"args\":\"wgndrvynhzgpp\",\"version\":\"cgyncocpecf\"},{\"name\":\"m\",\"args\":\"oo\",\"version\":\"xlzevgbmqjqabcy\"}],\"geoReplication\":{\"groupNickname\":\"vkwlzuvccfwnf\",\"linkedDatabases\":[]}},\"id\":\"fionl\",\"name\":\"bxetqgtzxdpn\",\"type\":\"bqqwxrj\"}")
- .toObject(DatabaseInner.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(248377661, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("ftutqxlngxlefgu", model.modules().get(0).name());
- Assertions.assertEquals("xkrxdqmi", model.modules().get(0).args());
- Assertions.assertEquals("vkwlzuvccfwnf", model.geoReplication().groupNickname());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseInner model =
- new DatabaseInner()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(248377661)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.VOLATILE_RANDOM)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(false)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.SIXH))
- .withModules(
- Arrays
- .asList(
- new Module().withName("ftutqxlngxlefgu").withArgs("xkrxdqmi"),
- new Module().withName("vqdra").withArgs("jybige"),
- new Module().withName("kanyktzlcuiywg").withArgs("wgndrvynhzgpp"),
- new Module().withName("m").withArgs("oo")))
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("vkwlzuvccfwnf")
- .withLinkedDatabases(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(DatabaseInner.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(248377661, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("ftutqxlngxlefgu", model.modules().get(0).name());
- Assertions.assertEquals("xkrxdqmi", model.modules().get(0).args());
- Assertions.assertEquals("vkwlzuvccfwnf", model.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseListTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseListTests.java
deleted file mode 100644
index 49347126f3ae9..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseListTests.java
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabaseList;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabaseListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":2146697807,\"provisioningState\":\"Deleting\",\"resourceState\":\"Disabling\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLFU\",\"modules\":[]},\"id\":\"vddntwn\",\"name\":\"eic\",\"type\":\"twnpzaoqvuhrhcf\"},{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":1519639894,\"provisioningState\":\"Failed\",\"resourceState\":\"Creating\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"AllKeysLFU\",\"modules\":[]},\"id\":\"icxm\",\"name\":\"ciwqvhk\",\"type\":\"ixuigdtopbobj\"}],\"nextLink\":\"hm\"}")
- .toObject(DatabaseList.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.value().get(0).clientProtocol());
- Assertions.assertEquals(2146697807, model.value().get(0).port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.value().get(0).clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_LFU, model.value().get(0).evictionPolicy());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseList model =
- new DatabaseList()
- .withValue(
- Arrays
- .asList(
- new DatabaseInner()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(2146697807)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.VOLATILE_LFU)
- .withModules(Arrays.asList()),
- new DatabaseInner()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(1519639894)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.ALL_KEYS_LFU)
- .withModules(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(DatabaseList.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.value().get(0).clientProtocol());
- Assertions.assertEquals(2146697807, model.value().get(0).port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.value().get(0).clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_LFU, model.value().get(0).evictionPolicy());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java
deleted file mode 100644
index 6cf75af31d898..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabasePropertiesGeoReplicationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabasePropertiesGeoReplication model =
- BinaryData
- .fromString(
- "{\"groupNickname\":\"zzvdudgwds\",\"linkedDatabases\":[{\"id\":\"twmcynpwlb\",\"state\":\"LinkFailed\"},{\"id\":\"acfta\",\"state\":\"UnlinkFailed\"},{\"id\":\"nltyfsoppusuesnz\",\"state\":\"Linking\"},{\"id\":\"bavo\",\"state\":\"Unlinking\"}]}")
- .toObject(DatabasePropertiesGeoReplication.class);
- Assertions.assertEquals("zzvdudgwds", model.groupNickname());
- Assertions.assertEquals("twmcynpwlb", model.linkedDatabases().get(0).id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabasePropertiesGeoReplication model =
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("zzvdudgwds")
- .withLinkedDatabases(
- Arrays
- .asList(
- new LinkedDatabase().withId("twmcynpwlb"),
- new LinkedDatabase().withId("acfta"),
- new LinkedDatabase().withId("nltyfsoppusuesnz"),
- new LinkedDatabase().withId("bavo")));
- model = BinaryData.fromObject(model).toObject(DatabasePropertiesGeoReplication.class);
- Assertions.assertEquals("zzvdudgwds", model.groupNickname());
- Assertions.assertEquals("twmcynpwlb", model.linkedDatabases().get(0).id());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesTests.java
deleted file mode 100644
index 1717ca2791d1b..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseProperties;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabasePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseProperties model =
- BinaryData
- .fromString(
- "{\"clientProtocol\":\"Encrypted\",\"port\":61111335,\"provisioningState\":\"Failed\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"AllKeysRandom\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":true,\"aofFrequency\":\"always\",\"rdbFrequency\":\"6h\"},\"modules\":[{\"name\":\"xaqwoochcbonqv\",\"args\":\"vlrxnjeaseiph\",\"version\":\"f\"}],\"geoReplication\":{\"groupNickname\":\"eyy\",\"linkedDatabases\":[{\"id\":\"bdlwtgrhpdjpj\",\"state\":\"Unlinking\"}]}}")
- .toObject(DatabaseProperties.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(61111335, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.ALL_KEYS_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(true, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("xaqwoochcbonqv", model.modules().get(0).name());
- Assertions.assertEquals("vlrxnjeaseiph", model.modules().get(0).args());
- Assertions.assertEquals("eyy", model.geoReplication().groupNickname());
- Assertions.assertEquals("bdlwtgrhpdjpj", model.geoReplication().linkedDatabases().get(0).id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseProperties model =
- new DatabaseProperties()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(61111335)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.ALL_KEYS_RANDOM)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(true)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.SIXH))
- .withModules(Arrays.asList(new Module().withName("xaqwoochcbonqv").withArgs("vlrxnjeaseiph")))
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("eyy")
- .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId("bdlwtgrhpdjpj"))));
- model = BinaryData.fromObject(model).toObject(DatabaseProperties.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(61111335, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.ALL_KEYS_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(true, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("xaqwoochcbonqv", model.modules().get(0).name());
- Assertions.assertEquals("vlrxnjeaseiph", model.modules().get(0).args());
- Assertions.assertEquals("eyy", model.geoReplication().groupNickname());
- Assertions.assertEquals("bdlwtgrhpdjpj", model.geoReplication().linkedDatabases().get(0).id());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseUpdateTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseUpdateTests.java
deleted file mode 100644
index b3064decc0129..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseUpdateTests.java
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabaseUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseUpdate model =
- BinaryData
- .fromString(
- "{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":1222672575,\"provisioningState\":\"Creating\",\"resourceState\":\"Disabled\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"NoEviction\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"1h\"},\"modules\":[{\"name\":\"lazjdyggdtjixhbk\",\"args\":\"fqweykhmene\",\"version\":\"yexfwh\"},{\"name\":\"bcibvyvdcsitynn\",\"args\":\"mdectehfiqscjey\",\"version\":\"hezrkgq\"}],\"geoReplication\":{\"groupNickname\":\"refovgmkqsleyyvx\",\"linkedDatabases\":[]}}}")
- .toObject(DatabaseUpdate.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(1222672575, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.NO_EVICTION, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONEH, model.persistence().rdbFrequency());
- Assertions.assertEquals("lazjdyggdtjixhbk", model.modules().get(0).name());
- Assertions.assertEquals("fqweykhmene", model.modules().get(0).args());
- Assertions.assertEquals("refovgmkqsleyyvx", model.geoReplication().groupNickname());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseUpdate model =
- new DatabaseUpdate()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(1222672575)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.NO_EVICTION)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(false)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.ONEH))
- .withModules(
- Arrays
- .asList(
- new Module().withName("lazjdyggdtjixhbk").withArgs("fqweykhmene"),
- new Module().withName("bcibvyvdcsitynn").withArgs("mdectehfiqscjey")))
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("refovgmkqsleyyvx")
- .withLinkedDatabases(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(DatabaseUpdate.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(1222672575, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.NO_EVICTION, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONEH, model.persistence().rdbFrequency());
- Assertions.assertEquals("lazjdyggdtjixhbk", model.modules().get(0).name());
- Assertions.assertEquals("fqweykhmene", model.modules().get(0).args());
- Assertions.assertEquals("refovgmkqsleyyvx", model.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateMockTests.java
deleted file mode 100644
index 1d026883e806c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateMockTests.java
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Database;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":1688847935,\"provisioningState\":\"Succeeded\",\"resourceState\":\"CreateFailed\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLFU\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"1s\",\"rdbFrequency\":\"12h\"},\"modules\":[],\"geoReplication\":{\"groupNickname\":\"qaqtdoqmcbxvwvxy\",\"linkedDatabases\":[]}},\"id\":\"bhsfxob\",\"name\":\"ytkblmpew\",\"type\":\"wfbkrvrns\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Database response =
- manager
- .databases()
- .define("pfqbuaceopzf")
- .withExistingRedisEnterprise("pkteo", "llwptfdy")
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(350693240)
- .withClusteringPolicy(ClusteringPolicy.ENTERPRISE_CLUSTER)
- .withEvictionPolicy(EvictionPolicy.VOLATILE_LFU)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(true)
- .withAofFrequency(AofFrequency.ONES)
- .withRdbFrequency(RdbFrequency.ONEH))
- .withModules(Arrays.asList())
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("gbkdmoizpos")
- .withLinkedDatabases(Arrays.asList()))
- .create();
-
- Assertions.assertEquals(Protocol.ENCRYPTED, response.clientProtocol());
- Assertions.assertEquals(1688847935, response.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, response.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_LFU, response.evictionPolicy());
- Assertions.assertEquals(true, response.persistence().aofEnabled());
- Assertions.assertEquals(false, response.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ONES, response.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, response.persistence().rdbFrequency());
- Assertions.assertEquals("qaqtdoqmcbxvwvxy", response.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java
deleted file mode 100644
index 35e3751ef932f..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.databases().delete("aloayqcgwrtzju", "gwyzm", "txon", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java
deleted file mode 100644
index 7571027a5ed35..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesExportMockTests {
- @Test
- public void testExport() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .export(
- "us",
- "ttouwaboekqvkel",
- "smv",
- new ExportClusterParameters().withSasUri("xwyjsflhhc"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java
deleted file mode 100644
index 3f68e7a662de9..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesFlushMockTests {
- @Test
- public void testFlush() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .flush(
- "tfolhbnx",
- "nalaulppg",
- "dtpnapnyiropuhp",
- new FlushParameters().withIds(Arrays.asList("pgylg", "git", "medjvcslynqwwncw", "zhxgktrmgucn")),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java
deleted file mode 100644
index e588496574d9a..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesForceUnlinkMockTests {
- @Test
- public void testForceUnlink() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .forceUnlink(
- "aln",
- "ixisxyawjoy",
- "qcslyjpkiid",
- new ForceUnlinkParameters().withIds(Arrays.asList("exznelixhnr")),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetWithResponseMockTests.java
deleted file mode 100644
index e44c59e23dae2..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Database;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"clientProtocol\":\"Plaintext\",\"port\":96984034,\"provisioningState\":\"Succeeded\",\"resourceState\":\"DeleteFailed\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"NoEviction\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":true,\"aofFrequency\":\"always\",\"rdbFrequency\":\"12h\"},\"modules\":[],\"geoReplication\":{\"groupNickname\":\"blcg\",\"linkedDatabases\":[]}},\"id\":\"vlvqhjkbegi\",\"name\":\"t\",\"type\":\"mxiebw\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Database response =
- manager
- .databases()
- .getWithResponse("pow", "wpr", "qlveualupjmkh", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(Protocol.PLAINTEXT, response.clientProtocol());
- Assertions.assertEquals(96984034, response.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, response.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.NO_EVICTION, response.evictionPolicy());
- Assertions.assertEquals(true, response.persistence().aofEnabled());
- Assertions.assertEquals(true, response.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, response.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, response.persistence().rdbFrequency());
- Assertions.assertEquals("blcg", response.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java
deleted file mode 100644
index e1dece8e9b95e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesImportMethodMockTests {
- @Test
- public void testImportMethod() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .importMethod(
- "awjvzunluthnnp",
- "nxipeil",
- "jzuaejxdultskzbb",
- new ImportClusterParameters().withSasUris(Arrays.asList("zumveekgpwo", "uh", "fpbsjyofdxl")),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterMockTests.java
deleted file mode 100644
index e4ae57805bfc3..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterMockTests.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Database;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesListByClusterMockTests {
- @Test
- public void testListByCluster() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":838785311,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"AllKeysRandom\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"6h\"},\"modules\":[],\"geoReplication\":{\"groupNickname\":\"cg\",\"linkedDatabases\":[]}},\"id\":\"ndnhj\",\"name\":\"auwhvylwzbtdhx\",\"type\":\"jznb\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.databases().listByCluster("hzceuojgjrwjue", "otwmcdyt", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(Protocol.ENCRYPTED, response.iterator().next().clientProtocol());
- Assertions.assertEquals(838785311, response.iterator().next().port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, response.iterator().next().clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.ALL_KEYS_RANDOM, response.iterator().next().evictionPolicy());
- Assertions.assertEquals(true, response.iterator().next().persistence().aofEnabled());
- Assertions.assertEquals(false, response.iterator().next().persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, response.iterator().next().persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, response.iterator().next().persistence().rdbFrequency());
- Assertions.assertEquals("cg", response.iterator().next().geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java
deleted file mode 100644
index 9590cb888fc5f..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExportClusterParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExportClusterParameters model =
- BinaryData.fromString("{\"sasUri\":\"mdajv\"}").toObject(ExportClusterParameters.class);
- Assertions.assertEquals("mdajv", model.sasUri());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExportClusterParameters model = new ExportClusterParameters().withSasUri("mdajv");
- model = BinaryData.fromObject(model).toObject(ExportClusterParameters.class);
- Assertions.assertEquals("mdajv", model.sasUri());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java
deleted file mode 100644
index 5b48bf4dfa7a7..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FlushParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FlushParameters model =
- BinaryData.fromString("{\"ids\":[\"yp\",\"rbpizc\",\"r\",\"j\"]}").toObject(FlushParameters.class);
- Assertions.assertEquals("yp", model.ids().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FlushParameters model = new FlushParameters().withIds(Arrays.asList("yp", "rbpizc", "r", "j"));
- model = BinaryData.fromObject(model).toObject(FlushParameters.class);
- Assertions.assertEquals("yp", model.ids().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java
deleted file mode 100644
index eabac60a4c479..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ForceUnlinkParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ForceUnlinkParameters model =
- BinaryData
- .fromString("{\"ids\":[\"udwtiukbl\",\"ngkpocipazy\",\"o\",\"gukgjnpiucgygevq\"]}")
- .toObject(ForceUnlinkParameters.class);
- Assertions.assertEquals("udwtiukbl", model.ids().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ForceUnlinkParameters model =
- new ForceUnlinkParameters().withIds(Arrays.asList("udwtiukbl", "ngkpocipazy", "o", "gukgjnpiucgygevq"));
- model = BinaryData.fromObject(model).toObject(ForceUnlinkParameters.class);
- Assertions.assertEquals("udwtiukbl", model.ids().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java
deleted file mode 100644
index 288858100d8f4..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ImportClusterParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ImportClusterParameters model =
- BinaryData.fromString("{\"sasUris\":[\"tpngjcrcczsqpjh\"]}").toObject(ImportClusterParameters.class);
- Assertions.assertEquals("tpngjcrcczsqpjh", model.sasUris().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ImportClusterParameters model = new ImportClusterParameters().withSasUris(Arrays.asList("tpngjcrcczsqpjh"));
- model = BinaryData.fromObject(model).toObject(ImportClusterParameters.class);
- Assertions.assertEquals("tpngjcrcczsqpjh", model.sasUris().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java
deleted file mode 100644
index 5c53a83717ef8..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
-import org.junit.jupiter.api.Assertions;
-
-public final class LinkedDatabaseTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LinkedDatabase model =
- BinaryData.fromString("{\"id\":\"mohctb\",\"state\":\"Unlinking\"}").toObject(LinkedDatabase.class);
- Assertions.assertEquals("mohctb", model.id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LinkedDatabase model = new LinkedDatabase().withId("mohctb");
- model = BinaryData.fromObject(model).toObject(LinkedDatabase.class);
- Assertions.assertEquals("mohctb", model.id());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LocationInfoTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LocationInfoTests.java
deleted file mode 100644
index 8d035589a9a92..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LocationInfoTests.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Capability;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class LocationInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LocationInfo model =
- BinaryData
- .fromString(
- "{\"location\":\"iyqzrnk\",\"capabilities\":[{\"name\":\"xlwhzlsicoh\",\"value\":false},{\"name\":\"wvl\",\"value\":true},{\"name\":\"w\",\"value\":false},{\"name\":\"nmmqhgyxzkon\",\"value\":false}]}")
- .toObject(LocationInfo.class);
- Assertions.assertEquals("iyqzrnk", model.location());
- Assertions.assertEquals("xlwhzlsicoh", model.capabilities().get(0).name());
- Assertions.assertEquals(false, model.capabilities().get(0).value());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LocationInfo model =
- new LocationInfo()
- .withLocation("iyqzrnk")
- .withCapabilities(
- Arrays
- .asList(
- new Capability().withName("xlwhzlsicoh").withValue(false),
- new Capability().withName("wvl").withValue(true),
- new Capability().withName("w").withValue(false),
- new Capability().withName("nmmqhgyxzkon").withValue(false)));
- model = BinaryData.fromObject(model).toObject(LocationInfo.class);
- Assertions.assertEquals("iyqzrnk", model.location());
- Assertions.assertEquals("xlwhzlsicoh", model.capabilities().get(0).name());
- Assertions.assertEquals(false, model.capabilities().get(0).value());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java
deleted file mode 100644
index 1c914772d06a8..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ManagedServiceIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ManagedServiceIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"dabd5595-3707-45a0-8967-0fd31b5a53c6\",\"tenantId\":\"ec59c503-6073-4511-9117-7263b52fba34\",\"type\":\"SystemAssigned,"
- + " UserAssigned\",\"userAssignedIdentities\":{\"xaolth\":{\"principalId\":\"90144684-e22a-4def-8298-6504ea6b234f\",\"clientId\":\"a3ae5ac2-093c-43b6-bc9a-18fbabe04950\"},\"gqjbpfzfsin\":{\"principalId\":\"793822a9-fb3b-4447-ad4b-344968f46931\",\"clientId\":\"8058c9f0-23ec-4873-8165-f8a4b89577e3\"}}}")
- .toObject(ManagedServiceIdentity.class);
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ManagedServiceIdentity model =
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf("xaolth", new UserAssignedIdentity(), "gqjbpfzfsin", new UserAssignedIdentity()));
- model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class);
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java
deleted file mode 100644
index af73ca64f3555..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import org.junit.jupiter.api.Assertions;
-
-public final class ModuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Module model =
- BinaryData.fromString("{\"name\":\"e\",\"args\":\"alhbx\",\"version\":\"e\"}").toObject(Module.class);
- Assertions.assertEquals("e", model.name());
- Assertions.assertEquals("alhbx", model.args());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Module model = new Module().withName("e").withArgs("alhbx");
- model = BinaryData.fromObject(model).toObject(Module.class);
- Assertions.assertEquals("e", model.name());
- Assertions.assertEquals("alhbx", model.args());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java
deleted file mode 100644
index 30619a60b740a..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.OperationDisplay;
-
-public final class OperationDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationDisplay model =
- BinaryData
- .fromString(
- "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}")
- .toObject(OperationDisplay.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationDisplay model = new OperationDisplay();
- model = BinaryData.fromObject(model).toObject(OperationDisplay.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java
deleted file mode 100644
index 4310fe891b131..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.OperationInner;
-import com.azure.resourcemanager.redisenterprise.models.OperationDisplay;
-
-public final class OperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationInner model =
- BinaryData
- .fromString(
- "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
- .toObject(OperationInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationInner model = new OperationInner().withDisplay(new OperationDisplay());
- model = BinaryData.fromObject(model).toObject(OperationInner.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java
deleted file mode 100644
index 1b0b23c234564..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.OperationListResult;
-
-public final class OperationListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}")
- .toObject(OperationListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationListResult model = new OperationListResult();
- model = BinaryData.fromObject(model).toObject(OperationListResult.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationStatusInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationStatusInnerTests.java
deleted file mode 100644
index 3368f76057d52..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationStatusInnerTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.OperationStatusInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class OperationStatusInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationStatusInner model =
- BinaryData
- .fromString(
- "{\"id\":\"a\",\"name\":\"th\",\"startTime\":\"hab\",\"endTime\":\"pikxwczbyscnpqxu\",\"status\":\"vyq\"}")
- .toObject(OperationStatusInner.class);
- Assertions.assertEquals("a", model.id());
- Assertions.assertEquals("th", model.name());
- Assertions.assertEquals("hab", model.startTime());
- Assertions.assertEquals("pikxwczbyscnpqxu", model.endTime());
- Assertions.assertEquals("vyq", model.status());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationStatusInner model =
- new OperationStatusInner()
- .withId("a")
- .withName("th")
- .withStartTime("hab")
- .withEndTime("pikxwczbyscnpqxu")
- .withStatus("vyq");
- model = BinaryData.fromObject(model).toObject(OperationStatusInner.class);
- Assertions.assertEquals("a", model.id());
- Assertions.assertEquals("th", model.name());
- Assertions.assertEquals("hab", model.startTime());
- Assertions.assertEquals("pikxwczbyscnpqxu", model.endTime());
- Assertions.assertEquals("vyq", model.status());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java
deleted file mode 100644
index ba33e9507fea4..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Operation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class OperationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"name\":\"ypewrmjmwvvjekt\",\"isDataAction\":false,\"display\":{\"provider\":\"hwlrsf\",\"resource\":\"zpwv\",\"operation\":\"dqgbiqylihkaetc\",\"description\":\"vfcivfsnkymuc\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetWithResponseMockTests.java
deleted file mode 100644
index 06dcd7a9cb7c7..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetWithResponseMockTests.java
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.OperationStatus;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class OperationsStatusGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"id\":\"hfnljkyq\",\"name\":\"vuujq\",\"startTime\":\"dokgjl\",\"endTime\":\"oxgvclt\",\"status\":\"sncghkjeszz\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- OperationStatus response =
- manager
- .operationsStatus()
- .getWithResponse("bebrjcxerfuwuttt", "fvjrbirphxepcy", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("hfnljkyq", response.id());
- Assertions.assertEquals("vuujq", response.name());
- Assertions.assertEquals("dokgjl", response.startTime());
- Assertions.assertEquals("oxgvclt", response.endTime());
- Assertions.assertEquals("sncghkjeszz", response.status());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java
deleted file mode 100644
index d55a1c70ed64e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import org.junit.jupiter.api.Assertions;
-
-public final class PersistenceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Persistence model =
- BinaryData
- .fromString(
- "{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"12h\"}")
- .toObject(Persistence.class);
- Assertions.assertEquals(true, model.aofEnabled());
- Assertions.assertEquals(false, model.rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, model.rdbFrequency());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Persistence model =
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(false)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.ONE_TWOH);
- model = BinaryData.fromObject(model).toObject(Persistence.class);
- Assertions.assertEquals(true, model.aofEnabled());
- Assertions.assertEquals(false, model.rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, model.rdbFrequency());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java
deleted file mode 100644
index 6cd32544b5f12..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateEndpointConnectionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"privateEndpoint\":{\"id\":\"podepoo\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"vamih\",\"actionsRequired\":\"gnarxzxtheo\"},\"provisioningState\":\"Succeeded\"},\"id\":\"vyevcciqi\",\"name\":\"nhungbw\",\"type\":\"zrnf\"}")
- .toObject(PrivateEndpointConnectionInner.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("vamih", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("gnarxzxtheo", model.privateLinkServiceConnectionState().actionsRequired());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionInner model =
- new PrivateEndpointConnectionInner()
- .withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED)
- .withDescription("vamih")
- .withActionsRequired("gnarxzxtheo"));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("vamih", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("gnarxzxtheo", model.privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java
deleted file mode 100644
index 4ab89f86798fa..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionListResult;
-import java.util.Arrays;
-
-public final class PrivateEndpointConnectionListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"canoaeupf\",\"name\":\"yhltrpmopjmcm\",\"type\":\"tuo\"},{\"properties\":{\"provisioningState\":\"Failed\"},\"id\":\"uaodsfcpk\",\"name\":\"xodpuozmyzydagfu\",\"type\":\"xbezyiuokktwh\"},{\"properties\":{\"provisioningState\":\"Deleting\"},\"id\":\"wqsmbsur\",\"name\":\"xim\",\"type\":\"ryocfsfksymdd\"},{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"uxh\",\"name\":\"yudxorrqnbp\",\"type\":\"czvyifq\"}]}")
- .toObject(PrivateEndpointConnectionListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionListResult model =
- new PrivateEndpointConnectionListResult()
- .withValue(
- Arrays
- .asList(
- new PrivateEndpointConnectionInner(),
- new PrivateEndpointConnectionInner(),
- new PrivateEndpointConnectionInner(),
- new PrivateEndpointConnectionInner()));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResult.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java
deleted file mode 100644
index df218cb4d4456..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionProperties;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateEndpointConnectionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionProperties model =
- BinaryData
- .fromString(
- "{\"privateEndpoint\":{\"id\":\"gispemvtzfkufubl\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"qeof\",\"actionsRequired\":\"e\"},\"provisioningState\":\"Deleting\"}")
- .toObject(PrivateEndpointConnectionProperties.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("qeof", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("e", model.privateLinkServiceConnectionState().actionsRequired());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionProperties model =
- new PrivateEndpointConnectionProperties()
- .withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED)
- .withDescription("qeof")
- .withActionsRequired("e"));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("qeof", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("e", model.privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java
deleted file mode 100644
index 5697992989324..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class PrivateEndpointConnectionsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .privateEndpointConnections()
- .deleteWithResponse("lfmmdnbbglzpswi", "d", "cwyhzdxssa", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
deleted file mode 100644
index 4558d341901dc..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class PrivateEndpointConnectionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"privateEndpoint\":{\"id\":\"thnzd\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"gnayqigynduh\",\"actionsRequired\":\"hqlkthumaqo\"},\"provisioningState\":\"Creating\"},\"id\":\"cdui\",\"name\":\"r\",\"type\":\"gccymvaolpssl\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PrivateEndpointConnection response =
- manager
- .privateEndpointConnections()
- .getWithResponse("tjrybnwjewgdr", "ervnaenqpehi", "doy", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.APPROVED, response.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("gnayqigynduh", response.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("hqlkthumaqo", response.privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java
deleted file mode 100644
index 9aff5ed5cd0ae..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class PrivateEndpointConnectionsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"sub\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"irx\",\"actionsRequired\":\"ybsrfbjfdtwss\"},\"provisioningState\":\"Deleting\"},\"id\":\"pvjzbe\",\"name\":\"ilzznfqqnvwp\",\"type\":\"qtaruoujmkcjhwq\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.privateEndpointConnections().list("shqjohxcrsbf", "vasrruvwb", com.azure.core.util.Context.NONE);
-
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.PENDING,
- response.iterator().next().privateLinkServiceConnectionState().status());
- Assertions.assertEquals("irx", response.iterator().next().privateLinkServiceConnectionState().description());
- Assertions
- .assertEquals(
- "ybsrfbjfdtwss", response.iterator().next().privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java
deleted file mode 100644
index e3c58a78aa859..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
-
-public final class PrivateEndpointTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpoint model = BinaryData.fromString("{\"id\":\"jbasvmsmjqulngs\"}").toObject(PrivateEndpoint.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpoint model = new PrivateEndpoint();
- model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java
deleted file mode 100644
index d785a22925e72..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"groupId\":\"uo\",\"requiredMembers\":[\"kg\",\"sauuimj\",\"vxieduugidyj\"],\"requiredZoneNames\":[\"byao\"]},\"id\":\"e\",\"name\":\"csonpclhoco\",\"type\":\"slkevle\"}")
- .toObject(PrivateLinkResourceInner.class);
- Assertions.assertEquals("byao", model.requiredZoneNames().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceInner model = new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("byao"));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceInner.class);
- Assertions.assertEquals("byao", model.requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java
deleted file mode 100644
index 1fb137970057b..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResourceListResult;
-import java.util.Arrays;
-
-public final class PrivateLinkResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"groupId\":\"jsllrmv\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"atkpnp\",\"name\":\"lexxbczwtru\",\"type\":\"iqzbq\"},{\"properties\":{\"groupId\":\"ovm\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"cspkwlhzdobpxjmf\",\"name\":\"bvvnchrkcciw\",\"type\":\"zjuqkhrsaj\"}]}")
- .toObject(PrivateLinkResourceListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceListResult model =
- new PrivateLinkResourceListResult()
- .withValue(
- Arrays
- .asList(
- new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList()),
- new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResult.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java
deleted file mode 100644
index 9d8eaf83c242e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkResourcePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceProperties model =
- BinaryData
- .fromString(
- "{\"groupId\":\"zfbuhf\",\"requiredMembers\":[\"axkffei\",\"th\",\"vmezy\"],\"requiredZoneNames\":[\"xmzsbbzogg\",\"grxwbu\",\"vjxxjnsp\",\"dptkoenkouk\"]}")
- .toObject(PrivateLinkResourceProperties.class);
- Assertions.assertEquals("xmzsbbzogg", model.requiredZoneNames().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceProperties model =
- new PrivateLinkResourceProperties()
- .withRequiredZoneNames(Arrays.asList("xmzsbbzogg", "grxwbu", "vjxxjnsp", "dptkoenkouk"));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class);
- Assertions.assertEquals("xmzsbbzogg", model.requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java
deleted file mode 100644
index bd162feb4a6d2..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class PrivateLinkResourcesListByClusterMockTests {
- @Test
- public void testListByCluster() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"groupId\":\"bncblylpstdbhhx\",\"requiredMembers\":[\"dzu\",\"erscdntne\",\"fiwjmygtdssls\",\"tmweriofzpyq\"],\"requiredZoneNames\":[\"wab\",\"ets\",\"hszhedplvwiwu\",\"mwmbes\"]},\"id\":\"nkww\",\"name\":\"pp\",\"type\":\"flcxoga\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.privateLinkResources().listByCluster("bzmnvdfznud", "od", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("wab", response.iterator().next().requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java
deleted file mode 100644
index 87ed5d97b7b19..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkServiceConnectionStateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkServiceConnectionState model =
- BinaryData
- .fromString(
- "{\"status\":\"Pending\",\"description\":\"ybkzgcwr\",\"actionsRequired\":\"lxxwrljdouskc\"}")
- .toObject(PrivateLinkServiceConnectionState.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status());
- Assertions.assertEquals("ybkzgcwr", model.description());
- Assertions.assertEquals("lxxwrljdouskc", model.actionsRequired());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkServiceConnectionState model =
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.PENDING)
- .withDescription("ybkzgcwr")
- .withActionsRequired("lxxwrljdouskc");
- model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status());
- Assertions.assertEquals("ybkzgcwr", model.description());
- Assertions.assertEquals("lxxwrljdouskc", model.actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesCreateMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesCreateMockTests.java
deleted file mode 100644
index b86dcba68f90f..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesCreateMockTests.java
+++ /dev/null
@@ -1,107 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class RedisEnterprisesCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"sku\":{\"name\":\"EnterpriseFlash_F1500\",\"capacity\":946722582},\"zones\":[\"ehhseyvjusrts\",\"hspkdeemao\",\"mx\",\"gkvtmelmqkrhah\"],\"identity\":{\"principalId\":\"50dd1237-7f30-4f28-bca3-7c9de2f1af8d\",\"tenantId\":\"2f6d603e-e2e2-4f45-84e6-bbe28e373dad\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"encryption\":{},\"hostName\":\"mdua\",\"provisioningState\":\"Succeeded\",\"resourceState\":\"Updating\",\"redisVersion\":\"vfadmws\",\"privateEndpointConnections\":[]},\"location\":\"vxpvgomz\",\"tags\":{\"ali\":\"isgwbnbbeldawkz\",\"hashsfwxosow\":\"urqhaka\"},\"id\":\"xcug\",\"name\":\"cjooxdjebwpucwwf\",\"type\":\"ovbvmeueciv\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Cluster response =
- manager
- .redisEnterprises()
- .define("kphywpnvjto")
- .withRegion("kqujidsuyono")
- .withExistingResourceGroup("nxdhbt")
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(963875156))
- .withTags(mapOf("dxyt", "aocqxtccmgy", "txhdzh", "moyrxvwfudwpz", "rxsbkyvp", "rqjbhckfrl"))
- .withZones(Arrays.asList("lfplp"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ONE)
- .withEncryption(new ClusterPropertiesEncryption())
- .create();
-
- Assertions.assertEquals("vxpvgomz", response.location());
- Assertions.assertEquals("isgwbnbbeldawkz", response.tags().get("ali"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F1500, response.sku().name());
- Assertions.assertEquals(946722582, response.sku().capacity());
- Assertions.assertEquals("ehhseyvjusrts", response.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_TWO, response.minimumTlsVersion());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java
deleted file mode 100644
index 6778b7b1679b0..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class RedisEnterprisesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.redisEnterprises().delete("ijhtxf", "gx", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesGetByResourceGroupWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesGetByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index e8c177eca1dad..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesGetByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class RedisEnterprisesGetByResourceGroupWithResponseMockTests {
- @Test
- public void testGetByResourceGroupWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"sku\":{\"name\":\"Enterprise_E10\",\"capacity\":68854326},\"zones\":[\"qkkrb\",\"pukgriwflzlfb\"],\"identity\":{\"principalId\":\"55e58f56-9e33-48ba-885c-97ad97c5f51b\",\"tenantId\":\"36313e29-f41c-4156-b818-bc7c5007c8de\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"encryption\":{},\"hostName\":\"ahmgkbrp\",\"provisioningState\":\"Canceled\",\"resourceState\":\"Enabling\",\"redisVersion\":\"nuqqkpikadrgvt\",\"privateEndpointConnections\":[]},\"location\":\"buynhijggm\",\"tags\":{\"zzmhjrunmpxttd\":\"siarbutrcvpn\",\"nbtkcxywnytnr\":\"hrbnlankxmyskpbh\",\"qidybyx\":\"yn\"},\"id\":\"zfcl\",\"name\":\"aaxdbabphlwrq\",\"type\":\"fkts\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Cluster response =
- manager
- .redisEnterprises()
- .getByResourceGroupWithResponse("fsm", "nehmpvecx", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("buynhijggm", response.location());
- Assertions.assertEquals("siarbutrcvpn", response.tags().get("zzmhjrunmpxttd"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E10, response.sku().name());
- Assertions.assertEquals(68854326, response.sku().capacity());
- Assertions.assertEquals("qkkrb", response.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_TWO, response.minimumTlsVersion());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListByResourceGroupMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListByResourceGroupMockTests.java
deleted file mode 100644
index db5fe315e648c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListByResourceGroupMockTests.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class RedisEnterprisesListByResourceGroupMockTests {
- @Test
- public void testListByResourceGroup() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"sku\":{\"name\":\"EnterpriseFlash_F700\",\"capacity\":1572561560},\"zones\":[\"t\"],\"identity\":{\"principalId\":\"a8db838c-5ddd-40c4-beff-8564c1e49c3f\",\"tenantId\":\"5b6879d8-e7f2-4945-b9c6-8fc033e50d5c\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.1\",\"encryption\":{},\"hostName\":\"zywbiex\",\"provisioningState\":\"Failed\",\"resourceState\":\"UpdateFailed\",\"redisVersion\":\"axibxujw\",\"privateEndpointConnections\":[]},\"location\":\"almuzyoxaepdkzja\",\"tags\":{\"zt\":\"xrhdwbavxbniwdjs\"},\"id\":\"dbpgnxytxhp\",\"name\":\"xbzpfzab\",\"type\":\"lcuhxwtctyqiklb\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.redisEnterprises().listByResourceGroup("hsucoc", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("almuzyoxaepdkzja", response.iterator().next().location());
- Assertions.assertEquals("xrhdwbavxbniwdjs", response.iterator().next().tags().get("zt"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F700, response.iterator().next().sku().name());
- Assertions.assertEquals(1572561560, response.iterator().next().sku().capacity());
- Assertions.assertEquals("t", response.iterator().next().zones().get(0));
- Assertions
- .assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ONE, response.iterator().next().minimumTlsVersion());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListMockTests.java
deleted file mode 100644
index 4f0cb9d9b1bb4..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class RedisEnterprisesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"sku\":{\"name\":\"Enterprise_E100\",\"capacity\":946920071},\"zones\":[\"zbhvgyuguosv\",\"kfssxqukkf\",\"l\"],\"identity\":{\"principalId\":\"d05e3a18-1e79-4f8c-a32e-611e8bf0eff7\",\"tenantId\":\"1a47553c-b560-458e-ae9d-b13b7525c4cd\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"encryption\":{},\"hostName\":\"lpvlopw\",\"provisioningState\":\"Canceled\",\"resourceState\":\"CreateFailed\",\"redisVersion\":\"pkdwzbai\",\"privateEndpointConnections\":[]},\"location\":\"a\",\"tags\":{\"mtxpsiebtfh\":\"yqupedeojnabckh\",\"htldwk\":\"pesapskrdqmhjj\",\"otogtwrupqs\":\"zxuutkncwscwsvl\",\"cykvceo\":\"vnm\"},\"id\":\"eil\",\"name\":\"vnotyfjfcnj\",\"type\":\"k\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.redisEnterprises().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("a", response.iterator().next().location());
- Assertions.assertEquals("yqupedeojnabckh", response.iterator().next().tags().get("mtxpsiebtfh"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, response.iterator().next().sku().name());
- Assertions.assertEquals(946920071, response.iterator().next().sku().capacity());
- Assertions.assertEquals("zbhvgyuguosv", response.iterator().next().zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type());
- Assertions.assertEquals(TlsVersion.ONE_TWO, response.iterator().next().minimumTlsVersion());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailInnerTests.java
deleted file mode 100644
index 5c0b74e0470f8..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailInnerTests.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.azure.resourcemanager.redisenterprise.models.Capability;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class RegionSkuDetailInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RegionSkuDetailInner model =
- BinaryData
- .fromString(
- "{\"resourceType\":\"jdeyeamdpha\",\"locationInfo\":{\"location\":\"pbuxwgipwhon\",\"capabilities\":[{\"name\":\"shwankixzbinje\",\"value\":true},{\"name\":\"mryw\",\"value\":true}]},\"skuDetails\":{\"name\":\"Enterprise_E10\"}}")
- .toObject(RegionSkuDetailInner.class);
- Assertions.assertEquals("jdeyeamdpha", model.resourceType());
- Assertions.assertEquals("pbuxwgipwhon", model.locationInfo().location());
- Assertions.assertEquals("shwankixzbinje", model.locationInfo().capabilities().get(0).name());
- Assertions.assertEquals(true, model.locationInfo().capabilities().get(0).value());
- Assertions.assertEquals(SkuName.ENTERPRISE_E10, model.skuDetails().name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RegionSkuDetailInner model =
- new RegionSkuDetailInner()
- .withResourceType("jdeyeamdpha")
- .withLocationInfo(
- new LocationInfo()
- .withLocation("pbuxwgipwhon")
- .withCapabilities(
- Arrays
- .asList(
- new Capability().withName("shwankixzbinje").withValue(true),
- new Capability().withName("mryw").withValue(true))))
- .withSkuDetails(new SkuDetail().withName(SkuName.ENTERPRISE_E10));
- model = BinaryData.fromObject(model).toObject(RegionSkuDetailInner.class);
- Assertions.assertEquals("jdeyeamdpha", model.resourceType());
- Assertions.assertEquals("pbuxwgipwhon", model.locationInfo().location());
- Assertions.assertEquals("shwankixzbinje", model.locationInfo().capabilities().get(0).name());
- Assertions.assertEquals(true, model.locationInfo().capabilities().get(0).value());
- Assertions.assertEquals(SkuName.ENTERPRISE_E10, model.skuDetails().name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailsTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailsTests.java
deleted file mode 100644
index b9d124b482176..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailsTests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import com.azure.resourcemanager.redisenterprise.models.RegionSkuDetails;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class RegionSkuDetailsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RegionSkuDetails model =
- BinaryData
- .fromString(
- "{\"value\":[{\"resourceType\":\"dnfyhxdeoejzicwi\",\"locationInfo\":{\"location\":\"ttgzfbis\",\"capabilities\":[]},\"skuDetails\":{\"name\":\"Enterprise_E20\"}}]}")
- .toObject(RegionSkuDetails.class);
- Assertions.assertEquals("dnfyhxdeoejzicwi", model.value().get(0).resourceType());
- Assertions.assertEquals("ttgzfbis", model.value().get(0).locationInfo().location());
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.value().get(0).skuDetails().name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RegionSkuDetails model =
- new RegionSkuDetails()
- .withValue(
- Arrays
- .asList(
- new RegionSkuDetailInner()
- .withResourceType("dnfyhxdeoejzicwi")
- .withLocationInfo(
- new LocationInfo().withLocation("ttgzfbis").withCapabilities(Arrays.asList()))
- .withSkuDetails(new SkuDetail().withName(SkuName.ENTERPRISE_E20))));
- model = BinaryData.fromObject(model).toObject(RegionSkuDetails.class);
- Assertions.assertEquals("dnfyhxdeoejzicwi", model.value().get(0).resourceType());
- Assertions.assertEquals("ttgzfbis", model.value().get(0).locationInfo().location());
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.value().get(0).skuDetails().name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuDetailTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuDetailTests.java
deleted file mode 100644
index b34533b1da795..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuDetailTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import org.junit.jupiter.api.Assertions;
-
-public final class SkuDetailTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SkuDetail model = BinaryData.fromString("{\"name\":\"Enterprise_E100\"}").toObject(SkuDetail.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SkuDetail model = new SkuDetail().withName(SkuName.ENTERPRISE_E100);
- model = BinaryData.fromObject(model).toObject(SkuDetail.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java
deleted file mode 100644
index 445d576836c0e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import org.junit.jupiter.api.Assertions;
-
-public final class SkuTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Sku model = BinaryData.fromString("{\"name\":\"Enterprise_E20\",\"capacity\":1041872032}").toObject(Sku.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.name());
- Assertions.assertEquals(1041872032, model.capacity());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Sku model = new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(1041872032);
- model = BinaryData.fromObject(model).toObject(Sku.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.name());
- Assertions.assertEquals(1041872032, model.capacity());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkusListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkusListMockTests.java
deleted file mode 100644
index 12ba74366352e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkusListMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.RegionSkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SkusListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"resourceType\":\"kqze\",\"locationInfo\":{\"location\":\"dltfz\",\"capabilities\":[]},\"skuDetails\":{\"name\":\"EnterpriseFlash_F1500\"}}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.skus().list("konzmnsik", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("kqze", response.iterator().next().resourceType());
- Assertions.assertEquals("dltfz", response.iterator().next().locationInfo().location());
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F1500, response.iterator().next().skuDetails().name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java
deleted file mode 100644
index 083300105568e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-
-public final class UserAssignedIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UserAssignedIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"5c1631dd-070c-4338-9225-6fff8f2c7868\",\"clientId\":\"a805f8c8-5f6c-431e-b4b3-0a93d1604117\"}")
- .toObject(UserAssignedIdentity.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UserAssignedIdentity model = new UserAssignedIdentity();
- model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class);
- }
-}