diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md
index a3984cebd2f31..0f5740b9491c1 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2023-09-27)
+
+- Azure Resource Manager SourceControlConfiguration client library for Java. This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2023-05. 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/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md
index 9f958a766043a..0b760d34c50c4 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-kubernetesconfiguration
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml
index 00b4896b4e48f..0e2eb62ee5882 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java
index 19f606aee27ac..8174631af05b8 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java
@@ -225,7 +225,7 @@ public SourceControlConfigurationManager authenticate(TokenCredential credential
.append("-")
.append("com.azure.resourcemanager.kubernetesconfiguration")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ComplianceStatusTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ComplianceStatusTests.java
deleted file mode 100644
index dd8d256bf68ce..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ComplianceStatusTests.java
+++ /dev/null
@@ -1,38 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ComplianceStatus;
-import com.azure.resourcemanager.kubernetesconfiguration.models.MessageLevelType;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class ComplianceStatusTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceStatus model =
- BinaryData
- .fromString(
- "{\"complianceState\":\"Failed\",\"lastConfigApplied\":\"2021-03-06T10:40:17Z\",\"message\":\"kfrlhrxsbky\",\"messageLevel\":\"Error\"}")
- .toObject(ComplianceStatus.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T10:40:17Z"), model.lastConfigApplied());
- Assertions.assertEquals("kfrlhrxsbky", model.message());
- Assertions.assertEquals(MessageLevelType.ERROR, model.messageLevel());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceStatus model =
- new ComplianceStatus()
- .withLastConfigApplied(OffsetDateTime.parse("2021-03-06T10:40:17Z"))
- .withMessage("kfrlhrxsbky")
- .withMessageLevel(MessageLevelType.ERROR);
- model = BinaryData.fromObject(model).toObject(ComplianceStatus.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T10:40:17Z"), model.lastConfigApplied());
- Assertions.assertEquals("kfrlhrxsbky", model.message());
- Assertions.assertEquals(MessageLevelType.ERROR, model.messageLevel());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionPropertiesAksAssignedIdentityTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionPropertiesAksAssignedIdentityTests.java
deleted file mode 100644
index 8e60ec57f3283..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionPropertiesAksAssignedIdentityTests.java
+++ /dev/null
@@ -1,30 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.AksIdentityType;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionPropertiesAksAssignedIdentity;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExtensionPropertiesAksAssignedIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExtensionPropertiesAksAssignedIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"audccsnhs\",\"tenantId\":\"nyejhkryhtnap\",\"type\":\"SystemAssigned\"}")
- .toObject(ExtensionPropertiesAksAssignedIdentity.class);
- Assertions.assertEquals(AksIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExtensionPropertiesAksAssignedIdentity model =
- new ExtensionPropertiesAksAssignedIdentity().withType(AksIdentityType.SYSTEM_ASSIGNED);
- model = BinaryData.fromObject(model).toObject(ExtensionPropertiesAksAssignedIdentity.class);
- Assertions.assertEquals(AksIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsDeleteMockTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsDeleteMockTests.java
deleted file mode 100644
index 08bf9fda45dfa..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsDeleteMockTests.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.kubernetesconfiguration.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.kubernetesconfiguration.SourceControlConfigurationManager;
-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 ExtensionsDeleteMockTests {
- @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);
- }));
-
- SourceControlConfigurationManager manager =
- SourceControlConfigurationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .extensions()
- .delete("tppjflcx", "gaokonzmnsikv", "kqze", "qkdltfz", "mhhv", true, com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigOperationStatusGetWithResponseMockTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigOperationStatusGetWithResponseMockTests.java
deleted file mode 100644
index e25e698eb2942..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigOperationStatusGetWithResponseMockTests.java
+++ /dev/null
@@ -1,80 +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.kubernetesconfiguration.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.kubernetesconfiguration.SourceControlConfigurationManager;
-import com.azure.resourcemanager.kubernetesconfiguration.models.OperationStatusResult;
-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 FluxConfigOperationStatusGetWithResponseMockTests {
- @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\":\"mz\",\"name\":\"wabm\",\"status\":\"oefki\",\"properties\":{\"gkfbtndoaong\":\"tpuqujmq\",\"tcje\":\"jcntuj\",\"zfoqouicybxar\":\"ftwwaezkojvdc\"}}";
-
- 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);
- }));
-
- SourceControlConfigurationManager manager =
- SourceControlConfigurationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- OperationStatusResult response =
- manager
- .fluxConfigOperationStatus()
- .getWithResponse(
- "vkg",
- "u",
- "gdknnqv",
- "aznqntoru",
- "sgsahmkycgr",
- "uwjuetaeburuvdmo",
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("mz", response.id());
- Assertions.assertEquals("wabm", response.name());
- Assertions.assertEquals("oefki", response.status());
- Assertions.assertEquals("tpuqujmq", response.properties().get("gkfbtndoaong"));
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsDeleteMockTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsDeleteMockTests.java
deleted file mode 100644
index 0150da6ccd302..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsDeleteMockTests.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.kubernetesconfiguration.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.kubernetesconfiguration.SourceControlConfigurationManager;
-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 FluxConfigurationsDeleteMockTests {
- @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);
- }));
-
- SourceControlConfigurationManager manager =
- SourceControlConfigurationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .fluxConfigurations()
- .delete(
- "ooaojkniodkooebw",
- "ujhemmsbvdkcrodt",
- "infwjlfltkacjve",
- "kdlfoa",
- "ggkfpagaowpul",
- true,
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/GitRepositoryDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/GitRepositoryDefinitionTests.java
deleted file mode 100644
index f687fc16a38b9..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/GitRepositoryDefinitionTests.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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.RepositoryRefDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class GitRepositoryDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GitRepositoryDefinition model =
- BinaryData
- .fromString(
- "{\"url\":\"cpc\",\"timeoutInSeconds\":207808974598598894,\"syncIntervalInSeconds\":3513543759245297355,\"repositoryRef\":{\"branch\":\"ljjgpbtoqcjmkl\",\"tag\":\"vbqid\",\"semver\":\"ajzyul\",\"commit\":\"u\"},\"sshKnownHosts\":\"krlkhbzhfepg\",\"httpsUser\":\"qex\",\"httpsCACert\":\"ocxscpaierhhbcs\",\"localAuthRef\":\"ummajtjaod\"}")
- .toObject(GitRepositoryDefinition.class);
- Assertions.assertEquals("cpc", model.url());
- Assertions.assertEquals(207808974598598894L, model.timeoutInSeconds());
- Assertions.assertEquals(3513543759245297355L, model.syncIntervalInSeconds());
- Assertions.assertEquals("ljjgpbtoqcjmkl", model.repositoryRef().branch());
- Assertions.assertEquals("vbqid", model.repositoryRef().tag());
- Assertions.assertEquals("ajzyul", model.repositoryRef().semver());
- Assertions.assertEquals("u", model.repositoryRef().commit());
- Assertions.assertEquals("krlkhbzhfepg", model.sshKnownHosts());
- Assertions.assertEquals("qex", model.httpsUser());
- Assertions.assertEquals("ocxscpaierhhbcs", model.httpsCACert());
- Assertions.assertEquals("ummajtjaod", model.localAuthRef());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GitRepositoryDefinition model =
- new GitRepositoryDefinition()
- .withUrl("cpc")
- .withTimeoutInSeconds(207808974598598894L)
- .withSyncIntervalInSeconds(3513543759245297355L)
- .withRepositoryRef(
- new RepositoryRefDefinition()
- .withBranch("ljjgpbtoqcjmkl")
- .withTag("vbqid")
- .withSemver("ajzyul")
- .withCommit("u"))
- .withSshKnownHosts("krlkhbzhfepg")
- .withHttpsUser("qex")
- .withHttpsCACert("ocxscpaierhhbcs")
- .withLocalAuthRef("ummajtjaod");
- model = BinaryData.fromObject(model).toObject(GitRepositoryDefinition.class);
- Assertions.assertEquals("cpc", model.url());
- Assertions.assertEquals(207808974598598894L, model.timeoutInSeconds());
- Assertions.assertEquals(3513543759245297355L, model.syncIntervalInSeconds());
- Assertions.assertEquals("ljjgpbtoqcjmkl", model.repositoryRef().branch());
- Assertions.assertEquals("vbqid", model.repositoryRef().tag());
- Assertions.assertEquals("ajzyul", model.repositoryRef().semver());
- Assertions.assertEquals("u", model.repositoryRef().commit());
- Assertions.assertEquals("krlkhbzhfepg", model.sshKnownHosts());
- Assertions.assertEquals("qex", model.httpsUser());
- Assertions.assertEquals("ocxscpaierhhbcs", model.httpsCACert());
- Assertions.assertEquals("ummajtjaod", model.localAuthRef());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/GitRepositoryPatchDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/GitRepositoryPatchDefinitionTests.java
deleted file mode 100644
index 25665e1f9fd38..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/GitRepositoryPatchDefinitionTests.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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryPatchDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.RepositoryRefDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class GitRepositoryPatchDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GitRepositoryPatchDefinition model =
- BinaryData
- .fromString(
- "{\"url\":\"g\",\"timeoutInSeconds\":4370992711496638122,\"syncIntervalInSeconds\":1393626472136421682,\"repositoryRef\":{\"branch\":\"pwhonowkg\",\"tag\":\"wankixzbi\",\"semver\":\"eputtmrywnuzoqf\",\"commit\":\"yqzrnkcqvyxlw\"},\"sshKnownHosts\":\"lsicohoqqnwv\",\"httpsUser\":\"yav\",\"httpsCACert\":\"heun\",\"localAuthRef\":\"qhgyxzkonocukok\"}")
- .toObject(GitRepositoryPatchDefinition.class);
- Assertions.assertEquals("g", model.url());
- Assertions.assertEquals(4370992711496638122L, model.timeoutInSeconds());
- Assertions.assertEquals(1393626472136421682L, model.syncIntervalInSeconds());
- Assertions.assertEquals("pwhonowkg", model.repositoryRef().branch());
- Assertions.assertEquals("wankixzbi", model.repositoryRef().tag());
- Assertions.assertEquals("eputtmrywnuzoqf", model.repositoryRef().semver());
- Assertions.assertEquals("yqzrnkcqvyxlw", model.repositoryRef().commit());
- Assertions.assertEquals("lsicohoqqnwv", model.sshKnownHosts());
- Assertions.assertEquals("yav", model.httpsUser());
- Assertions.assertEquals("heun", model.httpsCACert());
- Assertions.assertEquals("qhgyxzkonocukok", model.localAuthRef());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GitRepositoryPatchDefinition model =
- new GitRepositoryPatchDefinition()
- .withUrl("g")
- .withTimeoutInSeconds(4370992711496638122L)
- .withSyncIntervalInSeconds(1393626472136421682L)
- .withRepositoryRef(
- new RepositoryRefDefinition()
- .withBranch("pwhonowkg")
- .withTag("wankixzbi")
- .withSemver("eputtmrywnuzoqf")
- .withCommit("yqzrnkcqvyxlw"))
- .withSshKnownHosts("lsicohoqqnwv")
- .withHttpsUser("yav")
- .withHttpsCACert("heun")
- .withLocalAuthRef("qhgyxzkonocukok");
- model = BinaryData.fromObject(model).toObject(GitRepositoryPatchDefinition.class);
- Assertions.assertEquals("g", model.url());
- Assertions.assertEquals(4370992711496638122L, model.timeoutInSeconds());
- Assertions.assertEquals(1393626472136421682L, model.syncIntervalInSeconds());
- Assertions.assertEquals("pwhonowkg", model.repositoryRef().branch());
- Assertions.assertEquals("wankixzbi", model.repositoryRef().tag());
- Assertions.assertEquals("eputtmrywnuzoqf", model.repositoryRef().semver());
- Assertions.assertEquals("yqzrnkcqvyxlw", model.repositoryRef().commit());
- Assertions.assertEquals("lsicohoqqnwv", model.sshKnownHosts());
- Assertions.assertEquals("yav", model.httpsUser());
- Assertions.assertEquals("heun", model.httpsCACert());
- Assertions.assertEquals("qhgyxzkonocukok", model.localAuthRef());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/HelmOperatorPropertiesTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/HelmOperatorPropertiesTests.java
deleted file mode 100644
index 154c4522e4f67..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/HelmOperatorPropertiesTests.java
+++ /dev/null
@@ -1,30 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.HelmOperatorProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class HelmOperatorPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HelmOperatorProperties model =
- BinaryData
- .fromString("{\"chartVersion\":\"oyrxvwfudwpzntxh\",\"chartValues\":\"hl\"}")
- .toObject(HelmOperatorProperties.class);
- Assertions.assertEquals("oyrxvwfudwpzntxh", model.chartVersion());
- Assertions.assertEquals("hl", model.chartValues());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HelmOperatorProperties model =
- new HelmOperatorProperties().withChartVersion("oyrxvwfudwpzntxh").withChartValues("hl");
- model = BinaryData.fromObject(model).toObject(HelmOperatorProperties.class);
- Assertions.assertEquals("oyrxvwfudwpzntxh", model.chartVersion());
- Assertions.assertEquals("hl", model.chartValues());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/HelmReleasePropertiesDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/HelmReleasePropertiesDefinitionTests.java
deleted file mode 100644
index 4de15ddf542bd..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/HelmReleasePropertiesDefinitionTests.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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.HelmReleasePropertiesDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectReferenceDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class HelmReleasePropertiesDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HelmReleasePropertiesDefinition model =
- BinaryData
- .fromString(
- "{\"lastRevisionApplied\":247152507284848729,\"helmChartRef\":{\"name\":\"dystkiiuxhqyud\",\"namespace\":\"rrqnbpoczvyifqrv\"},\"failureCount\":4225896230813201107,\"installFailureCount\":3055369044346357730,\"upgradeFailureCount\":4089685326057058408}")
- .toObject(HelmReleasePropertiesDefinition.class);
- Assertions.assertEquals(247152507284848729L, model.lastRevisionApplied());
- Assertions.assertEquals("dystkiiuxhqyud", model.helmChartRef().name());
- Assertions.assertEquals("rrqnbpoczvyifqrv", model.helmChartRef().namespace());
- Assertions.assertEquals(4225896230813201107L, model.failureCount());
- Assertions.assertEquals(3055369044346357730L, model.installFailureCount());
- Assertions.assertEquals(4089685326057058408L, model.upgradeFailureCount());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HelmReleasePropertiesDefinition model =
- new HelmReleasePropertiesDefinition()
- .withLastRevisionApplied(247152507284848729L)
- .withHelmChartRef(
- new ObjectReferenceDefinition().withName("dystkiiuxhqyud").withNamespace("rrqnbpoczvyifqrv"))
- .withFailureCount(4225896230813201107L)
- .withInstallFailureCount(3055369044346357730L)
- .withUpgradeFailureCount(4089685326057058408L);
- model = BinaryData.fromObject(model).toObject(HelmReleasePropertiesDefinition.class);
- Assertions.assertEquals(247152507284848729L, model.lastRevisionApplied());
- Assertions.assertEquals("dystkiiuxhqyud", model.helmChartRef().name());
- Assertions.assertEquals("rrqnbpoczvyifqrv", model.helmChartRef().namespace());
- Assertions.assertEquals(4225896230813201107L, model.failureCount());
- Assertions.assertEquals(3055369044346357730L, model.installFailureCount());
- Assertions.assertEquals(4089685326057058408L, model.upgradeFailureCount());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/IdentityTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/IdentityTests.java
deleted file mode 100644
index 220404fcc6f7b..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/IdentityTests.java
+++ /dev/null
@@ -1,28 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.Identity;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ResourceIdentityType;
-import org.junit.jupiter.api.Assertions;
-
-public final class IdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Identity model =
- BinaryData
- .fromString("{\"principalId\":\"okjye\",\"tenantId\":\"kvnipjoxz\",\"type\":\"SystemAssigned\"}")
- .toObject(Identity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Identity model = new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED);
- model = BinaryData.fromObject(model).toObject(Identity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/KustomizationDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/KustomizationDefinitionTests.java
deleted file mode 100644
index ebc30145a1c2d..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/KustomizationDefinitionTests.java
+++ /dev/null
@@ -1,86 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.PostBuildDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.SubstituteFromDefinition;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class KustomizationDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- KustomizationDefinition model =
- BinaryData
- .fromString(
- "{\"name\":\"qkwpyeicxmqc\",\"path\":\"q\",\"dependsOn\":[\"hix\",\"igdtopbob\",\"og\",\"m\"],\"timeoutInSeconds\":495685925173240949,\"syncIntervalInSeconds\":1066773928950935617,\"retryIntervalInSeconds\":5747639335856339043,\"prune\":true,\"force\":true,\"wait\":false,\"postBuild\":{\"substitute\":{\"iotkftutqxl\":\"f\",\"mi\":\"gxlefgugnxkrxd\"},\"substituteFrom\":[{\"kind\":\"zrvqdr\",\"name\":\"hjybigehoqfbo\",\"optional\":true}]}}")
- .toObject(KustomizationDefinition.class);
- Assertions.assertEquals("q", model.path());
- Assertions.assertEquals("hix", model.dependsOn().get(0));
- Assertions.assertEquals(495685925173240949L, model.timeoutInSeconds());
- Assertions.assertEquals(1066773928950935617L, model.syncIntervalInSeconds());
- Assertions.assertEquals(5747639335856339043L, model.retryIntervalInSeconds());
- Assertions.assertEquals(true, model.prune());
- Assertions.assertEquals(true, model.force());
- Assertions.assertEquals(false, model.enableWait());
- Assertions.assertEquals("f", model.postBuild().substitute().get("iotkftutqxl"));
- Assertions.assertEquals("zrvqdr", model.postBuild().substituteFrom().get(0).kind());
- Assertions.assertEquals("hjybigehoqfbo", model.postBuild().substituteFrom().get(0).name());
- Assertions.assertEquals(true, model.postBuild().substituteFrom().get(0).optional());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- KustomizationDefinition model =
- new KustomizationDefinition()
- .withPath("q")
- .withDependsOn(Arrays.asList("hix", "igdtopbob", "og", "m"))
- .withTimeoutInSeconds(495685925173240949L)
- .withSyncIntervalInSeconds(1066773928950935617L)
- .withRetryIntervalInSeconds(5747639335856339043L)
- .withPrune(true)
- .withForce(true)
- .withEnableWait(false)
- .withPostBuild(
- new PostBuildDefinition()
- .withSubstitute(mapOf("iotkftutqxl", "f", "mi", "gxlefgugnxkrxd"))
- .withSubstituteFrom(
- Arrays
- .asList(
- new SubstituteFromDefinition()
- .withKind("zrvqdr")
- .withName("hjybigehoqfbo")
- .withOptional(true))));
- model = BinaryData.fromObject(model).toObject(KustomizationDefinition.class);
- Assertions.assertEquals("q", model.path());
- Assertions.assertEquals("hix", model.dependsOn().get(0));
- Assertions.assertEquals(495685925173240949L, model.timeoutInSeconds());
- Assertions.assertEquals(1066773928950935617L, model.syncIntervalInSeconds());
- Assertions.assertEquals(5747639335856339043L, model.retryIntervalInSeconds());
- Assertions.assertEquals(true, model.prune());
- Assertions.assertEquals(true, model.force());
- Assertions.assertEquals(false, model.enableWait());
- Assertions.assertEquals("f", model.postBuild().substitute().get("iotkftutqxl"));
- Assertions.assertEquals("zrvqdr", model.postBuild().substituteFrom().get(0).kind());
- Assertions.assertEquals("hjybigehoqfbo", model.postBuild().substituteFrom().get(0).name());
- Assertions.assertEquals(true, model.postBuild().substituteFrom().get(0).optional());
- }
-
- // Use "Map.of" if available
- @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/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/KustomizationPatchDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/KustomizationPatchDefinitionTests.java
deleted file mode 100644
index 8442358963b8f..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/KustomizationPatchDefinitionTests.java
+++ /dev/null
@@ -1,103 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationPatchDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.PostBuildDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.SubstituteFromDefinition;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class KustomizationPatchDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- KustomizationPatchDefinition model =
- BinaryData
- .fromString(
- "{\"path\":\"ncghkje\",\"dependsOn\":[\"hbijhtxfvgxb\",\"smx\",\"eh\"],\"timeoutInSeconds\":5279138530813051963,\"syncIntervalInSeconds\":6726437827425904455,\"retryIntervalInSeconds\":8488647462806528566,\"prune\":false,\"force\":false,\"wait\":true,\"postBuild\":{\"substitute\":{\"flz\":\"ukgri\",\"qzahmgkbrp\":\"fbxzpuzycisp\",\"hibnuqqkpika\":\"y\",\"buynhijggm\":\"rgvtqag\"},\"substituteFrom\":[{\"kind\":\"iarbutrcvpna\",\"name\":\"mhjrunmpxttdbhr\",\"optional\":false},{\"kind\":\"nkxmyskpbhenbtk\",\"name\":\"ywn\",\"optional\":false},{\"kind\":\"synlqidybyxczfc\",\"name\":\"aaxdbabphlwrq\",\"optional\":true}]}}")
- .toObject(KustomizationPatchDefinition.class);
- Assertions.assertEquals("ncghkje", model.path());
- Assertions.assertEquals("hbijhtxfvgxb", model.dependsOn().get(0));
- Assertions.assertEquals(5279138530813051963L, model.timeoutInSeconds());
- Assertions.assertEquals(6726437827425904455L, model.syncIntervalInSeconds());
- Assertions.assertEquals(8488647462806528566L, model.retryIntervalInSeconds());
- Assertions.assertEquals(false, model.prune());
- Assertions.assertEquals(false, model.force());
- Assertions.assertEquals(true, model.enableWait());
- Assertions.assertEquals("ukgri", model.postBuild().substitute().get("flz"));
- Assertions.assertEquals("iarbutrcvpna", model.postBuild().substituteFrom().get(0).kind());
- Assertions.assertEquals("mhjrunmpxttdbhr", model.postBuild().substituteFrom().get(0).name());
- Assertions.assertEquals(false, model.postBuild().substituteFrom().get(0).optional());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- KustomizationPatchDefinition model =
- new KustomizationPatchDefinition()
- .withPath("ncghkje")
- .withDependsOn(Arrays.asList("hbijhtxfvgxb", "smx", "eh"))
- .withTimeoutInSeconds(5279138530813051963L)
- .withSyncIntervalInSeconds(6726437827425904455L)
- .withRetryIntervalInSeconds(8488647462806528566L)
- .withPrune(false)
- .withForce(false)
- .withEnableWait(true)
- .withPostBuild(
- new PostBuildDefinition()
- .withSubstitute(
- mapOf(
- "flz",
- "ukgri",
- "qzahmgkbrp",
- "fbxzpuzycisp",
- "hibnuqqkpika",
- "y",
- "buynhijggm",
- "rgvtqag"))
- .withSubstituteFrom(
- Arrays
- .asList(
- new SubstituteFromDefinition()
- .withKind("iarbutrcvpna")
- .withName("mhjrunmpxttdbhr")
- .withOptional(false),
- new SubstituteFromDefinition()
- .withKind("nkxmyskpbhenbtk")
- .withName("ywn")
- .withOptional(false),
- new SubstituteFromDefinition()
- .withKind("synlqidybyxczfc")
- .withName("aaxdbabphlwrq")
- .withOptional(true))));
- model = BinaryData.fromObject(model).toObject(KustomizationPatchDefinition.class);
- Assertions.assertEquals("ncghkje", model.path());
- Assertions.assertEquals("hbijhtxfvgxb", model.dependsOn().get(0));
- Assertions.assertEquals(5279138530813051963L, model.timeoutInSeconds());
- Assertions.assertEquals(6726437827425904455L, model.syncIntervalInSeconds());
- Assertions.assertEquals(8488647462806528566L, model.retryIntervalInSeconds());
- Assertions.assertEquals(false, model.prune());
- Assertions.assertEquals(false, model.force());
- Assertions.assertEquals(true, model.enableWait());
- Assertions.assertEquals("ukgri", model.postBuild().substitute().get("flz"));
- Assertions.assertEquals("iarbutrcvpna", model.postBuild().substituteFrom().get(0).kind());
- Assertions.assertEquals("mhjrunmpxttdbhr", model.postBuild().substituteFrom().get(0).name());
- Assertions.assertEquals(false, model.postBuild().substituteFrom().get(0).optional());
- }
-
- // Use "Map.of" if available
- @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/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ManagedIdentityDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ManagedIdentityDefinitionTests.java
deleted file mode 100644
index 450184b40461d..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ManagedIdentityDefinitionTests.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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ManagedIdentityDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class ManagedIdentityDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ManagedIdentityDefinition model =
- BinaryData.fromString("{\"clientId\":\"t\"}").toObject(ManagedIdentityDefinition.class);
- Assertions.assertEquals("t", model.clientId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ManagedIdentityDefinition model = new ManagedIdentityDefinition().withClientId("t");
- model = BinaryData.fromObject(model).toObject(ManagedIdentityDefinition.class);
- Assertions.assertEquals("t", model.clientId());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ManagedIdentityPatchDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ManagedIdentityPatchDefinitionTests.java
deleted file mode 100644
index 38022fa965b69..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ManagedIdentityPatchDefinitionTests.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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ManagedIdentityPatchDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class ManagedIdentityPatchDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ManagedIdentityPatchDefinition model =
- BinaryData.fromString("{\"clientId\":\"ljyoxgvcltb\"}").toObject(ManagedIdentityPatchDefinition.class);
- Assertions.assertEquals("ljyoxgvcltb", model.clientId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ManagedIdentityPatchDefinition model = new ManagedIdentityPatchDefinition().withClientId("ljyoxgvcltb");
- model = BinaryData.fromObject(model).toObject(ManagedIdentityPatchDefinition.class);
- Assertions.assertEquals("ljyoxgvcltb", model.clientId());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectReferenceDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectReferenceDefinitionTests.java
deleted file mode 100644
index 0a3f7c0cb7949..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectReferenceDefinitionTests.java
+++ /dev/null
@@ -1,30 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectReferenceDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class ObjectReferenceDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ObjectReferenceDefinition model =
- BinaryData
- .fromString("{\"name\":\"hltrpmopjmcmatuo\",\"namespace\":\"hfuiuaodsfc\"}")
- .toObject(ObjectReferenceDefinition.class);
- Assertions.assertEquals("hltrpmopjmcmatuo", model.name());
- Assertions.assertEquals("hfuiuaodsfc", model.namespace());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ObjectReferenceDefinition model =
- new ObjectReferenceDefinition().withName("hltrpmopjmcmatuo").withNamespace("hfuiuaodsfc");
- model = BinaryData.fromObject(model).toObject(ObjectReferenceDefinition.class);
- Assertions.assertEquals("hltrpmopjmcmatuo", model.name());
- Assertions.assertEquals("hfuiuaodsfc", model.namespace());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectStatusConditionDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectStatusConditionDefinitionTests.java
deleted file mode 100644
index 82affb0de9d6b..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectStatusConditionDefinitionTests.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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectStatusConditionDefinition;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class ObjectStatusConditionDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ObjectStatusConditionDefinition model =
- BinaryData
- .fromString(
- "{\"lastTransitionTime\":\"2021-06-22T02:08:06Z\",\"message\":\"odpuozmyzydag\",\"reason\":\"axbezyiuo\",\"status\":\"twhrdxwzywqsm\",\"type\":\"ureximoryocfs\"}")
- .toObject(ObjectStatusConditionDefinition.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T02:08:06Z"), model.lastTransitionTime());
- Assertions.assertEquals("odpuozmyzydag", model.message());
- Assertions.assertEquals("axbezyiuo", model.reason());
- Assertions.assertEquals("twhrdxwzywqsm", model.status());
- Assertions.assertEquals("ureximoryocfs", model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ObjectStatusConditionDefinition model =
- new ObjectStatusConditionDefinition()
- .withLastTransitionTime(OffsetDateTime.parse("2021-06-22T02:08:06Z"))
- .withMessage("odpuozmyzydag")
- .withReason("axbezyiuo")
- .withStatus("twhrdxwzywqsm")
- .withType("ureximoryocfs");
- model = BinaryData.fromObject(model).toObject(ObjectStatusConditionDefinition.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T02:08:06Z"), model.lastTransitionTime());
- Assertions.assertEquals("odpuozmyzydag", model.message());
- Assertions.assertEquals("axbezyiuo", model.reason());
- Assertions.assertEquals("twhrdxwzywqsm", model.status());
- Assertions.assertEquals("ureximoryocfs", model.type());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectStatusDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectStatusDefinitionTests.java
deleted file mode 100644
index 7575fc5c5f56b..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ObjectStatusDefinitionTests.java
+++ /dev/null
@@ -1,110 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.FluxComplianceState;
-import com.azure.resourcemanager.kubernetesconfiguration.models.HelmReleasePropertiesDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectReferenceDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectStatusConditionDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectStatusDefinition;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ObjectStatusDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ObjectStatusDefinition model =
- BinaryData
- .fromString(
- "{\"name\":\"wtgrhpdjpj\",\"namespace\":\"asxazjpqyegualhb\",\"kind\":\"hejjz\",\"complianceState\":\"Non-Compliant\",\"appliedBy\":{\"name\":\"gwdslfhotwm\",\"namespace\":\"npwlbjnpg\"},\"statusConditions\":[{\"lastTransitionTime\":\"2021-10-08T18:53:29Z\",\"message\":\"ehxnltyfsop\",\"reason\":\"suesnzw\",\"status\":\"jbavorxzdm\",\"type\":\"ctbqvudwx\"},{\"lastTransitionTime\":\"2021-03-23T22:55:01Z\",\"message\":\"vo\",\"reason\":\"ujjugwdkcglh\",\"status\":\"azjdyggd\",\"type\":\"ixhbkuofqweykhm\"},{\"lastTransitionTime\":\"2021-08-01T10:52:51Z\",\"message\":\"fyexfwhy\",\"reason\":\"i\",\"status\":\"yvdcsitynnaa\",\"type\":\"ectehf\"},{\"lastTransitionTime\":\"2021-03-19T08:13:40Z\",\"message\":\"jeyp\",\"reason\":\"ezrkgqhcjrefo\",\"status\":\"mkqsleyyv\",\"type\":\"qjpkcattpngjcrc\"}],\"helmReleaseProperties\":{\"lastRevisionApplied\":8852498521438996261,\"helmChartRef\":{\"name\":\"vmdajvnysou\",\"namespace\":\"e\"},\"failureCount\":3884440405716336055,\"installFailureCount\":4529960801894599237,\"upgradeFailureCount\":8165911566744254843}}")
- .toObject(ObjectStatusDefinition.class);
- Assertions.assertEquals("wtgrhpdjpj", model.name());
- Assertions.assertEquals("asxazjpqyegualhb", model.namespace());
- Assertions.assertEquals("hejjz", model.kind());
- Assertions.assertEquals(FluxComplianceState.NON_COMPLIANT, model.complianceState());
- Assertions.assertEquals("gwdslfhotwm", model.appliedBy().name());
- Assertions.assertEquals("npwlbjnpg", model.appliedBy().namespace());
- Assertions
- .assertEquals(
- OffsetDateTime.parse("2021-10-08T18:53:29Z"), model.statusConditions().get(0).lastTransitionTime());
- Assertions.assertEquals("ehxnltyfsop", model.statusConditions().get(0).message());
- Assertions.assertEquals("suesnzw", model.statusConditions().get(0).reason());
- Assertions.assertEquals("jbavorxzdm", model.statusConditions().get(0).status());
- Assertions.assertEquals("ctbqvudwx", model.statusConditions().get(0).type());
- Assertions.assertEquals(8852498521438996261L, model.helmReleaseProperties().lastRevisionApplied());
- Assertions.assertEquals("vmdajvnysou", model.helmReleaseProperties().helmChartRef().name());
- Assertions.assertEquals("e", model.helmReleaseProperties().helmChartRef().namespace());
- Assertions.assertEquals(3884440405716336055L, model.helmReleaseProperties().failureCount());
- Assertions.assertEquals(4529960801894599237L, model.helmReleaseProperties().installFailureCount());
- Assertions.assertEquals(8165911566744254843L, model.helmReleaseProperties().upgradeFailureCount());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ObjectStatusDefinition model =
- new ObjectStatusDefinition()
- .withName("wtgrhpdjpj")
- .withNamespace("asxazjpqyegualhb")
- .withKind("hejjz")
- .withComplianceState(FluxComplianceState.NON_COMPLIANT)
- .withAppliedBy(new ObjectReferenceDefinition().withName("gwdslfhotwm").withNamespace("npwlbjnpg"))
- .withStatusConditions(
- Arrays
- .asList(
- new ObjectStatusConditionDefinition()
- .withLastTransitionTime(OffsetDateTime.parse("2021-10-08T18:53:29Z"))
- .withMessage("ehxnltyfsop")
- .withReason("suesnzw")
- .withStatus("jbavorxzdm")
- .withType("ctbqvudwx"),
- new ObjectStatusConditionDefinition()
- .withLastTransitionTime(OffsetDateTime.parse("2021-03-23T22:55:01Z"))
- .withMessage("vo")
- .withReason("ujjugwdkcglh")
- .withStatus("azjdyggd")
- .withType("ixhbkuofqweykhm"),
- new ObjectStatusConditionDefinition()
- .withLastTransitionTime(OffsetDateTime.parse("2021-08-01T10:52:51Z"))
- .withMessage("fyexfwhy")
- .withReason("i")
- .withStatus("yvdcsitynnaa")
- .withType("ectehf"),
- new ObjectStatusConditionDefinition()
- .withLastTransitionTime(OffsetDateTime.parse("2021-03-19T08:13:40Z"))
- .withMessage("jeyp")
- .withReason("ezrkgqhcjrefo")
- .withStatus("mkqsleyyv")
- .withType("qjpkcattpngjcrc")))
- .withHelmReleaseProperties(
- new HelmReleasePropertiesDefinition()
- .withLastRevisionApplied(8852498521438996261L)
- .withHelmChartRef(new ObjectReferenceDefinition().withName("vmdajvnysou").withNamespace("e"))
- .withFailureCount(3884440405716336055L)
- .withInstallFailureCount(4529960801894599237L)
- .withUpgradeFailureCount(8165911566744254843L));
- model = BinaryData.fromObject(model).toObject(ObjectStatusDefinition.class);
- Assertions.assertEquals("wtgrhpdjpj", model.name());
- Assertions.assertEquals("asxazjpqyegualhb", model.namespace());
- Assertions.assertEquals("hejjz", model.kind());
- Assertions.assertEquals(FluxComplianceState.NON_COMPLIANT, model.complianceState());
- Assertions.assertEquals("gwdslfhotwm", model.appliedBy().name());
- Assertions.assertEquals("npwlbjnpg", model.appliedBy().namespace());
- Assertions
- .assertEquals(
- OffsetDateTime.parse("2021-10-08T18:53:29Z"), model.statusConditions().get(0).lastTransitionTime());
- Assertions.assertEquals("ehxnltyfsop", model.statusConditions().get(0).message());
- Assertions.assertEquals("suesnzw", model.statusConditions().get(0).reason());
- Assertions.assertEquals("jbavorxzdm", model.statusConditions().get(0).status());
- Assertions.assertEquals("ctbqvudwx", model.statusConditions().get(0).type());
- Assertions.assertEquals(8852498521438996261L, model.helmReleaseProperties().lastRevisionApplied());
- Assertions.assertEquals("vmdajvnysou", model.helmReleaseProperties().helmChartRef().name());
- Assertions.assertEquals("e", model.helmReleaseProperties().helmChartRef().namespace());
- Assertions.assertEquals(3884440405716336055L, model.helmReleaseProperties().failureCount());
- Assertions.assertEquals(4529960801894599237L, model.helmReleaseProperties().installFailureCount());
- Assertions.assertEquals(8165911566744254843L, model.helmReleaseProperties().upgradeFailureCount());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusGetWithResponseMockTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusGetWithResponseMockTests.java
deleted file mode 100644
index 5b61fda272351..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusGetWithResponseMockTests.java
+++ /dev/null
@@ -1,80 +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.kubernetesconfiguration.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.kubernetesconfiguration.SourceControlConfigurationManager;
-import com.azure.resourcemanager.kubernetesconfiguration.models.OperationStatusResult;
-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 OperationStatusGetWithResponseMockTests {
- @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\":\"xywsuws\",\"name\":\"s\",\"status\":\"dsytgadgvr\",\"properties\":{\"qnzarrwl\":\"en\",\"jfqka\":\"uu\",\"iipfpubj\":\"e\"}}";
-
- 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);
- }));
-
- SourceControlConfigurationManager manager =
- SourceControlConfigurationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- OperationStatusResult response =
- manager
- .operationStatus()
- .getWithResponse(
- "pqwcciuqgbdbutau",
- "fbtkuwhhmhyk",
- "joxafnndlpi",
- "hkoymkcdyhbp",
- "kpw",
- "reqnovvqfov",
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("xywsuws", response.id());
- Assertions.assertEquals("s", response.name());
- Assertions.assertEquals("dsytgadgvr", response.status());
- Assertions.assertEquals("en", response.properties().get("qnzarrwl"));
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListMockTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListMockTests.java
deleted file mode 100644
index 05e438f258e82..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListMockTests.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.kubernetesconfiguration.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.kubernetesconfiguration.SourceControlConfigurationManager;
-import com.azure.resourcemanager.kubernetesconfiguration.models.OperationStatusResult;
-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 OperationStatusListMockTests {
- @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\":[{\"id\":\"ynt\",\"name\":\"zihleosjswsr\",\"status\":\"slyzrpzbchckqq\",\"properties\":{\"ysuiizynkedya\":\"ox\",\"pyy\":\"rwyhqmibzyhwitsm\",\"mwzn\":\"pcdpumnz\"}}]}";
-
- 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);
- }));
-
- SourceControlConfigurationManager manager =
- SourceControlConfigurationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .operationStatus()
- .list("wwiftohqkvpuv", "sgplsakn", "n", "synljphuopxodl", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("ynt", response.iterator().next().id());
- Assertions.assertEquals("zihleosjswsr", response.iterator().next().name());
- Assertions.assertEquals("slyzrpzbchckqq", response.iterator().next().status());
- Assertions.assertEquals("ox", response.iterator().next().properties().get("ysuiizynkedya"));
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListTests.java
deleted file mode 100644
index 2670e8dd0446f..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListTests.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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.OperationStatusList;
-
-public final class OperationStatusListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationStatusList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"id\":\"uhashsfwx\",\"name\":\"owzxcu\",\"status\":\"i\",\"properties\":{\"wfvovbv\":\"oxdjebwpuc\",\"jrwjueiotwm\":\"euecivyhzceuoj\",\"rjaw\":\"dytdxwitx\"}},{\"id\":\"gxhnisk\",\"name\":\"bkpyc\",\"status\":\"klwndnhjdauwhv\",\"properties\":{\"xujznbmpowu\":\"zbtd\",\"lupj\":\"przqlveu\"}},{\"id\":\"fxobbcsws\",\"name\":\"jriplrbpbewtghf\",\"status\":\"blcg\",\"properties\":{\"t\":\"vlvqhjkbegi\",\"aloayqcgwrtzju\":\"mxiebw\",\"txon\":\"gwyzm\",\"rknftguvriuhprwm\":\"mtsavjcbpwxqp\"}}],\"nextLink\":\"xqtayriwwro\"}")
- .toObject(OperationStatusList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationStatusList model = new OperationStatusList();
- model = BinaryData.fromObject(model).toObject(OperationStatusList.class);
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusResultInnerTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusResultInnerTests.java
deleted file mode 100644
index 21e3d19c46bc0..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusResultInnerTests.java
+++ /dev/null
@@ -1,54 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.OperationStatusResultInner;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class OperationStatusResultInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationStatusResultInner model =
- BinaryData
- .fromString(
- "{\"id\":\"gfgibm\",\"name\":\"gakeqsr\",\"status\":\"yb\",\"properties\":{\"qytbciq\":\"e\",\"mmnkzsmodmgl\":\"ouf\",\"mutduqktaps\":\"ugpbkw\",\"rtumkdosvq\":\"wgcu\"}}")
- .toObject(OperationStatusResultInner.class);
- Assertions.assertEquals("gfgibm", model.id());
- Assertions.assertEquals("gakeqsr", model.name());
- Assertions.assertEquals("yb", model.status());
- Assertions.assertEquals("e", model.properties().get("qytbciq"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationStatusResultInner model =
- new OperationStatusResultInner()
- .withId("gfgibm")
- .withName("gakeqsr")
- .withStatus("yb")
- .withProperties(
- mapOf("qytbciq", "e", "mmnkzsmodmgl", "ouf", "mutduqktaps", "ugpbkw", "rtumkdosvq", "wgcu"));
- model = BinaryData.fromObject(model).toObject(OperationStatusResultInner.class);
- Assertions.assertEquals("gfgibm", model.id());
- Assertions.assertEquals("gakeqsr", model.name());
- Assertions.assertEquals("yb", model.status());
- Assertions.assertEquals("e", model.properties().get("qytbciq"));
- }
-
- // Use "Map.of" if available
- @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/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationsListMockTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationsListMockTests.java
deleted file mode 100644
index 4556b272aa840..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationsListMockTests.java
+++ /dev/null
@@ -1,71 +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.kubernetesconfiguration.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.kubernetesconfiguration.SourceControlConfigurationManager;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ResourceProviderOperation;
-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 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\":\"cstwity\",\"display\":{\"provider\":\"vxccedcp\",\"resource\":\"dyodnwzxltj\",\"operation\":\"nhltiugcxn\",\"description\":\"vwxqibyqunyo\"},\"isDataAction\":false,\"origin\":\"mdjrkvfgbvfvp\"}]}";
-
- 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);
- }));
-
- SourceControlConfigurationManager manager =
- SourceControlConfigurationManager
- .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);
-
- Assertions.assertEquals("cstwity", response.iterator().next().name());
- Assertions.assertEquals("vxccedcp", response.iterator().next().display().provider());
- Assertions.assertEquals("dyodnwzxltj", response.iterator().next().display().resource());
- Assertions.assertEquals("nhltiugcxn", response.iterator().next().display().operation());
- Assertions.assertEquals("vwxqibyqunyo", response.iterator().next().display().description());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PatchExtensionPropertiesTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PatchExtensionPropertiesTests.java
deleted file mode 100644
index f2e6f61ef2922..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PatchExtensionPropertiesTests.java
+++ /dev/null
@@ -1,59 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.PatchExtensionProperties;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class PatchExtensionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PatchExtensionProperties model =
- BinaryData
- .fromString(
- "{\"autoUpgradeMinorVersion\":false,\"releaseTrain\":\"bkpodepooginuv\",\"version\":\"iheogna\",\"configurationSettings\":{\"o\":\"xth\",\"cciqihnhungbwjz\":\"usivye\",\"kufubljo\":\"nfygxgispemvtz\",\"v\":\"xqeofjaeqjhqjba\"},\"configurationProtectedSettings\":{\"gsntnbybkzgcwr\":\"jqul\",\"skcqvkocrcjd\":\"clxxwrljdo\",\"lssai\":\"wtnhxbnjbiksqr\"}}")
- .toObject(PatchExtensionProperties.class);
- Assertions.assertEquals(false, model.autoUpgradeMinorVersion());
- Assertions.assertEquals("bkpodepooginuv", model.releaseTrain());
- Assertions.assertEquals("iheogna", model.version());
- Assertions.assertEquals("xth", model.configurationSettings().get("o"));
- Assertions.assertEquals("jqul", model.configurationProtectedSettings().get("gsntnbybkzgcwr"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PatchExtensionProperties model =
- new PatchExtensionProperties()
- .withAutoUpgradeMinorVersion(false)
- .withReleaseTrain("bkpodepooginuv")
- .withVersion("iheogna")
- .withConfigurationSettings(
- mapOf(
- "o", "xth", "cciqihnhungbwjz", "usivye", "kufubljo", "nfygxgispemvtz", "v", "xqeofjaeqjhqjba"))
- .withConfigurationProtectedSettings(
- mapOf("gsntnbybkzgcwr", "jqul", "skcqvkocrcjd", "clxxwrljdo", "lssai", "wtnhxbnjbiksqr"));
- model = BinaryData.fromObject(model).toObject(PatchExtensionProperties.class);
- Assertions.assertEquals(false, model.autoUpgradeMinorVersion());
- Assertions.assertEquals("bkpodepooginuv", model.releaseTrain());
- Assertions.assertEquals("iheogna", model.version());
- Assertions.assertEquals("xth", model.configurationSettings().get("o"));
- Assertions.assertEquals("jqul", model.configurationProtectedSettings().get("gsntnbybkzgcwr"));
- }
-
- // Use "Map.of" if available
- @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/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PatchExtensionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PatchExtensionTests.java
deleted file mode 100644
index db0e99a77f705..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PatchExtensionTests.java
+++ /dev/null
@@ -1,58 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.PatchExtension;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class PatchExtensionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PatchExtension model =
- BinaryData
- .fromString(
- "{\"properties\":{\"autoUpgradeMinorVersion\":true,\"releaseTrain\":\"jhulsuuvmkjo\",\"version\":\"rwfndiod\",\"configurationSettings\":{\"ryo\":\"lwejdpv\",\"hbcryffdfdosyge\":\"psoacctazakljl\",\"rzevdphlxaol\":\"paojakhmsbzjh\"},\"configurationProtectedSettings\":{\"jbp\":\"trg\",\"jrwzox\":\"zfsinzgvf\",\"felluwfzitonpe\":\"j\",\"vhpfxxypininmay\":\"fpjkjlxofp\"}}}")
- .toObject(PatchExtension.class);
- Assertions.assertEquals(true, model.autoUpgradeMinorVersion());
- Assertions.assertEquals("jhulsuuvmkjo", model.releaseTrain());
- Assertions.assertEquals("rwfndiod", model.version());
- Assertions.assertEquals("lwejdpv", model.configurationSettings().get("ryo"));
- Assertions.assertEquals("trg", model.configurationProtectedSettings().get("jbp"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PatchExtension model =
- new PatchExtension()
- .withAutoUpgradeMinorVersion(true)
- .withReleaseTrain("jhulsuuvmkjo")
- .withVersion("rwfndiod")
- .withConfigurationSettings(
- mapOf("ryo", "lwejdpv", "hbcryffdfdosyge", "psoacctazakljl", "rzevdphlxaol", "paojakhmsbzjh"))
- .withConfigurationProtectedSettings(
- mapOf("jbp", "trg", "jrwzox", "zfsinzgvf", "felluwfzitonpe", "j", "vhpfxxypininmay", "fpjkjlxofp"));
- model = BinaryData.fromObject(model).toObject(PatchExtension.class);
- Assertions.assertEquals(true, model.autoUpgradeMinorVersion());
- Assertions.assertEquals("jhulsuuvmkjo", model.releaseTrain());
- Assertions.assertEquals("rwfndiod", model.version());
- Assertions.assertEquals("lwejdpv", model.configurationSettings().get("ryo"));
- Assertions.assertEquals("trg", model.configurationProtectedSettings().get("jbp"));
- }
-
- // Use "Map.of" if available
- @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/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PostBuildDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PostBuildDefinitionTests.java
deleted file mode 100644
index 3746ba51e23d1..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/PostBuildDefinitionTests.java
+++ /dev/null
@@ -1,71 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.PostBuildDefinition;
-import com.azure.resourcemanager.kubernetesconfiguration.models.SubstituteFromDefinition;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class PostBuildDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PostBuildDefinition model =
- BinaryData
- .fromString(
- "{\"substitute\":{\"cuiywgqyw\":\"yktz\",\"phrcgyncoc\":\"ndrvynhzg\",\"oo\":\"ecfvmm\"},\"substituteFrom\":[{\"kind\":\"zevgb\",\"name\":\"jqabcypmivkwlzuv\",\"optional\":false},{\"kind\":\"nfnbacfionlebxe\",\"name\":\"gtzxdpn\",\"optional\":false},{\"kind\":\"wxrjfeallnwsub\",\"name\":\"njampm\",\"optional\":false},{\"kind\":\"scxaq\",\"name\":\"ochcbonqvpkvl\",\"optional\":true}]}")
- .toObject(PostBuildDefinition.class);
- Assertions.assertEquals("yktz", model.substitute().get("cuiywgqyw"));
- Assertions.assertEquals("zevgb", model.substituteFrom().get(0).kind());
- Assertions.assertEquals("jqabcypmivkwlzuv", model.substituteFrom().get(0).name());
- Assertions.assertEquals(false, model.substituteFrom().get(0).optional());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PostBuildDefinition model =
- new PostBuildDefinition()
- .withSubstitute(mapOf("cuiywgqyw", "yktz", "phrcgyncoc", "ndrvynhzg", "oo", "ecfvmm"))
- .withSubstituteFrom(
- Arrays
- .asList(
- new SubstituteFromDefinition()
- .withKind("zevgb")
- .withName("jqabcypmivkwlzuv")
- .withOptional(false),
- new SubstituteFromDefinition()
- .withKind("nfnbacfionlebxe")
- .withName("gtzxdpn")
- .withOptional(false),
- new SubstituteFromDefinition()
- .withKind("wxrjfeallnwsub")
- .withName("njampm")
- .withOptional(false),
- new SubstituteFromDefinition()
- .withKind("scxaq")
- .withName("ochcbonqvpkvl")
- .withOptional(true)));
- model = BinaryData.fromObject(model).toObject(PostBuildDefinition.class);
- Assertions.assertEquals("yktz", model.substitute().get("cuiywgqyw"));
- Assertions.assertEquals("zevgb", model.substituteFrom().get(0).kind());
- Assertions.assertEquals("jqabcypmivkwlzuv", model.substituteFrom().get(0).name());
- Assertions.assertEquals(false, model.substituteFrom().get(0).optional());
- }
-
- // Use "Map.of" if available
- @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/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/RepositoryRefDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/RepositoryRefDefinitionTests.java
deleted file mode 100644
index a2bddd14c537c..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/RepositoryRefDefinitionTests.java
+++ /dev/null
@@ -1,39 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.RepositoryRefDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class RepositoryRefDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RepositoryRefDefinition model =
- BinaryData
- .fromString(
- "{\"branch\":\"bnbdxkqpxokajion\",\"tag\":\"mexgstxgcp\",\"semver\":\"gmaajrm\",\"commit\":\"jwzrl\"}")
- .toObject(RepositoryRefDefinition.class);
- Assertions.assertEquals("bnbdxkqpxokajion", model.branch());
- Assertions.assertEquals("mexgstxgcp", model.tag());
- Assertions.assertEquals("gmaajrm", model.semver());
- Assertions.assertEquals("jwzrl", model.commit());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RepositoryRefDefinition model =
- new RepositoryRefDefinition()
- .withBranch("bnbdxkqpxokajion")
- .withTag("mexgstxgcp")
- .withSemver("gmaajrm")
- .withCommit("jwzrl");
- model = BinaryData.fromObject(model).toObject(RepositoryRefDefinition.class);
- Assertions.assertEquals("bnbdxkqpxokajion", model.branch());
- Assertions.assertEquals("mexgstxgcp", model.tag());
- Assertions.assertEquals("gmaajrm", model.semver());
- Assertions.assertEquals("jwzrl", model.commit());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationDisplayTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationDisplayTests.java
deleted file mode 100644
index d0e3a55c91c75..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationDisplayTests.java
+++ /dev/null
@@ -1,39 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ResourceProviderOperationDisplay;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceProviderOperationDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceProviderOperationDisplay model =
- BinaryData
- .fromString(
- "{\"provider\":\"gylgqgitxmedjvcs\",\"resource\":\"n\",\"operation\":\"wncwzzhxgktrmg\",\"description\":\"napkteoellw\"}")
- .toObject(ResourceProviderOperationDisplay.class);
- Assertions.assertEquals("gylgqgitxmedjvcs", model.provider());
- Assertions.assertEquals("n", model.resource());
- Assertions.assertEquals("wncwzzhxgktrmg", model.operation());
- Assertions.assertEquals("napkteoellw", model.description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceProviderOperationDisplay model =
- new ResourceProviderOperationDisplay()
- .withProvider("gylgqgitxmedjvcs")
- .withResource("n")
- .withOperation("wncwzzhxgktrmg")
- .withDescription("napkteoellw");
- model = BinaryData.fromObject(model).toObject(ResourceProviderOperationDisplay.class);
- Assertions.assertEquals("gylgqgitxmedjvcs", model.provider());
- Assertions.assertEquals("n", model.resource());
- Assertions.assertEquals("wncwzzhxgktrmg", model.operation());
- Assertions.assertEquals("napkteoellw", model.description());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationInnerTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationInnerTests.java
deleted file mode 100644
index bba3eb71db32b..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationInnerTests.java
+++ /dev/null
@@ -1,45 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.ResourceProviderOperationInner;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ResourceProviderOperationDisplay;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceProviderOperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceProviderOperationInner model =
- BinaryData
- .fromString(
- "{\"name\":\"xyawj\",\"display\":{\"provider\":\"qcslyjpkiid\",\"resource\":\"exznelixhnr\",\"operation\":\"folhbnxknal\",\"description\":\"lp\"},\"isDataAction\":true,\"origin\":\"tpnapnyiropuhpig\"}")
- .toObject(ResourceProviderOperationInner.class);
- Assertions.assertEquals("xyawj", model.name());
- Assertions.assertEquals("qcslyjpkiid", model.display().provider());
- Assertions.assertEquals("exznelixhnr", model.display().resource());
- Assertions.assertEquals("folhbnxknal", model.display().operation());
- Assertions.assertEquals("lp", model.display().description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceProviderOperationInner model =
- new ResourceProviderOperationInner()
- .withName("xyawj")
- .withDisplay(
- new ResourceProviderOperationDisplay()
- .withProvider("qcslyjpkiid")
- .withResource("exznelixhnr")
- .withOperation("folhbnxknal")
- .withDescription("lp"));
- model = BinaryData.fromObject(model).toObject(ResourceProviderOperationInner.class);
- Assertions.assertEquals("xyawj", model.name());
- Assertions.assertEquals("qcslyjpkiid", model.display().provider());
- Assertions.assertEquals("exznelixhnr", model.display().resource());
- Assertions.assertEquals("folhbnxknal", model.display().operation());
- Assertions.assertEquals("lp", model.display().description());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationListTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationListTests.java
deleted file mode 100644
index 7a63b526cd506..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ResourceProviderOperationListTests.java
+++ /dev/null
@@ -1,59 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.ResourceProviderOperationInner;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ResourceProviderOperationDisplay;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ResourceProviderOperationList;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceProviderOperationListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceProviderOperationList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"name\":\"xrmcqibycnojvk\",\"display\":{\"provider\":\"fqsgzvahapjy\",\"resource\":\"pvgqzcjrvxdjzlm\",\"operation\":\"xkvugfhzov\",\"description\":\"jvzunluthnnp\"},\"isDataAction\":true,\"origin\":\"peilpjzuaejxdu\"},{\"name\":\"skzbb\",\"display\":{\"provider\":\"umveekgpwozuhkf\",\"resource\":\"sjyofdx\",\"operation\":\"us\",\"description\":\"touwaboekqv\"},\"isDataAction\":false,\"origin\":\"smv\"}],\"nextLink\":\"wyjsflhhcaalnjix\"}")
- .toObject(ResourceProviderOperationList.class);
- Assertions.assertEquals("xrmcqibycnojvk", model.value().get(0).name());
- Assertions.assertEquals("fqsgzvahapjy", model.value().get(0).display().provider());
- Assertions.assertEquals("pvgqzcjrvxdjzlm", model.value().get(0).display().resource());
- Assertions.assertEquals("xkvugfhzov", model.value().get(0).display().operation());
- Assertions.assertEquals("jvzunluthnnp", model.value().get(0).display().description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceProviderOperationList model =
- new ResourceProviderOperationList()
- .withValue(
- Arrays
- .asList(
- new ResourceProviderOperationInner()
- .withName("xrmcqibycnojvk")
- .withDisplay(
- new ResourceProviderOperationDisplay()
- .withProvider("fqsgzvahapjy")
- .withResource("pvgqzcjrvxdjzlm")
- .withOperation("xkvugfhzov")
- .withDescription("jvzunluthnnp")),
- new ResourceProviderOperationInner()
- .withName("skzbb")
- .withDisplay(
- new ResourceProviderOperationDisplay()
- .withProvider("umveekgpwozuhkf")
- .withResource("sjyofdx")
- .withOperation("us")
- .withDescription("touwaboekqv"))));
- model = BinaryData.fromObject(model).toObject(ResourceProviderOperationList.class);
- Assertions.assertEquals("xrmcqibycnojvk", model.value().get(0).name());
- Assertions.assertEquals("fqsgzvahapjy", model.value().get(0).display().provider());
- Assertions.assertEquals("pvgqzcjrvxdjzlm", model.value().get(0).display().resource());
- Assertions.assertEquals("xkvugfhzov", model.value().get(0).display().operation());
- Assertions.assertEquals("jvzunluthnnp", model.value().get(0).display().description());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeClusterTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeClusterTests.java
deleted file mode 100644
index f2115b1747bf0..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeClusterTests.java
+++ /dev/null
@@ -1,24 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeCluster;
-import org.junit.jupiter.api.Assertions;
-
-public final class ScopeClusterTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ScopeCluster model = BinaryData.fromString("{\"releaseNamespace\":\"rkxvdum\"}").toObject(ScopeCluster.class);
- Assertions.assertEquals("rkxvdum", model.releaseNamespace());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ScopeCluster model = new ScopeCluster().withReleaseNamespace("rkxvdum");
- model = BinaryData.fromObject(model).toObject(ScopeCluster.class);
- Assertions.assertEquals("rkxvdum", model.releaseNamespace());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeNamespaceTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeNamespaceTests.java
deleted file mode 100644
index 6359c17dc9d49..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeNamespaceTests.java
+++ /dev/null
@@ -1,24 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeNamespace;
-import org.junit.jupiter.api.Assertions;
-
-public final class ScopeNamespaceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ScopeNamespace model = BinaryData.fromString("{\"targetNamespace\":\"rtfw\"}").toObject(ScopeNamespace.class);
- Assertions.assertEquals("rtfw", model.targetNamespace());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ScopeNamespace model = new ScopeNamespace().withTargetNamespace("rtfw");
- model = BinaryData.fromObject(model).toObject(ScopeNamespace.class);
- Assertions.assertEquals("rtfw", model.targetNamespace());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeTests.java
deleted file mode 100644
index 07fc68271e090..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ScopeTests.java
+++ /dev/null
@@ -1,34 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.Scope;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeCluster;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeNamespace;
-import org.junit.jupiter.api.Assertions;
-
-public final class ScopeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Scope model =
- BinaryData
- .fromString("{\"cluster\":{\"releaseNamespace\":\"vyq\"},\"namespace\":{\"targetNamespace\":\"b\"}}")
- .toObject(Scope.class);
- Assertions.assertEquals("vyq", model.cluster().releaseNamespace());
- Assertions.assertEquals("b", model.namespace().targetNamespace());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Scope model =
- new Scope()
- .withCluster(new ScopeCluster().withReleaseNamespace("vyq"))
- .withNamespace(new ScopeNamespace().withTargetNamespace("b"));
- model = BinaryData.fromObject(model).toObject(Scope.class);
- Assertions.assertEquals("vyq", model.cluster().releaseNamespace());
- Assertions.assertEquals("b", model.namespace().targetNamespace());
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsDeleteMockTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsDeleteMockTests.java
deleted file mode 100644
index 6c5d1309a5b94..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsDeleteMockTests.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.kubernetesconfiguration.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.kubernetesconfiguration.SourceControlConfigurationManager;
-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 SourceControlConfigurationsDeleteMockTests {
- @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);
- }));
-
- SourceControlConfigurationManager manager =
- SourceControlConfigurationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .sourceControlConfigurations()
- .delete(
- "mhairsbrgzdwmsw",
- "ypqwdxggiccc",
- "xqhuexm",
- "ttlstvlzywemhz",
- "ncsdtclusiyp",
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SubstituteFromDefinitionTests.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SubstituteFromDefinitionTests.java
deleted file mode 100644
index 98af6aae5f864..0000000000000
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/test/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SubstituteFromDefinitionTests.java
+++ /dev/null
@@ -1,32 +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.kubernetesconfiguration.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.kubernetesconfiguration.models.SubstituteFromDefinition;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubstituteFromDefinitionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubstituteFromDefinition model =
- BinaryData
- .fromString("{\"kind\":\"ea\",\"name\":\"ipheoflokeyyien\",\"optional\":true}")
- .toObject(SubstituteFromDefinition.class);
- Assertions.assertEquals("ea", model.kind());
- Assertions.assertEquals("ipheoflokeyyien", model.name());
- Assertions.assertEquals(true, model.optional());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubstituteFromDefinition model =
- new SubstituteFromDefinition().withKind("ea").withName("ipheoflokeyyien").withOptional(true);
- model = BinaryData.fromObject(model).toObject(SubstituteFromDefinition.class);
- Assertions.assertEquals("ea", model.kind());
- Assertions.assertEquals("ipheoflokeyyien", model.name());
- Assertions.assertEquals(true, model.optional());
- }
-}