diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md index 57fc7db93bf5..2e5916ca96e1 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md @@ -1,14 +1,8 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2024-08-16) -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Azure Resource Manager App Compliance Automation client library for Java. This package contains Microsoft Azure SDK for App Compliance Automation Management SDK. App Compliance Automation Tool for Microsoft 365 API spec. Package tag package-2024-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0 (2024-06-27) diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md index 137018fb9503..326dc567c63a 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-appcomplianceautomation - 1.0.0 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml index 12cda13a1506..b34a7fca4f2e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml @@ -45,6 +45,7 @@ UTF-8 0 0 + true diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java index ac1c84c8bc5d..c6dffe652d7b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java @@ -230,7 +230,7 @@ public AppComplianceAutomationManager authenticate(TokenCredential credential, A .append("-") .append("com.azure.resourcemanager.appcomplianceautomation") .append("/") - .append("1.0.0"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.java index f70ce87019b7..6fc306265802 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.java @@ -8,6 +8,6 @@ exports com.azure.resourcemanager.appcomplianceautomation.fluent; exports com.azure.resourcemanager.appcomplianceautomation.fluent.models; exports com.azure.resourcemanager.appcomplianceautomation.models; - opens com.azure.resourcemanager.appcomplianceautomation.fluent.models to com.azure.core, com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.appcomplianceautomation.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.appcomplianceautomation.fluent.models to com.azure.core; + opens com.azure.resourcemanager.appcomplianceautomation.models to com.azure.core; } \ No newline at end of file diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/proxy-config.json b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/proxy-config.json index 21dfa6c3f3bc..0bc8c7e005cb 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/proxy-config.json +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.appcomplianceautomation.implementation.EvidencesClientImpl$EvidencesService" ], [ "com.azure.resourcemanager.appcomplianceautomation.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.appcomplianceautomation.implementation.ProviderActionsClientImpl$ProviderActionsService" ], [ "com.azure.resourcemanager.appcomplianceautomation.implementation.ReportsClientImpl$ReportsService" ], [ "com.azure.resourcemanager.appcomplianceautomation.implementation.ScopingConfigurationsClientImpl$ScopingConfigurationsService" ], [ "com.azure.resourcemanager.appcomplianceautomation.implementation.SnapshotsClientImpl$SnapshotsService" ], [ "com.azure.resourcemanager.appcomplianceautomation.implementation.WebhooksClientImpl$WebhooksService" ] ] \ No newline at end of file +[["com.azure.resourcemanager.appcomplianceautomation.implementation.EvidencesClientImpl$EvidencesService"],["com.azure.resourcemanager.appcomplianceautomation.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.appcomplianceautomation.implementation.ProviderActionsClientImpl$ProviderActionsService"],["com.azure.resourcemanager.appcomplianceautomation.implementation.ReportsClientImpl$ReportsService"],["com.azure.resourcemanager.appcomplianceautomation.implementation.ScopingConfigurationsClientImpl$ScopingConfigurationsService"],["com.azure.resourcemanager.appcomplianceautomation.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.appcomplianceautomation.implementation.WebhooksClientImpl$WebhooksService"]] \ No newline at end of file diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/reflect-config.json b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/reflect-config.json index 8878e547a798..0637a088a01e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/reflect-config.json +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcomplianceautomation/reflect-config.json @@ -1 +1 @@ -[ ] \ No newline at end of file +[] \ No newline at end of file diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CategoryTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CategoryTests.java deleted file mode 100644 index a22d9ceefadc..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CategoryTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.Category; - -public final class CategoryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Category model = BinaryData.fromString( - "{\"categoryName\":\"ygdvwv\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{\"controlFamilyName\":\"wxrt\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"xg\",\"controlName\":\"agvrvmnpkuk\",\"controlFullName\":\"i\",\"controlDescription\":\"blxgwimf\",\"controlDescriptionHyperLink\":\"hfjx\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{}]},{\"controlId\":\"foqreyfkzik\",\"controlName\":\"aw\",\"controlFullName\":\"a\",\"controlDescription\":\"xwczelpcire\",\"controlDescriptionHyperLink\":\"feaenwab\",\"controlStatus\":\"Passed\",\"responsibilities\":[{},{},{}]},{\"controlId\":\"dxbjhwuaanozj\",\"controlName\":\"ph\",\"controlFullName\":\"ulpjr\",\"controlDescription\":\"ag\",\"controlDescriptionHyperLink\":\"vimjwos\",\"controlStatus\":\"Passed\",\"responsibilities\":[{}]}]},{\"controlFamilyName\":\"skfc\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"ekkezzikhlyfjh\",\"controlName\":\"qgge\",\"controlFullName\":\"unygaeqid\",\"controlDescription\":\"fatpxllrxcyjmoa\",\"controlDescriptionHyperLink\":\"uvarmywdmjsjq\",\"controlStatus\":\"Failed\",\"responsibilities\":[{},{},{}]},{\"controlId\":\"xrwlyc\",\"controlName\":\"uhpkxkgymar\",\"controlFullName\":\"n\",\"controlDescription\":\"xqugjhkycubedd\",\"controlDescriptionHyperLink\":\"sofwqmzqalkrmnji\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{}]},{\"controlId\":\"qudf\",\"controlName\":\"yxbaaabjyvayf\",\"controlFullName\":\"m\",\"controlDescription\":\"rtuzqogs\",\"controlDescriptionHyperLink\":\"nevfdnw\",\"controlStatus\":\"Failed\",\"responsibilities\":[{},{},{}]},{\"controlId\":\"syyceuzsoibjud\",\"controlName\":\"rx\",\"controlFullName\":\"thzvaytdwkqbrqu\",\"controlDescription\":\"axhexiilivp\",\"controlDescriptionHyperLink\":\"iirqtd\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{},{},{}]}]},{\"controlFamilyName\":\"uzf\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"xrxxlep\",\"controlName\":\"amxjezwlw\",\"controlFullName\":\"xuqlcvydypat\",\"controlDescription\":\"oa\",\"controlDescriptionHyperLink\":\"kniod\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{}]},{\"controlId\":\"nuj\",\"controlName\":\"mmsbvdkcrodtjin\",\"controlFullName\":\"jlfltkacjvefkdlf\",\"controlDescription\":\"kggkfpa\",\"controlDescriptionHyperLink\":\"owpulpq\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{}]}]}]}") - .toObject(Category.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Category model = new Category(); - model = BinaryData.fromObject(model).toObject(Category.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CertSyncRecordTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CertSyncRecordTests.java deleted file mode 100644 index 84bc578766dd..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CertSyncRecordTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.CertSyncRecord; -import com.azure.resourcemanager.appcomplianceautomation.models.ControlSyncRecord; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CertSyncRecordTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CertSyncRecord model = BinaryData.fromString( - "{\"offerGuid\":\"naamde\",\"certificationStatus\":\"eh\",\"ingestionStatus\":\"qsc\",\"controls\":[{\"controlId\":\"vhezrkgqhcj\",\"controlStatus\":\"fovgmkqsleyyvxy\"},{\"controlId\":\"pkc\",\"controlStatus\":\"tpngjcrcczsqpjh\"},{\"controlId\":\"daj\",\"controlStatus\":\"ysou\"}]}") - .toObject(CertSyncRecord.class); - Assertions.assertEquals("naamde", model.offerGuid()); - Assertions.assertEquals("eh", model.certificationStatus()); - Assertions.assertEquals("qsc", model.ingestionStatus()); - Assertions.assertEquals("vhezrkgqhcj", model.controls().get(0).controlId()); - Assertions.assertEquals("fovgmkqsleyyvxy", model.controls().get(0).controlStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CertSyncRecord model - = new CertSyncRecord().withOfferGuid("naamde") - .withCertificationStatus("eh") - .withIngestionStatus("qsc") - .withControls(Arrays.asList( - new ControlSyncRecord().withControlId("vhezrkgqhcj").withControlStatus("fovgmkqsleyyvxy"), - new ControlSyncRecord().withControlId("pkc").withControlStatus("tpngjcrcczsqpjh"), - new ControlSyncRecord().withControlId("daj").withControlStatus("ysou"))); - model = BinaryData.fromObject(model).toObject(CertSyncRecord.class); - Assertions.assertEquals("naamde", model.offerGuid()); - Assertions.assertEquals("eh", model.certificationStatus()); - Assertions.assertEquals("qsc", model.ingestionStatus()); - Assertions.assertEquals("vhezrkgqhcj", model.controls().get(0).controlId()); - Assertions.assertEquals("fovgmkqsleyyvxy", model.controls().get(0).controlStatus()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityRequestTests.java deleted file mode 100644 index 4eeb3992e0ef..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model - = BinaryData.fromString("{\"name\":\"mhquvgjxp\",\"type\":\"czmehmtzopbsp\"}") - .toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("mhquvgjxp", model.name()); - Assertions.assertEquals("czmehmtzopbsp", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model - = new CheckNameAvailabilityRequest().withName("mhquvgjxp").withType("czmehmtzopbsp"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("mhquvgjxp", model.name()); - Assertions.assertEquals("czmehmtzopbsp", model.type()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityResponseInnerTests.java deleted file mode 100644 index 4da7aecb37b6..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityResponseInnerTests.java +++ /dev/null @@ -1,22 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.CheckNameAvailabilityResponseInner; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityReason; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityResponseInner model - = BinaryData.fromString("{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"gsybbejhp\"}") - .toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals(false, model.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason()); - Assertions.assertEquals("gsybbejhp", model.message()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceReportItemTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceReportItemTests.java deleted file mode 100644 index 4fbfe8c86714..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceReportItemTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ComplianceReportItem; - -public final class ComplianceReportItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ComplianceReportItem model = BinaryData.fromString( - "{\"categoryName\":\"kvi\",\"controlFamilyName\":\"dscwxqupevzhf\",\"controlId\":\"otxhojujby\",\"controlName\":\"lmcuvhixb\",\"controlStatus\":\"Failed\",\"responsibilityTitle\":\"w\",\"responsibilityDescription\":\"lrcoolsttpki\",\"resourceId\":\"kbnujr\",\"resourceType\":\"vtylbfpncu\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-02-21T18:31:28Z\"}") - .toObject(ComplianceReportItem.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceResultTests.java deleted file mode 100644 index d101e19a22ca..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceResultTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ComplianceResult; - -public final class ComplianceResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ComplianceResult model = BinaryData.fromString( - "{\"complianceName\":\"xiy\",\"categories\":[{\"categoryName\":\"zynkedya\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{\"controlFamilyName\":\"mibzyhwitsmypyyn\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{},{},{},{}]},{\"controlFamilyName\":\"nzgmwznmabik\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{}]},{\"controlFamilyName\":\"hxbld\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{},{},{},{}]}]},{\"categoryName\":\"kdmtncvokotll\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{\"controlFamilyName\":\"y\",\"controlFamilyStatus\":\"PendingApproval\",\"controls\":[{}]},{\"controlFamilyName\":\"tdtbnnhadooc\",\"controlFamilyStatus\":\"PendingApproval\",\"controls\":[{},{},{},{}]}]},{\"categoryName\":\"hnvpamqgxq\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{\"controlFamilyName\":\"ywggx\",\"controlFamilyStatus\":\"Passed\",\"controls\":[{},{}]}]},{\"categoryName\":\"melwuipiccjz\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{\"controlFamilyName\":\"vc\",\"controlFamilyStatus\":\"Passed\",\"controls\":[{},{}]},{\"controlFamilyName\":\"rnxxmueed\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{}]},{\"controlFamilyName\":\"tkwqqtchealm\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{}]}]}]}") - .toObject(ComplianceResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ComplianceResult model = new ComplianceResult(); - model = BinaryData.fromObject(model).toObject(ComplianceResult.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlFamilyTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlFamilyTests.java deleted file mode 100644 index 08fc216f43ac..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlFamilyTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ControlFamily; - -public final class ControlFamilyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ControlFamily model = BinaryData.fromString( - "{\"controlFamilyName\":\"xkqjnsjervt\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"sz\",\"controlName\":\"mpsbzkfzbeyv\",\"controlFullName\":\"qi\",\"controlDescription\":\"invkjjxdxrbuu\",\"controlDescriptionHyperLink\":\"clewyhm\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{\"responsibilityId\":\"zpof\",\"responsibilityTitle\":\"ckw\",\"responsibilityDescription\":\"zqwhxxbuyqaxzfeq\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"General\",\"failedResourceCount\":621148688,\"totalResourceCount\":1270431726,\"resourceList\":[{},{},{}],\"recommendationList\":[{},{}],\"guidance\":\"ncwsob\",\"justification\":\"csdbnwdcfhuc\",\"evidenceFiles\":[\"fuvglsbjjca\",\"vxb\",\"t\"]}]},{\"controlId\":\"dut\",\"controlName\":\"ormrlxqtvcofudfl\",\"controlFullName\":\"gj\",\"controlDescription\":\"gdknnqv\",\"controlDescriptionHyperLink\":\"znqntoru\",\"controlStatus\":\"PendingApproval\",\"responsibilities\":[{\"responsibilityId\":\"mkycgra\",\"responsibilityTitle\":\"juetaebur\",\"responsibilityDescription\":\"dmovsm\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"PendingApproval\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":1154493453,\"totalResourceCount\":1641212216,\"resourceList\":[{}],\"recommendationList\":[{},{}],\"guidance\":\"u\",\"justification\":\"jmqlgkfb\",\"evidenceFiles\":[\"oaongbjc\",\"tujitcjedft\"]}]}]}") - .toObject(ControlFamily.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlFamily model = new ControlFamily(); - model = BinaryData.fromObject(model).toObject(ControlFamily.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlSyncRecordTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlSyncRecordTests.java deleted file mode 100644 index 5c5946b50b53..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlSyncRecordTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ControlSyncRecord; -import org.junit.jupiter.api.Assertions; - -public final class ControlSyncRecordTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ControlSyncRecord model = BinaryData.fromString("{\"controlId\":\"e\",\"controlStatus\":\"noae\"}") - .toObject(ControlSyncRecord.class); - Assertions.assertEquals("e", model.controlId()); - Assertions.assertEquals("noae", model.controlStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlSyncRecord model = new ControlSyncRecord().withControlId("e").withControlStatus("noae"); - model = BinaryData.fromObject(model).toObject(ControlSyncRecord.class); - Assertions.assertEquals("e", model.controlId()); - Assertions.assertEquals("noae", model.controlStatus()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlTests.java deleted file mode 100644 index d4b34bb725ef..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.Control; - -public final class ControlTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Control model = BinaryData.fromString( - "{\"controlId\":\"ae\",\"controlName\":\"ojvdcpzfoqo\",\"controlFullName\":\"cybxa\",\"controlDescription\":\"gszufoxciqopid\",\"controlDescriptionHyperLink\":\"mciodhkhazxkhn\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{\"responsibilityId\":\"ntoe\",\"responsibilityTitle\":\"kdwbwhkszz\",\"responsibilityDescription\":\"rvexztvb\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"Failed\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":1573760550,\"totalResourceCount\":1614629592,\"resourceList\":[{\"resourceId\":\"mnguxawqaldsyu\",\"accountId\":\"imerqfobwyznk\",\"resourceType\":\"kutwpf\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-06-27T09:44:07Z\",\"recommendationIds\":[\"dsnfdsdoakgtdl\",\"kkze\",\"dlhewp\",\"sdsttwvog\"]},{\"resourceId\":\"bejdcn\",\"accountId\":\"qmoa\",\"resourceType\":\"fgmjzrwrdgrt\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-09-26T20:30:12Z\",\"recommendationIds\":[\"pbminr\",\"dwoyuhhziuiefoz\",\"hdmsmlmzqhoftrm\"]}],\"recommendationList\":[{\"recommendationId\":\"iahxicsl\",\"recommendationShortName\":\"oqzpiyylha\",\"recommendationSolutions\":[{},{},{}]}],\"guidance\":\"hc\",\"justification\":\"ph\",\"evidenceFiles\":[\"vwitqscyw\",\"ggwoluhczb\",\"emh\",\"i\"]},{\"responsibilityId\":\"brgz\",\"responsibilityTitle\":\"msweypqwdxggicc\",\"responsibilityDescription\":\"xqhuexm\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"General\",\"failedResourceCount\":596743052,\"totalResourceCount\":1168209336,\"resourceList\":[{\"resourceId\":\"ncsdtclusiyp\",\"accountId\":\"fgytguslfeadcyg\",\"resourceType\":\"kyhejhzisxgf\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-05-16T06:26:11Z\",\"recommendationIds\":[\"srp\",\"vu\"]},{\"resourceId\":\"raehtwdwrft\",\"accountId\":\"iby\",\"resourceType\":\"dl\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-04-24T14:19:46Z\",\"recommendationIds\":[\"cstwity\",\"hevxcced\",\"pnmdyodnwzxltjcv\"]}],\"recommendationList\":[{\"recommendationId\":\"iugcxnavvwxq\",\"recommendationShortName\":\"y\",\"recommendationSolutions\":[{},{},{},{}]},{\"recommendationId\":\"owx\",\"recommendationShortName\":\"mdjrkvfgbvfvp\",\"recommendationSolutions\":[{},{}]},{\"recommendationId\":\"acizsjqlhkrr\",\"recommendationShortName\":\"deibqip\",\"recommendationSolutions\":[{},{},{},{}]}],\"guidance\":\"vxndz\",\"justification\":\"krefajpjo\",\"evidenceFiles\":[\"qnyhgb\",\"j\"]}]}") - .toObject(Control.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Control model = new Control(); - model = BinaryData.fromObject(model).toObject(Control.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseComplianceDetailedPdfReportTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseComplianceDetailedPdfReportTests.java deleted file mode 100644 index 5b631a67084d..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseComplianceDetailedPdfReportTests.java +++ /dev/null @@ -1,16 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.DownloadResponseComplianceDetailedPdfReport; - -public final class DownloadResponseComplianceDetailedPdfReportTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DownloadResponseComplianceDetailedPdfReport model = BinaryData.fromString("{\"sasUri\":\"fdntwjchrdgoih\"}") - .toObject(DownloadResponseComplianceDetailedPdfReport.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseCompliancePdfReportTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseCompliancePdfReportTests.java deleted file mode 100644 index 3809a7e2b41f..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseCompliancePdfReportTests.java +++ /dev/null @@ -1,16 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.DownloadResponseCompliancePdfReport; - -public final class DownloadResponseCompliancePdfReportTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DownloadResponseCompliancePdfReport model = BinaryData.fromString("{\"sasUri\":\"htywubxcbihwq\"}") - .toObject(DownloadResponseCompliancePdfReport.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseInnerTests.java deleted file mode 100644 index 6cdb2469f117..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseInnerTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.DownloadResponseInner; - -public final class DownloadResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DownloadResponseInner model = BinaryData.fromString( - "{\"resourceList\":[{\"subscriptionId\":\"dgszywkbirryuzh\",\"resourceGroup\":\"kj\",\"resourceType\":\"rvqqaatj\",\"resourceId\":\"rv\"},{\"subscriptionId\":\"upmfiibfg\",\"resourceGroup\":\"ioolvrwxkvtkkgll\",\"resourceType\":\"jygvjayvbl\",\"resourceId\":\"vkzuhbxvvyhgso\"},{\"subscriptionId\":\"yrqufegxuvwz\",\"resourceGroup\":\"nhlmctlpdng\",\"resourceType\":\"vgbmhr\",\"resourceId\":\"kw\"}],\"complianceReport\":[{\"categoryName\":\"ejvegrhbpnaixex\",\"controlFamilyName\":\"b\",\"controlId\":\"eaxhcexdrrvqahqk\",\"controlName\":\"tpwijnh\",\"controlStatus\":\"NotApplicable\",\"responsibilityTitle\":\"f\",\"responsibilityDescription\":\"xzb\",\"resourceId\":\"oowvrv\",\"resourceType\":\"gjqppy\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-12-06T04:33:25Z\"},{\"categoryName\":\"yhgfipnsx\",\"controlFamilyName\":\"cwaekrrjre\",\"controlId\":\"xt\",\"controlName\":\"umh\",\"controlStatus\":\"Passed\",\"responsibilityTitle\":\"kkxwslol\",\"responsibilityDescription\":\"pvuzlmv\",\"resourceId\":\"lfktgplcrpwjxe\",\"resourceType\":\"oi\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-03-28T01:41:30Z\"},{\"categoryName\":\"kpnb\",\"controlFamilyName\":\"zejjoqk\",\"controlId\":\"fhsxttaugz\",\"controlName\":\"faazpxdtnkdmkqjj\",\"controlStatus\":\"Failed\",\"responsibilityTitle\":\"nvrk\",\"responsibilityDescription\":\"ou\",\"resourceId\":\"bre\",\"resourceType\":\"aays\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-12-05T00:29:49Z\"}],\"compliancePdfReport\":{\"sasUri\":\"tezlwff\"},\"complianceDetailedPdfReport\":{\"sasUri\":\"kpj\"}}") - .toObject(DownloadResponseInner.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadRequestTests.java deleted file mode 100644 index bcd31ba194e9..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceFileDownloadRequest; -import org.junit.jupiter.api.Assertions; - -public final class EvidenceFileDownloadRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EvidenceFileDownloadRequest model - = BinaryData.fromString("{\"reportCreatorTenantId\":\"eoveilovnotyf\",\"offerGuid\":\"cnjbkcnxdhbt\"}") - .toObject(EvidenceFileDownloadRequest.class); - Assertions.assertEquals("eoveilovnotyf", model.reportCreatorTenantId()); - Assertions.assertEquals("cnjbkcnxdhbt", model.offerGuid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EvidenceFileDownloadRequest model = new EvidenceFileDownloadRequest().withReportCreatorTenantId("eoveilovnotyf") - .withOfferGuid("cnjbkcnxdhbt"); - model = BinaryData.fromObject(model).toObject(EvidenceFileDownloadRequest.class); - Assertions.assertEquals("eoveilovnotyf", model.reportCreatorTenantId()); - Assertions.assertEquals("cnjbkcnxdhbt", model.offerGuid()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseEvidenceFileTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseEvidenceFileTests.java deleted file mode 100644 index db1da64d86d7..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseEvidenceFileTests.java +++ /dev/null @@ -1,16 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceFileDownloadResponseEvidenceFile; - -public final class EvidenceFileDownloadResponseEvidenceFileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EvidenceFileDownloadResponseEvidenceFile model = BinaryData.fromString("{\"url\":\"pnvjtoqnermclf\"}") - .toObject(EvidenceFileDownloadResponseEvidenceFile.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseInnerTests.java deleted file mode 100644 index b054f5f295ec..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseInnerTests.java +++ /dev/null @@ -1,16 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.EvidenceFileDownloadResponseInner; - -public final class EvidenceFileDownloadResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EvidenceFileDownloadResponseInner model = BinaryData.fromString("{\"evidenceFile\":{\"url\":\"h\"}}") - .toObject(EvidenceFileDownloadResponseInner.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencePropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencePropertiesTests.java deleted file mode 100644 index 58b57aa2c30c..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencePropertiesTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType; -import org.junit.jupiter.api.Assertions; - -public final class EvidencePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EvidenceProperties model = BinaryData.fromString( - "{\"evidenceType\":\"Data\",\"filePath\":\"htldwk\",\"extraData\":\"xuutkncwscwsv\",\"controlId\":\"otogtwrupqs\",\"responsibilityId\":\"nmic\",\"provisioningState\":\"Failed\"}") - .toObject(EvidenceProperties.class); - Assertions.assertEquals(EvidenceType.DATA, model.evidenceType()); - Assertions.assertEquals("htldwk", model.filePath()); - Assertions.assertEquals("xuutkncwscwsv", model.extraData()); - Assertions.assertEquals("otogtwrupqs", model.controlId()); - Assertions.assertEquals("nmic", model.responsibilityId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EvidenceProperties model = new EvidenceProperties().withEvidenceType(EvidenceType.DATA) - .withFilePath("htldwk") - .withExtraData("xuutkncwscwsv") - .withControlId("otogtwrupqs") - .withResponsibilityId("nmic"); - model = BinaryData.fromObject(model).toObject(EvidenceProperties.class); - Assertions.assertEquals(EvidenceType.DATA, model.evidenceType()); - Assertions.assertEquals("htldwk", model.filePath()); - Assertions.assertEquals("xuutkncwscwsv", model.extraData()); - Assertions.assertEquals("otogtwrupqs", model.controlId()); - Assertions.assertEquals("nmic", model.responsibilityId()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceInnerTests.java deleted file mode 100644 index f4001b1d6050..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.EvidenceResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType; -import org.junit.jupiter.api.Assertions; - -public final class EvidenceResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EvidenceResourceInner model = BinaryData.fromString( - "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"ighxpk\",\"extraData\":\"zb\",\"controlId\":\"uebbaumnyqup\",\"responsibilityId\":\"eojnabc\",\"provisioningState\":\"Deleting\"},\"id\":\"txp\",\"name\":\"ie\",\"type\":\"tfhvpesapskrdqmh\"}") - .toObject(EvidenceResourceInner.class); - Assertions.assertEquals(EvidenceType.DATA, model.properties().evidenceType()); - Assertions.assertEquals("ighxpk", model.properties().filePath()); - Assertions.assertEquals("zb", model.properties().extraData()); - Assertions.assertEquals("uebbaumnyqup", model.properties().controlId()); - Assertions.assertEquals("eojnabc", model.properties().responsibilityId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EvidenceResourceInner model - = new EvidenceResourceInner().withProperties(new EvidenceProperties().withEvidenceType(EvidenceType.DATA) - .withFilePath("ighxpk") - .withExtraData("zb") - .withControlId("uebbaumnyqup") - .withResponsibilityId("eojnabc")); - model = BinaryData.fromObject(model).toObject(EvidenceResourceInner.class); - Assertions.assertEquals(EvidenceType.DATA, model.properties().evidenceType()); - Assertions.assertEquals("ighxpk", model.properties().filePath()); - Assertions.assertEquals("zb", model.properties().extraData()); - Assertions.assertEquals("uebbaumnyqup", model.properties().controlId()); - Assertions.assertEquals("eojnabc", model.properties().responsibilityId()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceListResultTests.java deleted file mode 100644 index 60190f301984..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceListResultTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceResourceListResult; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType; -import org.junit.jupiter.api.Assertions; - -public final class EvidenceResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EvidenceResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"pzxbz\",\"extraData\":\"zabglcuhxwt\",\"controlId\":\"yqiklbbovplwzb\",\"responsibilityId\":\"gy\",\"provisioningState\":\"Verifying\"},\"id\":\"svmkfssxquk\",\"name\":\"fpl\",\"type\":\"mg\"}],\"nextLink\":\"nkjzkdeslpvlop\"}") - .toObject(EvidenceResourceListResult.class); - Assertions.assertEquals(EvidenceType.DATA, model.value().get(0).properties().evidenceType()); - Assertions.assertEquals("pzxbz", model.value().get(0).properties().filePath()); - Assertions.assertEquals("zabglcuhxwt", model.value().get(0).properties().extraData()); - Assertions.assertEquals("yqiklbbovplwzb", model.value().get(0).properties().controlId()); - Assertions.assertEquals("gy", model.value().get(0).properties().responsibilityId()); - Assertions.assertEquals("nkjzkdeslpvlop", model.nextLink()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesCreateOrUpdateWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index cdaa18d081dd..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,53 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.EvidenceResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceResource; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class EvidencesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"udchxgsrboldforo\",\"extraData\":\"jlvizbfhfovva\",\"controlId\":\"pbt\",\"responsibilityId\":\"dxe\",\"provisioningState\":\"Updating\"},\"id\":\"belawumuaslzkwr\",\"name\":\"woycqucwyha\",\"type\":\"nomdrkywuhpsv\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - EvidenceResource response = manager.evidences() - .createOrUpdateWithResponse("zlrpiqywncvj", "szcofizeht", - new EvidenceResourceInner() - .withProperties(new EvidenceProperties().withEvidenceType(EvidenceType.AUTO_COLLECTED_EVIDENCE) - .withFilePath("bjkvreljeamu") - .withExtraData("zmlovuanash") - .withControlId("lpmjerb") - .withResponsibilityId("elvidizozsdbccx")), - "if", "zhmkdasvflyh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(EvidenceType.DATA, response.properties().evidenceType()); - Assertions.assertEquals("udchxgsrboldforo", response.properties().filePath()); - Assertions.assertEquals("jlvizbfhfovva", response.properties().extraData()); - Assertions.assertEquals("pbt", response.properties().controlId()); - Assertions.assertEquals("dxe", response.properties().responsibilityId()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDeleteByResourceGroupWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index d1067b2c1e47..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDeleteByResourceGroupWithResponseMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class EvidencesDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.evidences() - .deleteByResourceGroupWithResponse("uurutlwexxwlalni", "xzsrzpge", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDownloadWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDownloadWithResponseMockTests.java deleted file mode 100644 index e3745e0d29b6..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDownloadWithResponseMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceFileDownloadRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceFileDownloadResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class EvidencesDownloadWithResponseMockTests { - @Test - public void testDownloadWithResponse() throws Exception { - String responseStr = "{\"evidenceFile\":{\"url\":\"rkcxkj\"}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - EvidenceFileDownloadResponse response = manager.evidences() - .downloadWithResponse("q", "yb", - new EvidenceFileDownloadRequest().withReportCreatorTenantId("wpgdak").withOfferGuid("zyvli"), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesGetWithResponseMockTests.java deleted file mode 100644 index 88071dd29625..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceResource; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class EvidencesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"cgq\",\"extraData\":\"ismjqfrddgamqu\",\"controlId\":\"os\",\"responsibilityId\":\"ju\",\"provisioningState\":\"Canceled\"},\"id\":\"disyirnxz\",\"name\":\"czexrxzbujrtrhqv\",\"type\":\"revkhgnlnzo\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - EvidenceResource response = manager.evidences() - .getWithResponse("tmhheioqa", "hvseufuqyrx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(EvidenceType.DATA, response.properties().evidenceType()); - Assertions.assertEquals("cgq", response.properties().filePath()); - Assertions.assertEquals("ismjqfrddgamqu", response.properties().extraData()); - Assertions.assertEquals("os", response.properties().controlId()); - Assertions.assertEquals("ju", response.properties().responsibilityId()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesListByReportMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesListByReportMockTests.java deleted file mode 100644 index cd92656ef38e..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesListByReportMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceResource; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class EvidencesListByReportMockTests { - @Test - public void testListByReport() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"xnmwmqtibxyijddt\",\"extraData\":\"cttadi\",\"controlId\":\"eukmr\",\"responsibilityId\":\"eekpndz\",\"provisioningState\":\"Fixing\"},\"id\":\"udqmeqwigpibudq\",\"name\":\"yxeb\",\"type\":\"ybpmzznrtffyaq\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.evidences() - .listByReport("pteecjme", "slstvasy", 1529136023, "xdza", "mweoohgu", "fuzboyjathwtzolb", "emwmdxmebwjs", - "jpahlxvea", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(EvidenceType.DATA, response.iterator().next().properties().evidenceType()); - Assertions.assertEquals("xnmwmqtibxyijddt", response.iterator().next().properties().filePath()); - Assertions.assertEquals("cttadi", response.iterator().next().properties().extraData()); - Assertions.assertEquals("eukmr", response.iterator().next().properties().controlId()); - Assertions.assertEquals("eekpndz", response.iterator().next().properties().responsibilityId()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountRequestTests.java deleted file mode 100644 index 3b2f4863cc7a..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountRequestTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.GetCollectionCountRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetCollectionCountRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetCollectionCountRequest model - = BinaryData.fromString("{\"type\":\"ycm\"}").toObject(GetCollectionCountRequest.class); - Assertions.assertEquals("ycm", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetCollectionCountRequest model = new GetCollectionCountRequest().withType("ycm"); - model = BinaryData.fromObject(model).toObject(GetCollectionCountRequest.class); - Assertions.assertEquals("ycm", model.type()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountResponseInnerTests.java deleted file mode 100644 index 1e1b831ade58..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountResponseInnerTests.java +++ /dev/null @@ -1,18 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.GetCollectionCountResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class GetCollectionCountResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetCollectionCountResponseInner model - = BinaryData.fromString("{\"count\":501010271}").toObject(GetCollectionCountResponseInner.class); - Assertions.assertEquals(501010271, model.count()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusRequestTests.java deleted file mode 100644 index 1153b24515d6..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusRequestTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.GetOverviewStatusRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetOverviewStatusRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetOverviewStatusRequest model - = BinaryData.fromString("{\"type\":\"bhdxbm\"}").toObject(GetOverviewStatusRequest.class); - Assertions.assertEquals("bhdxbm", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetOverviewStatusRequest model = new GetOverviewStatusRequest().withType("bhdxbm"); - model = BinaryData.fromObject(model).toObject(GetOverviewStatusRequest.class); - Assertions.assertEquals("bhdxbm", model.type()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusResponseInnerTests.java deleted file mode 100644 index 6e928eedce41..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusResponseInnerTests.java +++ /dev/null @@ -1,20 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.GetOverviewStatusResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class GetOverviewStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetOverviewStatusResponseInner model - = BinaryData.fromString("{\"statusList\":[{\"statusName\":\"qj\",\"statusValue\":\"htbmuf\"}]}") - .toObject(GetOverviewStatusResponseInner.class); - Assertions.assertEquals("qj", model.statusList().get(0).statusName()); - Assertions.assertEquals("htbmuf", model.statusList().get(0).statusValue()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsRequestTests.java deleted file mode 100644 index ca19ab9474f7..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsRequestTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ListInUseStorageAccountsRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListInUseStorageAccountsRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListInUseStorageAccountsRequest model - = BinaryData.fromString("{\"subscriptionIds\":[\"qijgkd\",\"bpazlobcufpdzn\",\"btcqq\"]}") - .toObject(ListInUseStorageAccountsRequest.class); - Assertions.assertEquals("qijgkd", model.subscriptionIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListInUseStorageAccountsRequest model = new ListInUseStorageAccountsRequest() - .withSubscriptionIds(Arrays.asList("qijgkd", "bpazlobcufpdzn", "btcqq")); - model = BinaryData.fromObject(model).toObject(ListInUseStorageAccountsRequest.class); - Assertions.assertEquals("qijgkd", model.subscriptionIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsResponseInnerTests.java deleted file mode 100644 index aecd2be2ec9b..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsResponseInnerTests.java +++ /dev/null @@ -1,22 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ListInUseStorageAccountsResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class ListInUseStorageAccountsResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListInUseStorageAccountsResponseInner model = BinaryData.fromString( - "{\"storageAccountList\":[{\"subscriptionId\":\"lhqgnufooojy\",\"resourceGroup\":\"fsqesaagdfmglzlh\",\"accountName\":\"rifkwm\",\"location\":\"ktsizntocipaou\"},{\"subscriptionId\":\"psqucmpoyf\",\"resourceGroup\":\"fogknygjofjdde\",\"accountName\":\"rd\",\"location\":\"pewnw\"}]}") - .toObject(ListInUseStorageAccountsResponseInner.class); - Assertions.assertEquals("lhqgnufooojy", model.storageAccountList().get(0).subscriptionId()); - Assertions.assertEquals("fsqesaagdfmglzlh", model.storageAccountList().get(0).resourceGroup()); - Assertions.assertEquals("rifkwm", model.storageAccountList().get(0).accountName()); - Assertions.assertEquals("ktsizntocipaou", model.storageAccountList().get(0).location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardRequestTests.java deleted file mode 100644 index ddc0188eca9e..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardRequestTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.OnboardRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OnboardRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OnboardRequest model = BinaryData.fromString("{\"subscriptionIds\":[\"kuksjtxukcdm\",\"arcryuanzwuxzdxt\"]}") - .toObject(OnboardRequest.class); - Assertions.assertEquals("kuksjtxukcdm", model.subscriptionIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OnboardRequest model - = new OnboardRequest().withSubscriptionIds(Arrays.asList("kuksjtxukcdm", "arcryuanzwuxzdxt")); - model = BinaryData.fromObject(model).toObject(OnboardRequest.class); - Assertions.assertEquals("kuksjtxukcdm", model.subscriptionIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardResponseInnerTests.java deleted file mode 100644 index c1fbfcf68f39..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardResponseInnerTests.java +++ /dev/null @@ -1,18 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.OnboardResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class OnboardResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OnboardResponseInner model - = BinaryData.fromString("{\"subscriptionIds\":[\"lhmwhfpmrqobm\"]}").toObject(OnboardResponseInner.class); - Assertions.assertEquals("lhmwhfpmrqobm", model.subscriptionIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationDisplayTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationDisplayTests.java deleted file mode 100644 index f4f663448de4..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationDisplayTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.OperationDisplay; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"uuvmkjozkrwfnd\",\"resource\":\"djpslw\",\"operation\":\"dpvwryoqpsoaccta\",\"description\":\"kljla\"}") - .toObject(OperationDisplay.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationInnerTests.java deleted file mode 100644 index 4d5db8e3032a..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationInnerTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.OperationInner; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"jspodmailzyde\",\"isDataAction\":true,\"display\":{\"provider\":\"ahuxinpm\",\"resource\":\"jaqwixjsp\",\"operation\":\"zvcputegjvwmfda\",\"description\":\"cmdv\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") - .toObject(OperationInner.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationListResultTests.java deleted file mode 100644 index 914f6f958801..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationListResultTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.OperationListResult; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"nryrtihf\",\"isDataAction\":true,\"display\":{\"provider\":\"pzvgnwzsymglzufc\",\"resource\":\"kohdbiha\",\"operation\":\"fhfcb\",\"description\":\"s\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"qhabifpikxwcz\",\"isDataAction\":true,\"display\":{\"provider\":\"pqxu\",\"resource\":\"vyq\",\"operation\":\"wby\",\"description\":\"k\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"grtfwvu\",\"isDataAction\":false,\"display\":{\"provider\":\"dcc\",\"resource\":\"h\",\"operation\":\"cnyejhkryhtnapcz\",\"description\":\"okjye\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"pjoxzjnch\"}") - .toObject(OperationListResult.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListMockTests.java deleted file mode 100644 index 8e49e0988171..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListMockTests.java +++ /dev/null @@ -1,36 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"wzf\",\"isDataAction\":true,\"display\":{\"provider\":\"ktlahbqa\",\"resource\":\"xtgzukxitmmqtgqq\",\"operation\":\"hrnxrxc\",\"description\":\"uisavokq\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OverviewStatusTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OverviewStatusTests.java deleted file mode 100644 index 95a5e52fa2d2..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OverviewStatusTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.OverviewStatus; - -public final class OverviewStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OverviewStatus model = BinaryData.fromString( - "{\"passedCount\":1547255739,\"failedCount\":153812125,\"manualCount\":68819251,\"notApplicableCount\":301752241,\"pendingCount\":1451837179}") - .toObject(OverviewStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OverviewStatus model = new OverviewStatus(); - model = BinaryData.fromObject(model).toObject(OverviewStatus.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilityWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index eafc4cae293b..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,44 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityReason; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ProviderActionsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"n\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameAvailabilityResponse response = manager.providerActions() - .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest().withName("avyvnqqyba").withType("euayjkqabqgzsles"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("n", response.message()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountWithResponseMockTests.java deleted file mode 100644 index acf3bba67e39..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountWithResponseMockTests.java +++ /dev/null @@ -1,40 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.GetCollectionCountRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.GetCollectionCountResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ProviderActionsGetCollectionCountWithResponseMockTests { - @Test - public void testGetCollectionCountWithResponse() throws Exception { - String responseStr = "{\"count\":412307551}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GetCollectionCountResponse response = manager.providerActions() - .getCollectionCountWithResponse(new GetCollectionCountRequest().withType("iew"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(412307551, response.count()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusWithResponseMockTests.java deleted file mode 100644 index 424a9f1d2798..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusWithResponseMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.GetOverviewStatusRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.GetOverviewStatusResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ProviderActionsGetOverviewStatusWithResponseMockTests { - @Test - public void testGetOverviewStatusWithResponse() throws Exception { - String responseStr = "{\"statusList\":[{\"statusName\":\"buffkmrqemvvhm\",\"statusValue\":\"drjf\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GetOverviewStatusResponse response = manager.providerActions() - .getOverviewStatusWithResponse(new GetOverviewStatusRequest().withType("bquwrbehw"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("buffkmrqemvvhm", response.statusList().get(0).statusName()); - Assertions.assertEquals("drjf", response.statusList().get(0).statusValue()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsWithResponseMockTests.java deleted file mode 100644 index 152705284e1c..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsWithResponseMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ListInUseStorageAccountsRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.ListInUseStorageAccountsResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ProviderActionsListInUseStorageAccountsWithResponseMockTests { - @Test - public void testListInUseStorageAccountsWithResponse() throws Exception { - String responseStr - = "{\"storageAccountList\":[{\"subscriptionId\":\"aufactkahzovajjz\",\"resourceGroup\":\"xxpshneeku\",\"accountName\":\"gs\",\"location\":\"ubkwdle\"},{\"subscriptionId\":\"d\",\"resourceGroup\":\"tujbazpju\",\"accountName\":\"minyflnorwm\",\"location\":\"vwpklvxwmygdxp\"},{\"subscriptionId\":\"qchiszep\",\"resourceGroup\":\"bjcrxgibbdaxco\",\"accountName\":\"ozauorsukokwb\",\"location\":\"lhlv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ListInUseStorageAccountsResponse response = manager.providerActions() - .listInUseStorageAccountsWithResponse( - new ListInUseStorageAccountsRequest().withSubscriptionIds(Arrays.asList("coebjvewzcj", "nmwcpmgu")), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("aufactkahzovajjz", response.storageAccountList().get(0).subscriptionId()); - Assertions.assertEquals("xxpshneeku", response.storageAccountList().get(0).resourceGroup()); - Assertions.assertEquals("gs", response.storageAccountList().get(0).accountName()); - Assertions.assertEquals("ubkwdle", response.storageAccountList().get(0).location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardMockTests.java deleted file mode 100644 index 0626867a1f81..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.OnboardRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.OnboardResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ProviderActionsOnboardMockTests { - @Test - public void testOnboard() throws Exception { - String responseStr = "{\"subscriptionIds\":[\"hhg\",\"nhxmsi\",\"fomiloxgg\"]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OnboardResponse response - = manager.providerActions() - .onboard( - new OnboardRequest() - .withSubscriptionIds(Arrays.asList("uepzl", "phwzsoldweyuqdu", "vmnnrw", "biorktal")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hhg", response.subscriptionIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationMockTests.java deleted file mode 100644 index 0d7b98f4f639..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.TriggerEvaluationRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.TriggerEvaluationResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ProviderActionsTriggerEvaluationMockTests { - @Test - public void testTriggerEvaluation() throws Exception { - String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-03-10T19:30:54Z\",\"evaluationEndTime\":\"2021-08-21T00:04:31Z\",\"resourceIds\":[\"onmacjekniz\",\"hqvcimpevfgmblr\"],\"quickAssessments\":[{\"resourceId\":\"ywdxsmic\",\"responsibilityId\":\"rwfscjfnynszquj\",\"timestamp\":\"2021-10-09T07:15:09Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"ytibyow\",\"description\":\"lgy\",\"remediationLink\":\"utp\"},{\"resourceId\":\"joxoism\",\"responsibilityId\":\"sbpimlq\",\"timestamp\":\"2021-02-24T02:21:25Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"gxxlxsffgcvizq\",\"description\":\"wlvwlyoupf\",\"remediationLink\":\"bkjubdyhgkfmins\"}]}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerEvaluationResponse response = manager.providerActions() - .triggerEvaluation(new TriggerEvaluationRequest().withResourceIds( - Arrays.asList("fi", "ndieuzaofj", "hvcyyysfg", "otcubi")), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("onmacjekniz", response.properties().resourceIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/QuickAssessmentTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/QuickAssessmentTests.java deleted file mode 100644 index 0a13dd116ddf..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/QuickAssessmentTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.QuickAssessment; - -public final class QuickAssessmentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuickAssessment model = BinaryData.fromString( - "{\"resourceId\":\"jfsmlmbtxhwgfwsr\",\"responsibilityId\":\"wcoezbrhub\",\"timestamp\":\"2021-04-27T23:35:34Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"goo\",\"description\":\"kqfqjbvl\",\"remediationLink\":\"rfmluiqtq\"}") - .toObject(QuickAssessment.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationSolutionTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationSolutionTests.java deleted file mode 100644 index 5509e5b34110..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationSolutionTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.RecommendationSolution; - -public final class RecommendationSolutionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecommendationSolution model = BinaryData.fromString( - "{\"recommendationSolutionIndex\":\"jvcdwxlpqekf\",\"recommendationSolutionContent\":\"khtj\",\"isRecommendSolution\":\"true\"}") - .toObject(RecommendationSolution.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecommendationSolution model = new RecommendationSolution(); - model = BinaryData.fromObject(model).toObject(RecommendationSolution.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationTests.java deleted file mode 100644 index a320db3fde52..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.Recommendation; - -public final class RecommendationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Recommendation model = BinaryData.fromString( - "{\"recommendationId\":\"wygzlvdnkfxusem\",\"recommendationShortName\":\"zrmuhapfcqdps\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"psvuoymgc\",\"recommendationSolutionContent\":\"lvez\",\"isRecommendSolution\":\"true\"},{\"recommendationSolutionIndex\":\"lmfeokerq\",\"recommendationSolutionContent\":\"yhko\",\"isRecommendSolution\":\"true\"},{\"recommendationSolutionIndex\":\"xedk\",\"recommendationSolutionContent\":\"epbqpcrfkbw\",\"isRecommendSolution\":\"false\"}]}") - .toObject(Recommendation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Recommendation model = new Recommendation(); - model = BinaryData.fromObject(model).toObject(Recommendation.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportComplianceStatusTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportComplianceStatusTests.java deleted file mode 100644 index c817493a3080..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportComplianceStatusTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportComplianceStatus; - -public final class ReportComplianceStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportComplianceStatus model = BinaryData.fromString( - "{\"m365\":{\"passedCount\":1569477308,\"failedCount\":393211595,\"manualCount\":1686562636,\"notApplicableCount\":1870427389,\"pendingCount\":148650220}}") - .toObject(ReportComplianceStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReportComplianceStatus model = new ReportComplianceStatus(); - model = BinaryData.fromObject(model).toObject(ReportComplianceStatus.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixResultInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixResultInnerTests.java deleted file mode 100644 index e686a6aac657..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixResultInnerTests.java +++ /dev/null @@ -1,16 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ReportFixResultInner; - -public final class ReportFixResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportFixResultInner model = BinaryData.fromString("{\"result\":\"Succeeded\",\"reason\":\"oxuscrpabgyepsbj\"}") - .toObject(ReportFixResultInner.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPatchPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPatchPropertiesTests.java deleted file mode 100644 index bfe9a83dbd1b..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPatchPropertiesTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportPatchProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReportPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportPatchProperties model = BinaryData.fromString( - "{\"triggerTime\":\"2021-09-20T06:05:50Z\",\"timeZone\":\"ymuctqhjfbebrj\",\"resources\":[{\"resourceId\":\"rfuwutt\",\"resourceType\":\"fvjrbirphxepcy\",\"resourceKind\":\"hfnljkyq\",\"resourceOrigin\":\"GCP\",\"accountId\":\"ujqgidok\"},{\"resourceId\":\"jljyoxgv\",\"resourceType\":\"tbgsncghkj\",\"resourceKind\":\"zz\",\"resourceOrigin\":\"AWS\",\"accountId\":\"htxfvgxbfsmxnehm\"},{\"resourceId\":\"vecxgodebfqkk\",\"resourceType\":\"mpukgriw\",\"resourceKind\":\"zlfbxzpuzycispnq\",\"resourceOrigin\":\"GCP\",\"accountId\":\"gkbrpyyd\"}],\"status\":\"Reviewing\",\"errors\":[\"qqkpikadrg\",\"tqagnbuynh\"],\"tenantId\":\"gg\",\"offerGuid\":\"bfs\",\"nextTriggerTime\":\"2021-09-16T13:37:10Z\",\"lastTriggerTime\":\"2021-05-02T05:08:07Z\",\"subscriptions\":[\"cvpnazzmhjrunmpx\",\"tdbhrbnla\",\"kx\",\"yskpbhen\"],\"complianceStatus\":{\"m365\":{\"passedCount\":2016648328,\"failedCount\":83692384,\"manualCount\":17421119,\"notApplicableCount\":782555579,\"pendingCount\":1863766018}},\"storageInfo\":{\"subscriptionId\":\"lqidyby\",\"resourceGroup\":\"zfcl\",\"accountName\":\"axdbabph\",\"location\":\"rqlfktsthsucocmn\"},\"certRecords\":[{\"offerGuid\":\"t\",\"certificationStatus\":\"twwrqp\",\"ingestionStatus\":\"dckzywbiexz\",\"controls\":[{\"controlId\":\"eaxib\",\"controlStatus\":\"jwbhqwalmuz\"},{\"controlId\":\"xaepdkzjancuxr\",\"controlStatus\":\"wbavxbniwdj\"},{\"controlId\":\"zt\",\"controlStatus\":\"bpg\"}]}],\"provisioningState\":\"Canceled\"}") - .toObject(ReportPatchProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-20T06:05:50Z"), model.triggerTime()); - Assertions.assertEquals("ymuctqhjfbebrj", model.timeZone()); - Assertions.assertEquals("rfuwutt", model.resources().get(0).resourceId()); - Assertions.assertEquals("fvjrbirphxepcy", model.resources().get(0).resourceType()); - Assertions.assertEquals("hfnljkyq", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("ujqgidok", model.resources().get(0).accountId()); - Assertions.assertEquals("bfs", model.offerGuid()); - Assertions.assertEquals("lqidyby", model.storageInfo().subscriptionId()); - Assertions.assertEquals("zfcl", model.storageInfo().resourceGroup()); - Assertions.assertEquals("axdbabph", model.storageInfo().accountName()); - Assertions.assertEquals("rqlfktsthsucocmn", model.storageInfo().location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReportPatchProperties model - = new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-09-20T06:05:50Z")) - .withTimeZone("ymuctqhjfbebrj") - .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("rfuwutt") - .withResourceType("fvjrbirphxepcy") - .withResourceKind("hfnljkyq") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("ujqgidok"), - new ResourceMetadata().withResourceId("jljyoxgv") - .withResourceType("tbgsncghkj") - .withResourceKind("zz") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("htxfvgxbfsmxnehm"), - new ResourceMetadata().withResourceId("vecxgodebfqkk") - .withResourceType("mpukgriw") - .withResourceKind("zlfbxzpuzycispnq") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("gkbrpyyd"))) - .withOfferGuid("bfs") - .withStorageInfo(new StorageInfo().withSubscriptionId("lqidyby") - .withResourceGroup("zfcl") - .withAccountName("axdbabph") - .withLocation("rqlfktsthsucocmn")); - model = BinaryData.fromObject(model).toObject(ReportPatchProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-20T06:05:50Z"), model.triggerTime()); - Assertions.assertEquals("ymuctqhjfbebrj", model.timeZone()); - Assertions.assertEquals("rfuwutt", model.resources().get(0).resourceId()); - Assertions.assertEquals("fvjrbirphxepcy", model.resources().get(0).resourceType()); - Assertions.assertEquals("hfnljkyq", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("ujqgidok", model.resources().get(0).accountId()); - Assertions.assertEquals("bfs", model.offerGuid()); - Assertions.assertEquals("lqidyby", model.storageInfo().subscriptionId()); - Assertions.assertEquals("zfcl", model.storageInfo().resourceGroup()); - Assertions.assertEquals("axdbabph", model.storageInfo().accountName()); - Assertions.assertEquals("rqlfktsthsucocmn", model.storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPropertiesTests.java deleted file mode 100644 index 7e5147153b7d..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPropertiesTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReportPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportProperties model = BinaryData.fromString( - "{\"triggerTime\":\"2021-01-13T20:02:55Z\",\"timeZone\":\"ngxlefgugnxkrxdq\",\"resources\":[{\"resourceId\":\"dt\",\"resourceType\":\"zrvqdr\",\"resourceKind\":\"hjybigehoqfbo\",\"resourceOrigin\":\"AWS\",\"accountId\":\"nyktzlcuiy\"}],\"status\":\"Active\",\"errors\":[\"gndrvynh\",\"gpphrcgyn\",\"ocpecfvmmco\",\"fsxlzevgbmqjqa\"],\"tenantId\":\"y\",\"offerGuid\":\"ivkwlzuvccfwnfnb\",\"nextTriggerTime\":\"2021-04-04T07:21:26Z\",\"lastTriggerTime\":\"2021-04-16T12:59:12Z\",\"subscriptions\":[\"ebxetqgtzxdp\"],\"complianceStatus\":{\"m365\":{\"passedCount\":978126196,\"failedCount\":1208210765,\"manualCount\":588288126,\"notApplicableCount\":1251275830,\"pendingCount\":1993000932}},\"storageInfo\":{\"subscriptionId\":\"wsubisnja\",\"resourceGroup\":\"mngnzscxaqw\",\"accountName\":\"chcbonqvpkvlrxnj\",\"location\":\"seiphe\"},\"certRecords\":[{\"offerGuid\":\"keyyi\",\"certificationStatus\":\"jbdlwtgrhpdjpju\",\"ingestionStatus\":\"sxazjpq\",\"controls\":[{\"controlId\":\"alhbx\",\"controlStatus\":\"e\"}]},{\"offerGuid\":\"zzvdudgwds\",\"certificationStatus\":\"hotwmcynpwlbjnp\",\"ingestionStatus\":\"cftadeh\",\"controls\":[{\"controlId\":\"yfsoppu\",\"controlStatus\":\"esnzwde\"},{\"controlId\":\"avo\",\"controlStatus\":\"zdmohctbqvu\"}]}],\"provisioningState\":\"Failed\"}") - .toObject(ReportProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T20:02:55Z"), model.triggerTime()); - Assertions.assertEquals("ngxlefgugnxkrxdq", model.timeZone()); - Assertions.assertEquals("dt", model.resources().get(0).resourceId()); - Assertions.assertEquals("zrvqdr", model.resources().get(0).resourceType()); - Assertions.assertEquals("hjybigehoqfbo", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("nyktzlcuiy", model.resources().get(0).accountId()); - Assertions.assertEquals("ivkwlzuvccfwnfnb", model.offerGuid()); - Assertions.assertEquals("wsubisnja", model.storageInfo().subscriptionId()); - Assertions.assertEquals("mngnzscxaqw", model.storageInfo().resourceGroup()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.storageInfo().accountName()); - Assertions.assertEquals("seiphe", model.storageInfo().location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReportProperties model = new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-01-13T20:02:55Z")) - .withTimeZone("ngxlefgugnxkrxdq") - .withResources(Arrays.asList(new ResourceMetadata().withResourceId("dt") - .withResourceType("zrvqdr") - .withResourceKind("hjybigehoqfbo") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("nyktzlcuiy"))) - .withOfferGuid("ivkwlzuvccfwnfnb") - .withStorageInfo(new StorageInfo().withSubscriptionId("wsubisnja") - .withResourceGroup("mngnzscxaqw") - .withAccountName("chcbonqvpkvlrxnj") - .withLocation("seiphe")); - model = BinaryData.fromObject(model).toObject(ReportProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T20:02:55Z"), model.triggerTime()); - Assertions.assertEquals("ngxlefgugnxkrxdq", model.timeZone()); - Assertions.assertEquals("dt", model.resources().get(0).resourceId()); - Assertions.assertEquals("zrvqdr", model.resources().get(0).resourceType()); - Assertions.assertEquals("hjybigehoqfbo", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("nyktzlcuiy", model.resources().get(0).accountId()); - Assertions.assertEquals("ivkwlzuvccfwnfnb", model.offerGuid()); - Assertions.assertEquals("wsubisnja", model.storageInfo().subscriptionId()); - Assertions.assertEquals("mngnzscxaqw", model.storageInfo().resourceGroup()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.storageInfo().accountName()); - Assertions.assertEquals("seiphe", model.storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceInnerTests.java deleted file mode 100644 index 11c6683d4296..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceInnerTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ReportResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReportResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportResourceInner model = BinaryData.fromString( - "{\"properties\":{\"triggerTime\":\"2021-08-24T18:20:56Z\",\"timeZone\":\"zafb\",\"resources\":[{\"resourceId\":\"j\",\"resourceType\":\"btoqcjmkljavbqid\",\"resourceKind\":\"ajzyul\",\"resourceOrigin\":\"Azure\",\"accountId\":\"jkrlkhbzhfepg\"},{\"resourceId\":\"gqexzlocxs\",\"resourceType\":\"aierhhb\",\"resourceKind\":\"glu\",\"resourceOrigin\":\"Azure\",\"accountId\":\"tjaodxobnb\"}],\"status\":\"Active\",\"errors\":[\"xo\",\"ajionpimexgstxg\",\"po\"],\"tenantId\":\"maajrmvdjwzrlo\",\"offerGuid\":\"clwhijcoejctbz\",\"nextTriggerTime\":\"2021-04-25T10:37:50Z\",\"lastTriggerTime\":\"2021-02-04T17:33:10Z\",\"subscriptions\":[\"bkbfkgukdkex\",\"ppofmxaxcfjpgdd\"],\"complianceStatus\":{\"m365\":{\"passedCount\":217282590,\"failedCount\":1680873734,\"manualCount\":256483207,\"notApplicableCount\":70113912,\"pendingCount\":805352848}},\"storageInfo\":{\"subscriptionId\":\"dzxibqeojnxqbzvd\",\"resourceGroup\":\"t\",\"accountName\":\"deicbtwnpzao\",\"location\":\"uhrhcffcyddgl\"},\"certRecords\":[{\"offerGuid\":\"jqkwpyeicx\",\"certificationStatus\":\"ciwqvhk\",\"ingestionStatus\":\"xuigdtopbobj\",\"controls\":[{\"controlId\":\"e\",\"controlStatus\":\"a\"}]}],\"provisioningState\":\"Deleting\"},\"id\":\"rzayv\",\"name\":\"t\",\"type\":\"gvdfgiotkftutq\"}") - .toObject(ReportResourceInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T18:20:56Z"), model.properties().triggerTime()); - Assertions.assertEquals("zafb", model.properties().timeZone()); - Assertions.assertEquals("j", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("btoqcjmkljavbqid", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("ajzyul", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AZURE, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("jkrlkhbzhfepg", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("clwhijcoejctbz", model.properties().offerGuid()); - Assertions.assertEquals("dzxibqeojnxqbzvd", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("t", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("deicbtwnpzao", model.properties().storageInfo().accountName()); - Assertions.assertEquals("uhrhcffcyddgl", model.properties().storageInfo().location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReportResourceInner model = new ReportResourceInner() - .withProperties(new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-08-24T18:20:56Z")) - .withTimeZone("zafb") - .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("j") - .withResourceType("btoqcjmkljavbqid") - .withResourceKind("ajzyul") - .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("jkrlkhbzhfepg"), - new ResourceMetadata().withResourceId("gqexzlocxs") - .withResourceType("aierhhb") - .withResourceKind("glu") - .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("tjaodxobnb"))) - .withOfferGuid("clwhijcoejctbz") - .withStorageInfo(new StorageInfo().withSubscriptionId("dzxibqeojnxqbzvd") - .withResourceGroup("t") - .withAccountName("deicbtwnpzao") - .withLocation("uhrhcffcyddgl"))); - model = BinaryData.fromObject(model).toObject(ReportResourceInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T18:20:56Z"), model.properties().triggerTime()); - Assertions.assertEquals("zafb", model.properties().timeZone()); - Assertions.assertEquals("j", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("btoqcjmkljavbqid", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("ajzyul", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AZURE, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("jkrlkhbzhfepg", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("clwhijcoejctbz", model.properties().offerGuid()); - Assertions.assertEquals("dzxibqeojnxqbzvd", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("t", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("deicbtwnpzao", model.properties().storageInfo().accountName()); - Assertions.assertEquals("uhrhcffcyddgl", model.properties().storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceListResultTests.java deleted file mode 100644 index 3af7fcd1e0dc..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceListResultTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResourceListResult; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class ReportResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"triggerTime\":\"2021-06-15T07:28:27Z\",\"timeZone\":\"ryffdfdosy\",\"resources\":[{\"resourceId\":\"xpaojakhmsbz\",\"resourceType\":\"crzevdphlx\",\"resourceKind\":\"lthqtrgqjbp\",\"resourceOrigin\":\"GCP\",\"accountId\":\"inzgvfcj\"}],\"status\":\"Failed\",\"errors\":[\"xjtfelluwfzit\",\"np\"],\"tenantId\":\"fpjkjlxofp\",\"offerGuid\":\"hpf\",\"nextTriggerTime\":\"2021-04-11T06:22:09Z\",\"lastTriggerTime\":\"2021-03-22T14:08:21Z\",\"subscriptions\":[\"nmayhuybb\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1068463715,\"failedCount\":783834227,\"manualCount\":92863061,\"notApplicableCount\":895630833,\"pendingCount\":1290742637}},\"storageInfo\":{\"subscriptionId\":\"iheogna\",\"resourceGroup\":\"zxtheotusivyevcc\",\"accountName\":\"ihnhun\",\"location\":\"wjzrnfygxgisp\"},\"certRecords\":[{\"offerGuid\":\"zfkufubljofx\",\"certificationStatus\":\"ofjaeqjhqjb\",\"ingestionStatus\":\"v\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Updating\"},\"id\":\"lngsntnbybkzgcwr\",\"name\":\"clxxwrljdo\",\"type\":\"skcqvkocrcjd\"},{\"properties\":{\"triggerTime\":\"2021-02-17T07:57Z\",\"timeZone\":\"tnhxbn\",\"resources\":[{\"resourceId\":\"iksqr\",\"resourceType\":\"ssainqpjwnzll\",\"resourceKind\":\"mppeebvmgxs\",\"resourceOrigin\":\"GCP\",\"accountId\":\"qduujitcjczdz\"},{\"resourceId\":\"vndhkrwpdapp\",\"resourceType\":\"bdkvwrwjf\",\"resourceKind\":\"snhu\",\"resourceOrigin\":\"GCP\",\"accountId\":\"tmrldhugjzzdatq\"}],\"status\":\"Active\",\"errors\":[\"geablgphuticndvk\",\"ozwyiftyhxhuro\",\"ftyxolniw\"],\"tenantId\":\"cukjf\",\"offerGuid\":\"iawxklry\",\"nextTriggerTime\":\"2021-07-12T14:06:09Z\",\"lastTriggerTime\":\"2021-10-07T14:36:38Z\",\"subscriptions\":[\"syyp\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1420674387,\"failedCount\":1775066996,\"manualCount\":531743918,\"notApplicableCount\":1838469652,\"pendingCount\":750414718}},\"storageInfo\":{\"subscriptionId\":\"ot\",\"resourceGroup\":\"qgoulznd\",\"accountName\":\"kwy\",\"location\":\"gfgibm\"},\"certRecords\":[{\"offerGuid\":\"keqsrxybzqqedq\",\"certificationStatus\":\"bciqfouflm\",\"ingestionStatus\":\"kzsmodm\",\"controls\":[{},{}]},{\"offerGuid\":\"gpbkwtmut\",\"certificationStatus\":\"qktapspwgcuert\",\"ingestionStatus\":\"kdosvqw\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Verifying\"},\"id\":\"bjf\",\"name\":\"dgmb\",\"type\":\"bexppb\"},{\"properties\":{\"triggerTime\":\"2021-04-11T05:58:57Z\",\"timeZone\":\"q\",\"resources\":[{\"resourceId\":\"ol\",\"resourceType\":\"fpsalgbqu\",\"resourceKind\":\"gjyjgzjaoyfhrtxi\",\"resourceOrigin\":\"Azure\",\"accountId\":\"kujysvlejuvfq\"},{\"resourceId\":\"wrlyxwjkcprb\",\"resourceType\":\"b\",\"resourceKind\":\"jvtbvpyss\",\"resourceOrigin\":\"GCP\",\"accountId\":\"uj\"}],\"status\":\"Disabled\",\"errors\":[\"uouq\",\"prwzwbnguitnwui\"],\"tenantId\":\"a\",\"offerGuid\":\"ufizuckyf\",\"nextTriggerTime\":\"2021-05-30T20:21:31Z\",\"lastTriggerTime\":\"2021-03-02T12:22:29Z\",\"subscriptions\":[\"vzwdzuhtymwis\",\"kfthwxmntei\",\"aop\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1406047285,\"failedCount\":1421667576,\"manualCount\":1039605032,\"notApplicableCount\":779341506,\"pendingCount\":292078453}},\"storageInfo\":{\"subscriptionId\":\"srp\",\"resourceGroup\":\"zidnsezcxtbzsgfy\",\"accountName\":\"sne\",\"location\":\"dwzjeiach\"},\"certRecords\":[{\"offerGuid\":\"flnrosfqpteehzz\",\"certificationStatus\":\"pyqr\",\"ingestionStatus\":\"z\",\"controls\":[{},{},{}]},{\"offerGuid\":\"swjdkirso\",\"certificationStatus\":\"qxhcrmn\",\"ingestionStatus\":\"jtckwhdso\",\"controls\":[{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"jxsqwpgrjbz\",\"name\":\"orcjxvsnby\",\"type\":\"qabnmoc\"}],\"nextLink\":\"ysh\"}") - .toObject(ReportResourceListResult.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T07:28:27Z"), - model.value().get(0).properties().triggerTime()); - Assertions.assertEquals("ryffdfdosy", model.value().get(0).properties().timeZone()); - Assertions.assertEquals("xpaojakhmsbz", model.value().get(0).properties().resources().get(0).resourceId()); - Assertions.assertEquals("crzevdphlx", model.value().get(0).properties().resources().get(0).resourceType()); - Assertions.assertEquals("lthqtrgqjbp", model.value().get(0).properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, - model.value().get(0).properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("inzgvfcj", model.value().get(0).properties().resources().get(0).accountId()); - Assertions.assertEquals("hpf", model.value().get(0).properties().offerGuid()); - Assertions.assertEquals("iheogna", model.value().get(0).properties().storageInfo().subscriptionId()); - Assertions.assertEquals("zxtheotusivyevcc", model.value().get(0).properties().storageInfo().resourceGroup()); - Assertions.assertEquals("ihnhun", model.value().get(0).properties().storageInfo().accountName()); - Assertions.assertEquals("wjzrnfygxgisp", model.value().get(0).properties().storageInfo().location()); - Assertions.assertEquals("ysh", model.nextLink()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourcePatchTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourcePatchTests.java deleted file mode 100644 index 902178a67b56..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourcePatchTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportPatchProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResourcePatch; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReportResourcePatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportResourcePatch model = BinaryData.fromString( - "{\"properties\":{\"triggerTime\":\"2021-05-02T19:00:13Z\",\"timeZone\":\"hltrpmopjmcmatuo\",\"resources\":[{\"resourceId\":\"fu\",\"resourceType\":\"aodsfcpkv\",\"resourceKind\":\"dpuozmyz\",\"resourceOrigin\":\"GCP\",\"accountId\":\"fuaxbe\"},{\"resourceId\":\"yiuokktwh\",\"resourceType\":\"xw\",\"resourceKind\":\"wqsmbsur\",\"resourceOrigin\":\"AWS\",\"accountId\":\"o\"},{\"resourceId\":\"yocf\",\"resourceType\":\"ksymd\",\"resourceKind\":\"stkiiuxhqyud\",\"resourceOrigin\":\"GCP\",\"accountId\":\"qn\"}],\"status\":\"Failed\",\"errors\":[\"vyifqrvkdvjsl\",\"rm\",\"vdfwatkpn\"],\"tenantId\":\"lexxbczwtru\",\"offerGuid\":\"qzbqjvsov\",\"nextTriggerTime\":\"2020-12-29T19:47:48Z\",\"lastTriggerTime\":\"2021-11-07T20:31:54Z\",\"subscriptions\":[\"pkwlhz\",\"obpxjmflbvvn\",\"hrk\",\"ciwwzjuqkhr\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1410521625,\"failedCount\":481973669,\"manualCount\":1163138760,\"notApplicableCount\":627324313,\"pendingCount\":1637974204}},\"storageInfo\":{\"subscriptionId\":\"auu\",\"resourceGroup\":\"jmvxie\",\"accountName\":\"ugidyjrr\",\"location\":\"y\"},\"certRecords\":[{\"offerGuid\":\"e\",\"certificationStatus\":\"sonpclhocohs\",\"ingestionStatus\":\"ev\",\"controls\":[{\"controlId\":\"zfbuhf\",\"controlStatus\":\"faxkffeii\"},{\"controlId\":\"lvmezyvshxmzsbbz\",\"controlStatus\":\"gigr\"}]},{\"offerGuid\":\"burvjxxjnspy\",\"certificationStatus\":\"tko\",\"ingestionStatus\":\"kouknvudwtiu\",\"controls\":[{\"controlId\":\"ngkpocipazy\",\"controlStatus\":\"egukgjnpiucg\"},{\"controlId\":\"evqzntypmrbp\",\"controlStatus\":\"c\"},{\"controlId\":\"qjsdpydnfyhxdeo\",\"controlStatus\":\"zi\"}]},{\"offerGuid\":\"ifsjttgzfbishcb\",\"certificationStatus\":\"ajdeyeamdphaga\",\"ingestionStatus\":\"buxwgip\",\"controls\":[{\"controlId\":\"ow\",\"controlStatus\":\"shwankixzbinje\"},{\"controlId\":\"ttmrywnuzoqf\",\"controlStatus\":\"yqzrnkcqvyxlw\"}]},{\"offerGuid\":\"lsicohoqqnwv\",\"certificationStatus\":\"yav\",\"ingestionStatus\":\"heun\",\"controls\":[{\"controlId\":\"gyxzk\",\"controlStatus\":\"ocukoklyax\"},{\"controlId\":\"onuq\",\"controlStatus\":\"fkbey\"},{\"controlId\":\"wrmjmwvvjektc\",\"controlStatus\":\"enhwlrs\"},{\"controlId\":\"rzpwvlqdqgbiq\",\"controlStatus\":\"ihkaetcktvfc\"}]}],\"provisioningState\":\"Deleting\"}}") - .toObject(ReportResourcePatch.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-02T19:00:13Z"), model.properties().triggerTime()); - Assertions.assertEquals("hltrpmopjmcmatuo", model.properties().timeZone()); - Assertions.assertEquals("fu", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("aodsfcpkv", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("dpuozmyz", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("fuaxbe", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("qzbqjvsov", model.properties().offerGuid()); - Assertions.assertEquals("auu", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("jmvxie", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("ugidyjrr", model.properties().storageInfo().accountName()); - Assertions.assertEquals("y", model.properties().storageInfo().location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReportResourcePatch model = new ReportResourcePatch() - .withProperties(new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-05-02T19:00:13Z")) - .withTimeZone("hltrpmopjmcmatuo") - .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("fu") - .withResourceType("aodsfcpkv") - .withResourceKind("dpuozmyz") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("fuaxbe"), - new ResourceMetadata().withResourceId("yiuokktwh") - .withResourceType("xw") - .withResourceKind("wqsmbsur") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("o"), - new ResourceMetadata().withResourceId("yocf") - .withResourceType("ksymd") - .withResourceKind("stkiiuxhqyud") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("qn"))) - .withOfferGuid("qzbqjvsov") - .withStorageInfo(new StorageInfo().withSubscriptionId("auu") - .withResourceGroup("jmvxie") - .withAccountName("ugidyjrr") - .withLocation("y"))); - model = BinaryData.fromObject(model).toObject(ReportResourcePatch.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-02T19:00:13Z"), model.properties().triggerTime()); - Assertions.assertEquals("hltrpmopjmcmatuo", model.properties().timeZone()); - Assertions.assertEquals("fu", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("aodsfcpkv", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("dpuozmyz", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("fuaxbe", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("qzbqjvsov", model.properties().offerGuid()); - Assertions.assertEquals("auu", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("jmvxie", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("ugidyjrr", model.properties().storageInfo().accountName()); - Assertions.assertEquals("y", model.properties().storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerificationResultInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerificationResultInnerTests.java deleted file mode 100644 index 9a17a61dcac9..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerificationResultInnerTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ReportVerificationResultInner; - -public final class ReportVerificationResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReportVerificationResultInner model - = BinaryData.fromString("{\"result\":\"Failed\",\"reason\":\"ycnunvjsrtk\"}") - .toObject(ReportVerificationResultInner.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCreateOrUpdateMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCreateOrUpdateMockTests.java deleted file mode 100644 index 9cd127315ce8..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ReportResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResource; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-09-04T20:01:09Z\",\"timeZone\":\"s\",\"resources\":[{\"resourceId\":\"nbtgkbugrjqctoj\",\"resourceType\":\"isofieypefojyqd\",\"resourceKind\":\"u\",\"resourceOrigin\":\"AWS\",\"accountId\":\"lcwkhihihlhz\"}],\"status\":\"Active\",\"errors\":[\"bsrgnowc\",\"hfgmvecactxm\",\"oteyowc\"],\"tenantId\":\"qovekqvgqou\",\"offerGuid\":\"fzmpjwyivq\",\"nextTriggerTime\":\"2021-03-25T17:15:32Z\",\"lastTriggerTime\":\"2021-08-25T08:05:15Z\",\"subscriptions\":[\"rfsphuagrt\",\"ikteusqczkvyk\",\"xubyjaffmmfblcqc\",\"ubgq\"],\"complianceStatus\":{\"m365\":{\"passedCount\":75239046,\"failedCount\":2109412730,\"manualCount\":1066879045,\"notApplicableCount\":38344578,\"pendingCount\":1081428420}},\"storageInfo\":{\"subscriptionId\":\"lqxihhrmooiz\",\"resourceGroup\":\"eypxiutcxapzhyr\",\"accountName\":\"togebjoxsl\",\"location\":\"nhl\"},\"certRecords\":[{\"offerGuid\":\"nk\",\"certificationStatus\":\"jcjbt\",\"ingestionStatus\":\"aehvvibrxjjstoq\",\"controls\":[{}]},{\"offerGuid\":\"pkxztmoobkl\",\"certificationStatus\":\"idgfc\",\"ingestionStatus\":\"mpimaqxzhemjyh\",\"controls\":[{}]},{\"offerGuid\":\"swtwkozzwc\",\"certificationStatus\":\"kb\",\"ingestionStatus\":\"pfajnjwltlwtjj\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"hsnvkcdmxzrp\",\"name\":\"aimlnwiaaom\",\"type\":\"l\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReportResource response = manager.reports() - .createOrUpdate("raauzzpt", - new ReportResourceInner() - .withProperties(new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-02-18T00:50:05Z")) - .withTimeZone("zysdzh") - .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("wwvaiqyuvvfonk") - .withResourceType("hqyikvy") - .withResourceKind("uyav") - .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("ncstt"), - new ResourceMetadata().withResourceId("jfybvpoekrsgsgb") - .withResourceType("uzqgnjdgkynsc") - .withResourceKind("qhzvhxnkomt") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("tppn"))) - .withOfferGuid("xvd") - .withStorageInfo(new StorageInfo().withSubscriptionId("xg") - .withResourceGroup("oyxcdyuib") - .withAccountName("fdn") - .withLocation("ydvfvfcjnae"))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals(OffsetDateTime.parse("2021-09-04T20:01:09Z"), response.properties().triggerTime()); - Assertions.assertEquals("s", response.properties().timeZone()); - Assertions.assertEquals("nbtgkbugrjqctoj", response.properties().resources().get(0).resourceId()); - Assertions.assertEquals("isofieypefojyqd", response.properties().resources().get(0).resourceType()); - Assertions.assertEquals("u", response.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, response.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("lcwkhihihlhz", response.properties().resources().get(0).accountId()); - Assertions.assertEquals("fzmpjwyivq", response.properties().offerGuid()); - Assertions.assertEquals("lqxihhrmooiz", response.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("eypxiutcxapzhyr", response.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("togebjoxsl", response.properties().storageInfo().accountName()); - Assertions.assertEquals("nhl", response.properties().storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsFixMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsFixMockTests.java deleted file mode 100644 index b666bd9c9074..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsFixMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportFixResult; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsFixMockTests { - @Test - public void testFix() throws Exception { - String responseStr = "{\"result\":\"Succeeded\",\"reason\":\"svgjrwhryvy\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReportFixResult response = manager.reports().fix("xulcdisdos", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetScopingQuestionsWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetScopingQuestionsWithResponseMockTests.java deleted file mode 100644 index f7eedf91a19a..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetScopingQuestionsWithResponseMockTests.java +++ /dev/null @@ -1,36 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingQuestions; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsGetScopingQuestionsWithResponseMockTests { - @Test - public void testGetScopingQuestionsWithResponse() throws Exception { - String responseStr - = "{\"questions\":[{\"questionId\":\"ccknfnwmbtmvp\",\"superiorQuestionId\":\"jdhttzaefedxi\",\"inputType\":\"MultiSelectDropdownCustom\",\"optionIds\":[\"rphkmcrjdqnsdfz\",\"bg\",\"gkylkdghr\"],\"rules\":[\"PublisherVerification\",\"PublicSOX\",\"AzureApplication\"],\"showSubQuestionsValue\":\"wxezwzhok\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ScopingQuestions response - = manager.reports().getScopingQuestionsWithResponse("ytdc", com.azure.core.util.Context.NONE).getValue(); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetWithResponseMockTests.java deleted file mode 100644 index 302e8dd00865..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetWithResponseMockTests.java +++ /dev/null @@ -1,50 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResource; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-10-13T17:41:15Z\",\"timeZone\":\"cjdx\",\"resources\":[{\"resourceId\":\"bzo\",\"resourceType\":\"culapzwyrpgogtq\",\"resourceKind\":\"pnylb\",\"resourceOrigin\":\"Azure\",\"accountId\":\"lyjt\"},{\"resourceId\":\"vofqzhvfc\",\"resourceType\":\"yfm\",\"resourceKind\":\"uxrkjp\",\"resourceOrigin\":\"Azure\",\"accountId\":\"fzwiivwzjbhyz\"}],\"status\":\"Disabled\",\"errors\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"],\"tenantId\":\"peewchpxlkt\",\"offerGuid\":\"uziycsl\",\"nextTriggerTime\":\"2021-06-28T05:31:47Z\",\"lastTriggerTime\":\"2021-08-14T04:43:23Z\",\"subscriptions\":[\"cktyh\",\"tqedcgzulwm\",\"rqzz\",\"rjvpglydzgkrvqee\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1014603209,\"failedCount\":1266268287,\"manualCount\":108809884,\"notApplicableCount\":479918870,\"pendingCount\":2045022432}},\"storageInfo\":{\"subscriptionId\":\"dmovzvfva\",\"resourceGroup\":\"zqadf\",\"accountName\":\"z\",\"location\":\"iglaecx\"},\"certRecords\":[{\"offerGuid\":\"cokpv\",\"certificationStatus\":\"lqtmldgxob\",\"ingestionStatus\":\"rclnpkc\",\"controls\":[{},{}]}],\"provisioningState\":\"Updating\"},\"id\":\"ykhyawfvjlboxqvk\",\"name\":\"lmxhomdyn\",\"type\":\"dwdigumb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReportResource response - = manager.reports().getWithResponse("msgeivsiykzk", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals(OffsetDateTime.parse("2021-10-13T17:41:15Z"), response.properties().triggerTime()); - Assertions.assertEquals("cjdx", response.properties().timeZone()); - Assertions.assertEquals("bzo", response.properties().resources().get(0).resourceId()); - Assertions.assertEquals("culapzwyrpgogtq", response.properties().resources().get(0).resourceType()); - Assertions.assertEquals("pnylb", response.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AZURE, response.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("lyjt", response.properties().resources().get(0).accountId()); - Assertions.assertEquals("uziycsl", response.properties().offerGuid()); - Assertions.assertEquals("dmovzvfva", response.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("zqadf", response.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("z", response.properties().storageInfo().accountName()); - Assertions.assertEquals("iglaecx", response.properties().storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsListMockTests.java deleted file mode 100644 index f80778236beb..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsListMockTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResource; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"triggerTime\":\"2021-12-03T21:08:29Z\",\"timeZone\":\"loazuruocbgoo\",\"resources\":[{\"resourceId\":\"te\",\"resourceType\":\"bfhjxakvvjgsl\",\"resourceKind\":\"dilmyww\",\"resourceOrigin\":\"AWS\",\"accountId\":\"xnyed\"},{\"resourceId\":\"b\",\"resourceType\":\"vudtjuewbcihx\",\"resourceKind\":\"whcjyxcc\",\"resourceOrigin\":\"AWS\",\"accountId\":\"ayakkudzpx\"}],\"status\":\"Reviewing\",\"errors\":[\"mag\"],\"tenantId\":\"cyohpfkyrkdbd\",\"offerGuid\":\"ogsjkmnwqjno\",\"nextTriggerTime\":\"2021-01-19T13:37:50Z\",\"lastTriggerTime\":\"2021-12-10T12:55:18Z\",\"subscriptions\":[\"viacegfnmntfpmv\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1649759602,\"failedCount\":325051200,\"manualCount\":880683863,\"notApplicableCount\":97692731,\"pendingCount\":91820955}},\"storageInfo\":{\"subscriptionId\":\"lllchpodb\",\"resourceGroup\":\"vwrdnhfukuvsj\",\"accountName\":\"wsmystuluqypf\",\"location\":\"lerchpq\"},\"certRecords\":[{\"offerGuid\":\"jbabwidf\",\"certificationStatus\":\"sspuunnoxyhkx\",\"ingestionStatus\":\"ddrihpf\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Fixing\"},\"id\":\"ewda\",\"name\":\"mdjvlpj\",\"type\":\"xkzb\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.reports() - .list("zivj", 1398349003, "rqttbajlkatnw", "yiopi", "kqqfk", "vscx", "dmligovibrxk", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals(OffsetDateTime.parse("2021-12-03T21:08:29Z"), - response.iterator().next().properties().triggerTime()); - Assertions.assertEquals("loazuruocbgoo", response.iterator().next().properties().timeZone()); - Assertions.assertEquals("te", response.iterator().next().properties().resources().get(0).resourceId()); - Assertions.assertEquals("bfhjxakvvjgsl", - response.iterator().next().properties().resources().get(0).resourceType()); - Assertions.assertEquals("dilmyww", response.iterator().next().properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, - response.iterator().next().properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("xnyed", response.iterator().next().properties().resources().get(0).accountId()); - Assertions.assertEquals("ogsjkmnwqjno", response.iterator().next().properties().offerGuid()); - Assertions.assertEquals("lllchpodb", response.iterator().next().properties().storageInfo().subscriptionId()); - Assertions.assertEquals("vwrdnhfukuvsj", response.iterator().next().properties().storageInfo().resourceGroup()); - Assertions.assertEquals("wsmystuluqypf", response.iterator().next().properties().storageInfo().accountName()); - Assertions.assertEquals("lerchpq", response.iterator().next().properties().storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index 97ae9c85e84b..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,44 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityReason; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests { - @Test - public void testNestedResourceCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"ukkjqnvbroyla\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameAvailabilityResponse response = manager.reports() - .nestedResourceCheckNameAvailabilityWithResponse("brjlnacgcckknhxk", - new CheckNameAvailabilityRequest().withName("v").withType("nrzvuljraaer"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("ukkjqnvbroyla", response.message()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsSyncCertRecordMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsSyncCertRecordMockTests.java deleted file mode 100644 index 542521d1fd7d..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsSyncCertRecordMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.CertSyncRecord; -import com.azure.resourcemanager.appcomplianceautomation.models.ControlSyncRecord; -import com.azure.resourcemanager.appcomplianceautomation.models.SyncCertRecordRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.SyncCertRecordResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsSyncCertRecordMockTests { - @Test - public void testSyncCertRecord() throws Exception { - String responseStr - = "{\"certRecord\":{\"offerGuid\":\"ill\",\"certificationStatus\":\"biqtgdq\",\"ingestionStatus\":\"mcwsldrizetpwb\",\"controls\":[{\"controlId\":\"libph\",\"controlStatus\":\"zmizakakan\"},{\"controlId\":\"p\",\"controlStatus\":\"jzhajoy\"}]}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SyncCertRecordResponse response = manager.reports() - .syncCertRecord("bwnhhtql", - new SyncCertRecordRequest().withCertRecord(new CertSyncRecord().withOfferGuid("hgppipifhpfeoa") - .withCertificationStatus("gcxtxj") - .withIngestionStatus("heafidlt") - .withControls(Arrays - .asList(new ControlSyncRecord().withControlId("esmkssjhoiftxfkf").withControlStatus("gpr")))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ill", response.certRecord().offerGuid()); - Assertions.assertEquals("biqtgdq", response.certRecord().certificationStatus()); - Assertions.assertEquals("mcwsldrizetpwb", response.certRecord().ingestionStatus()); - Assertions.assertEquals("libph", response.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("zmizakakan", response.certRecord().controls().get(0).controlStatus()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsUpdateMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsUpdateMockTests.java deleted file mode 100644 index e12829990278..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsUpdateMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportPatchProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResource; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResourcePatch; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-09-29T03:03:45Z\",\"timeZone\":\"eg\",\"resources\":[{\"resourceId\":\"alzxwhcan\",\"resourceType\":\"moy\",\"resourceKind\":\"lwigdivbkbx\",\"resourceOrigin\":\"GCP\",\"accountId\":\"ajuwas\"},{\"resourceId\":\"vdaeyyguxakjsq\",\"resourceType\":\"zbezkgimsidxasic\",\"resourceKind\":\"yvvjskgfmo\",\"resourceOrigin\":\"GCP\",\"accountId\":\"pqg\"},{\"resourceId\":\"tjeaahhvjhh\",\"resourceType\":\"kzyb\",\"resourceKind\":\"jid\",\"resourceOrigin\":\"GCP\",\"accountId\":\"xkyxvxevblbj\"},{\"resourceId\":\"dnlj\",\"resourceType\":\"geuaulx\",\"resourceKind\":\"smjbnkppxyn\",\"resourceOrigin\":\"Azure\",\"accountId\":\"vxei\"}],\"status\":\"Failed\",\"errors\":[\"lnsrmffe\",\"cxcktpi\",\"merteeammxqiek\"],\"tenantId\":\"zddrt\",\"offerGuid\":\"doj\",\"nextTriggerTime\":\"2021-10-30T06:17:16Z\",\"lastTriggerTime\":\"2021-07-26T15:13:29Z\",\"subscriptions\":[\"efdeesve\",\"uij\"],\"complianceStatus\":{\"m365\":{\"passedCount\":214563643,\"failedCount\":1101105605,\"manualCount\":1728879575,\"notApplicableCount\":2079646623,\"pendingCount\":1491745835}},\"storageInfo\":{\"subscriptionId\":\"wddji\",\"resourceGroup\":\"bxv\",\"accountName\":\"itvtzeexavo\",\"location\":\"fglecdmdqbwp\"},\"certRecords\":[{\"offerGuid\":\"gsfjac\",\"certificationStatus\":\"lhhxudbxvodhtnsi\",\"ingestionStatus\":\"dhzmmesckdlp\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"failcfx\",\"name\":\"m\",\"type\":\"boxdfgsftufq\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReportResource response = manager.reports() - .update("eazulcs", - new ReportResourcePatch().withProperties( - new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-08-08T19:14:03Z")) - .withTimeZone("npjhlfzswpchwahf") - .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("snfepgfewetwlyx") - .withResourceType("cxy") - .withResourceKind("hdjhlimmbcx") - .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("po"), - new ResourceMetadata().withResourceId("xvxcjzhq") - .withResourceType("xfpxtgqscja") - .withResourceKind("t") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("qaz"), - new ResourceMetadata().withResourceId("mtggu") - .withResourceType("ijr") - .withResourceKind("civmmg") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("iwrxgkn"))) - .withOfferGuid("dtutnwldu") - .withStorageInfo(new StorageInfo().withSubscriptionId("xvmhf") - .withResourceGroup("zjyi") - .withAccountName("as") - .withLocation("udypohyuems"))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T03:03:45Z"), response.properties().triggerTime()); - Assertions.assertEquals("eg", response.properties().timeZone()); - Assertions.assertEquals("alzxwhcan", response.properties().resources().get(0).resourceId()); - Assertions.assertEquals("moy", response.properties().resources().get(0).resourceType()); - Assertions.assertEquals("lwigdivbkbx", response.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, response.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("ajuwas", response.properties().resources().get(0).accountId()); - Assertions.assertEquals("doj", response.properties().offerGuid()); - Assertions.assertEquals("wddji", response.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("bxv", response.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("itvtzeexavo", response.properties().storageInfo().accountName()); - Assertions.assertEquals("fglecdmdqbwp", response.properties().storageInfo().location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsVerifyMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsVerifyMockTests.java deleted file mode 100644 index 270546069a55..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsVerifyMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportVerificationResult; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ReportsVerifyMockTests { - @Test - public void testVerify() throws Exception { - String responseStr = "{\"result\":\"Failed\",\"reason\":\"rimrs\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReportVerificationResult response = manager.reports().verify("hjlmu", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceItemTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceItemTests.java deleted file mode 100644 index 92637f863498..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceItemTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceItem; - -public final class ResourceItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceItem model = BinaryData.fromString( - "{\"subscriptionId\":\"qmt\",\"resourceGroup\":\"ltmm\",\"resourceType\":\"hyeozphvwau\",\"resourceId\":\"ncyg\"}") - .toObject(ResourceItem.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceMetadataTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceMetadataTests.java deleted file mode 100644 index df1dac3a56d0..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceMetadataTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata; -import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; -import org.junit.jupiter.api.Assertions; - -public final class ResourceMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceMetadata model = BinaryData.fromString( - "{\"resourceId\":\"dndnvow\",\"resourceType\":\"jjugwdkcglhslaz\",\"resourceKind\":\"yggdtjixh\",\"resourceOrigin\":\"GCP\",\"accountId\":\"fqweykhmene\"}") - .toObject(ResourceMetadata.class); - Assertions.assertEquals("dndnvow", model.resourceId()); - Assertions.assertEquals("jjugwdkcglhslaz", model.resourceType()); - Assertions.assertEquals("yggdtjixh", model.resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resourceOrigin()); - Assertions.assertEquals("fqweykhmene", model.accountId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceMetadata model = new ResourceMetadata().withResourceId("dndnvow") - .withResourceType("jjugwdkcglhslaz") - .withResourceKind("yggdtjixh") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("fqweykhmene"); - model = BinaryData.fromObject(model).toObject(ResourceMetadata.class); - Assertions.assertEquals("dndnvow", model.resourceId()); - Assertions.assertEquals("jjugwdkcglhslaz", model.resourceType()); - Assertions.assertEquals("yggdtjixh", model.resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resourceOrigin()); - Assertions.assertEquals("fqweykhmene", model.accountId()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityResourceTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityResourceTests.java deleted file mode 100644 index aa5a7939960c..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityResourceTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ResponsibilityResource; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResponsibilityResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResponsibilityResource model = BinaryData.fromString( - "{\"resourceId\":\"ho\",\"accountId\":\"qzudphq\",\"resourceType\":\"vdkfwynwcvtbvk\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-07-26T04:06:19Z\",\"recommendationIds\":[\"iatkzwpcnp\",\"zcjaesgvvsccy\",\"jguq\"]}") - .toObject(ResponsibilityResource.class); - Assertions.assertEquals("iatkzwpcnp", model.recommendationIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsibilityResource model - = new ResponsibilityResource().withRecommendationIds(Arrays.asList("iatkzwpcnp", "zcjaesgvvsccy", "jguq")); - model = BinaryData.fromObject(model).toObject(ResponsibilityResource.class); - Assertions.assertEquals("iatkzwpcnp", model.recommendationIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityTests.java deleted file mode 100644 index 99dafc87a99a..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.Responsibility; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResponsibilityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Responsibility model = BinaryData.fromString( - "{\"responsibilityId\":\"ivfxzsjabibsyst\",\"responsibilityTitle\":\"fsdjpvkvp\",\"responsibilityDescription\":\"xbkzbzkdvncj\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"PendingApproval\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":289225140,\"totalResourceCount\":1132320568,\"resourceList\":[{\"resourceId\":\"jk\",\"accountId\":\"fhmouwq\",\"resourceType\":\"zrfze\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-06-13T01:41:31Z\",\"recommendationIds\":[\"yuhqlbjbsybbqwrv\",\"ldgmfpgvmpip\",\"slthaq\"]},{\"resourceId\":\"ss\",\"accountId\":\"u\",\"resourceType\":\"bdsrez\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-09-12T22:52:28Z\",\"recommendationIds\":[\"wqkdwytisibi\",\"cgpik\",\"zimejzanlfzx\"]}],\"recommendationList\":[{\"recommendationId\":\"mbzonokix\",\"recommendationShortName\":\"q\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"zpfrla\",\"recommendationSolutionContent\":\"zrnw\",\"isRecommendSolution\":\"false\"}]},{\"recommendationId\":\"dfpwpjylwbtlhfls\",\"recommendationShortName\":\"dhszfjv\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"feljagrqm\",\"recommendationSolutionContent\":\"ldvriiiojnalghfk\",\"isRecommendSolution\":\"false\"},{\"recommendationSolutionIndex\":\"ex\",\"recommendationSolutionContent\":\"wueluqhhahhxv\",\"isRecommendSolution\":\"true\"}]}],\"guidance\":\"kwpjgwwspughftqs\",\"justification\":\"qxujxukndxd\",\"evidenceFiles\":[\"jguufzdm\",\"yqtfihwh\",\"otzi\",\"gamv\"]}") - .toObject(Responsibility.class); - Assertions.assertEquals(289225140, model.failedResourceCount()); - Assertions.assertEquals(1132320568, model.totalResourceCount()); - Assertions.assertEquals("jguufzdm", model.evidenceFiles().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Responsibility model = new Responsibility().withFailedResourceCount(289225140) - .withTotalResourceCount(1132320568) - .withEvidenceFiles(Arrays.asList("jguufzdm", "yqtfihwh", "otzi", "gamv")); - model = BinaryData.fromObject(model).toObject(Responsibility.class); - Assertions.assertEquals(289225140, model.failedResourceCount()); - Assertions.assertEquals(1132320568, model.totalResourceCount()); - Assertions.assertEquals("jguufzdm", model.evidenceFiles().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingAnswerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingAnswerTests.java deleted file mode 100644 index 09b7b1243eed..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingAnswerTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingAnswer; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ScopingAnswerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScopingAnswer model = BinaryData.fromString("{\"questionId\":\"btdhxujznbm\",\"answers\":[\"wuwprzqlv\"]}") - .toObject(ScopingAnswer.class); - Assertions.assertEquals("btdhxujznbm", model.questionId()); - Assertions.assertEquals("wuwprzqlv", model.answers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScopingAnswer model = new ScopingAnswer().withQuestionId("btdhxujznbm").withAnswers(Arrays.asList("wuwprzqlv")); - model = BinaryData.fromObject(model).toObject(ScopingAnswer.class); - Assertions.assertEquals("btdhxujznbm", model.questionId()); - Assertions.assertEquals("wuwprzqlv", model.answers().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationPropertiesTests.java deleted file mode 100644 index 9980d91093f4..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationPropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingAnswer; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ScopingConfigurationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScopingConfigurationProperties model = BinaryData.fromString( - "{\"answers\":[{\"questionId\":\"ooxdjebwpuc\",\"answers\":[\"fvovbvmeuecivy\",\"zceuojgjrw\"]},{\"questionId\":\"ueiotwmcdyt\",\"answers\":[\"wit\"]},{\"questionId\":\"nrjawgqwg\",\"answers\":[\"ni\",\"kxfbkpycgklwndn\",\"jdauwhvy\"]}],\"provisioningState\":\"Failed\"}") - .toObject(ScopingConfigurationProperties.class); - Assertions.assertEquals("ooxdjebwpuc", model.answers().get(0).questionId()); - Assertions.assertEquals("fvovbvmeuecivy", model.answers().get(0).answers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScopingConfigurationProperties model = new ScopingConfigurationProperties().withAnswers(Arrays.asList( - new ScopingAnswer().withQuestionId("ooxdjebwpuc") - .withAnswers(Arrays.asList("fvovbvmeuecivy", "zceuojgjrw")), - new ScopingAnswer().withQuestionId("ueiotwmcdyt").withAnswers(Arrays.asList("wit")), - new ScopingAnswer().withQuestionId("nrjawgqwg") - .withAnswers(Arrays.asList("ni", "kxfbkpycgklwndn", "jdauwhvy")))); - model = BinaryData.fromObject(model).toObject(ScopingConfigurationProperties.class); - Assertions.assertEquals("ooxdjebwpuc", model.answers().get(0).questionId()); - Assertions.assertEquals("fvovbvmeuecivy", model.answers().get(0).answers().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceInnerTests.java deleted file mode 100644 index 87d26e1a32fa..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceInnerTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ScopingConfigurationResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingAnswer; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ScopingConfigurationResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScopingConfigurationResourceInner model = BinaryData.fromString( - "{\"properties\":{\"answers\":[{\"questionId\":\"adm\",\"answers\":[\"rcrgvx\"]},{\"questionId\":\"vgomz\",\"answers\":[\"misgwbnb\",\"e\"]}],\"provisioningState\":\"Failed\"},\"id\":\"k\",\"name\":\"baliourqhakauha\",\"type\":\"hsfwxosowzxcug\"}") - .toObject(ScopingConfigurationResourceInner.class); - Assertions.assertEquals("adm", model.properties().answers().get(0).questionId()); - Assertions.assertEquals("rcrgvx", model.properties().answers().get(0).answers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScopingConfigurationResourceInner model - = new ScopingConfigurationResourceInner().withProperties(new ScopingConfigurationProperties().withAnswers( - Arrays.asList(new ScopingAnswer().withQuestionId("adm").withAnswers(Arrays.asList("rcrgvx")), - new ScopingAnswer().withQuestionId("vgomz").withAnswers(Arrays.asList("misgwbnb", "e"))))); - model = BinaryData.fromObject(model).toObject(ScopingConfigurationResourceInner.class); - Assertions.assertEquals("adm", model.properties().answers().get(0).questionId()); - Assertions.assertEquals("rcrgvx", model.properties().answers().get(0).answers().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceListResultTests.java deleted file mode 100644 index cd85dac5c8b5..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceListResultTests.java +++ /dev/null @@ -1,22 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationResourceListResult; -import org.junit.jupiter.api.Assertions; - -public final class ScopingConfigurationResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScopingConfigurationResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"answers\":[{\"questionId\":\"nwbmeh\",\"answers\":[\"eyvjusrtslhspkde\",\"maofmxagkv\"]}],\"provisioningState\":\"Canceled\"},\"id\":\"mqkrhahvljuahaqu\",\"name\":\"c\",\"type\":\"hmdua\"}],\"nextLink\":\"exq\"}") - .toObject(ScopingConfigurationResourceListResult.class); - Assertions.assertEquals("nwbmeh", model.value().get(0).properties().answers().get(0).questionId()); - Assertions.assertEquals("eyvjusrtslhspkde", - model.value().get(0).properties().answers().get(0).answers().get(0)); - Assertions.assertEquals("exq", model.nextLink()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsCreateOrUpdateWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 1c12e46867f4..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ScopingConfigurationResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingAnswer; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationProperties; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ScopingConfigurationsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"answers\":[{\"questionId\":\"jh\",\"answers\":[\"g\",\"xhcmavmqfoudo\",\"hcgyyprotwyp\",\"ndm\"]},{\"questionId\":\"xhugcm\",\"answers\":[\"avlg\"]},{\"questionId\":\"rb\",\"answers\":[\"tp\",\"dtzfjltfvnzcy\",\"t\",\"tpvopvpbdb\"]},{\"questionId\":\"qgqqihedsvqwthmk\",\"answers\":[\"bcysih\",\"gqcwdhohsdtmc\",\"zsu\"]}],\"provisioningState\":\"Fixing\"},\"id\":\"dxbzlmcmuap\",\"name\":\"vhdbevwqqxey\",\"type\":\"ko\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ScopingConfigurationResource response = manager.scopingConfigurations() - .createOrUpdateWithResponse("eebtijvacvb", "qzbqqxlajrnwxa", - new ScopingConfigurationResourceInner().withProperties(new ScopingConfigurationProperties() - .withAnswers(Arrays.asList(new ScopingAnswer().withQuestionId("ehjku") - .withAnswers(Arrays.asList("oafgaoql", "faey", "inmfgvxirp", "hriypoqeyhlqhy"))))), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("jh", response.properties().answers().get(0).questionId()); - Assertions.assertEquals("g", response.properties().answers().get(0).answers().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 541e855c6ba3..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.scopingConfigurations() - .deleteByResourceGroupWithResponse("qzinkfkbg", "z", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsGetWithResponseMockTests.java deleted file mode 100644 index d341470de140..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ScopingConfigurationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"answers\":[{\"questionId\":\"uojrngiflr\",\"answers\":[\"asccbiui\",\"zdlyjdfqw\"]},{\"questionId\":\"kyoqufdv\",\"answers\":[\"zslzojhp\",\"tfnmdx\",\"tngfdgugeyzihgr\",\"yui\"]},{\"questionId\":\"absnmfpp\",\"answers\":[\"jee\",\"yhyhsgzfczb\"]}],\"provisioningState\":\"Failed\"},\"id\":\"gbeglqgleo\",\"name\":\"i\",\"type\":\"etnluankrrfx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ScopingConfigurationResource response = manager.scopingConfigurations() - .getWithResponse("ihrraiouaub", "jtlo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("uojrngiflr", response.properties().answers().get(0).questionId()); - Assertions.assertEquals("asccbiui", response.properties().answers().get(0).answers().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsListMockTests.java deleted file mode 100644 index 638315d8d7b6..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsListMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ScopingConfigurationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"answers\":[{\"questionId\":\"suxswqrntvlwijp\",\"answers\":[\"texoqqpwc\",\"yufmhruncuwmq\",\"pkcdqzhlct\",\"dunqnd\"]}],\"provisioningState\":\"Creating\"},\"id\":\"hrqbnjjrcg\",\"name\":\"gydcw\",\"type\":\"oxjumvqqo\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.scopingConfigurations().list("bn", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("suxswqrntvlwijp", - response.iterator().next().properties().answers().get(0).questionId()); - Assertions.assertEquals("texoqqpwc", response.iterator().next().properties().answers().get(0).answers().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionTests.java deleted file mode 100644 index 1e4fdfaaa531..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingQuestion; - -public final class ScopingQuestionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScopingQuestion model = BinaryData.fromString( - "{\"questionId\":\"g\",\"superiorQuestionId\":\"dxyt\",\"inputType\":\"Telephone\",\"optionIds\":[\"yrxvwfudwpznt\",\"hdzhlrqj\",\"hckfrlhrx\",\"bkyvp\"],\"rules\":[\"Required\"],\"showSubQuestionsValue\":\"uzbpzkafku\"}") - .toObject(ScopingQuestion.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionsInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionsInnerTests.java deleted file mode 100644 index 6d1d59612a39..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionsInnerTests.java +++ /dev/null @@ -1,17 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ScopingQuestionsInner; - -public final class ScopingQuestionsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScopingQuestionsInner model = BinaryData.fromString( - "{\"questions\":[{\"questionId\":\"qugxywpmueefjzwf\",\"superiorQuestionId\":\"q\",\"inputType\":\"YesNoNa\",\"optionIds\":[\"dsuyonobgla\"],\"rules\":[\"PublisherVerification\"],\"showSubQuestionsValue\":\"tcc\"}]}") - .toObject(ScopingQuestionsInner.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadRequestTests.java deleted file mode 100644 index 0102b95b6662..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadRequestTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.DownloadType; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotDownloadRequest; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotDownloadRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotDownloadRequest model = BinaryData.fromString( - "{\"reportCreatorTenantId\":\"gwfqatmt\",\"downloadType\":\"CompliancePdfReport\",\"offerGuid\":\"mdvy\"}") - .toObject(SnapshotDownloadRequest.class); - Assertions.assertEquals("gwfqatmt", model.reportCreatorTenantId()); - Assertions.assertEquals(DownloadType.COMPLIANCE_PDF_REPORT, model.downloadType()); - Assertions.assertEquals("mdvy", model.offerGuid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotDownloadRequest model = new SnapshotDownloadRequest().withReportCreatorTenantId("gwfqatmt") - .withDownloadType(DownloadType.COMPLIANCE_PDF_REPORT) - .withOfferGuid("mdvy"); - model = BinaryData.fromObject(model).toObject(SnapshotDownloadRequest.class); - Assertions.assertEquals("gwfqatmt", model.reportCreatorTenantId()); - Assertions.assertEquals(DownloadType.COMPLIANCE_PDF_REPORT, model.downloadType()); - Assertions.assertEquals("mdvy", model.offerGuid()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotPropertiesTests.java deleted file mode 100644 index cc30725a5931..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotPropertiesTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotProperties; - -public final class SnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotProperties model = BinaryData.fromString( - "{\"snapshotName\":\"a\",\"createdAt\":\"2021-05-13T02:02:39Z\",\"provisioningState\":\"Succeeded\",\"reportProperties\":{\"triggerTime\":\"2021-04-20T03:42:41Z\",\"timeZone\":\"fuflrwdmhdlx\",\"resources\":[{\"resourceId\":\"rxsagafcnihgwqa\",\"resourceType\":\"edgfbcvkcvq\",\"resourceKind\":\"keqdcvdrhvoods\",\"resourceOrigin\":\"AWS\",\"accountId\":\"bzdopcj\"}],\"status\":\"Reviewing\",\"errors\":[\"ld\",\"mgxcxrslpm\"],\"tenantId\":\"wuoegrpk\",\"offerGuid\":\"wniyqsluicpd\",\"nextTriggerTime\":\"2021-04-20T03:55Z\",\"lastTriggerTime\":\"2021-06-16T23:24:05Z\",\"subscriptions\":[\"mbmpaxmodfvuefy\",\"sbpfvmwyhr\"],\"complianceStatus\":{\"m365\":{\"passedCount\":386040820,\"failedCount\":892669790,\"manualCount\":1378791233,\"notApplicableCount\":196079656,\"pendingCount\":369562825}},\"storageInfo\":{\"subscriptionId\":\"vqtmnub\",\"resourceGroup\":\"kpzksmondjmq\",\"accountName\":\"vypomgkopkwho\",\"location\":\"pajqgxysm\"},\"certRecords\":[{\"offerGuid\":\"qfqvmkc\",\"certificationStatus\":\"zapvhelx\",\"ingestionStatus\":\"glyatddckcbcuej\",\"controls\":[{\"controlId\":\"ciqibrhosx\",\"controlStatus\":\"qrhzoymibmrqyib\"}]},{\"offerGuid\":\"wfluszdt\",\"certificationStatus\":\"rkwofyyvoqa\",\"ingestionStatus\":\"iexpbtgiwbwo\",\"controls\":[{\"controlId\":\"shrtdtkcnqxwb\",\"controlStatus\":\"kulpiujwaasi\"},{\"controlId\":\"i\",\"controlStatus\":\"byuqerpqlp\"}]}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"gbdbutauv\",\"categories\":[{\"categoryName\":\"uwhhmhykojoxafn\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{},{}]},{\"categoryName\":\"hkoymkcdyhbp\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{},{},{}]},{\"categoryName\":\"eqnovvqfovl\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{}]},{\"categoryName\":\"w\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{},{}]}]},{\"complianceName\":\"sytgadgvraea\",\"categories\":[{\"categoryName\":\"nzar\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{}]}]},{\"complianceName\":\"ijfqkacewiipfp\",\"categories\":[{\"categoryName\":\"bwwift\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{}]}]},{\"complianceName\":\"uvksgplsaknynfsy\",\"categories\":[{\"categoryName\":\"huopxodlqiynto\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{}]},{\"categoryName\":\"osjswsr\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{}]},{\"categoryName\":\"pzbchck\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{},{},{}]}]}]}") - .toObject(SnapshotProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotProperties model = new SnapshotProperties(); - model = BinaryData.fromObject(model).toObject(SnapshotProperties.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceInnerTests.java deleted file mode 100644 index 7477f76bed71..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceInnerTests.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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.SnapshotResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotProperties; - -public final class SnapshotResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotResourceInner model = BinaryData.fromString( - "{\"properties\":{\"snapshotName\":\"ycduier\",\"createdAt\":\"2021-07-05T23:49:12Z\",\"provisioningState\":\"Succeeded\",\"reportProperties\":{\"triggerTime\":\"2021-07-18T12:27:40Z\",\"timeZone\":\"aolps\",\"resources\":[{\"resourceId\":\"qlfmmdnbb\",\"resourceType\":\"zpswiydmc\",\"resourceKind\":\"hzdxssadbzm\",\"resourceOrigin\":\"AWS\",\"accountId\":\"znud\"},{\"resourceId\":\"od\",\"resourceType\":\"zbn\",\"resourceKind\":\"lylpstdb\",\"resourceOrigin\":\"GCP\",\"accountId\":\"rzdzucerscdnt\"}],\"status\":\"Reviewing\",\"errors\":[\"wjmy\",\"tdss\",\"s\"],\"tenantId\":\"mweriofzpy\",\"offerGuid\":\"emwabnet\",\"nextTriggerTime\":\"2021-07-19T10:32:31Z\",\"lastTriggerTime\":\"2021-08-31T12:26:12Z\",\"subscriptions\":[\"d\",\"lvwiwubmwmbesl\",\"nkww\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1624421051,\"failedCount\":799059143,\"manualCount\":1248501015,\"notApplicableCount\":712173581,\"pendingCount\":97204853}},\"storageInfo\":{\"subscriptionId\":\"z\",\"resourceGroup\":\"sikvmkqzeqqkdlt\",\"accountName\":\"xmhhvhgureo\",\"location\":\"wobdagxtibqdx\"},\"certRecords\":[{\"offerGuid\":\"kbogqxndlkzgx\",\"certificationStatus\":\"ripl\",\"ingestionStatus\":\"odxun\",\"controls\":[{},{},{}]},{\"offerGuid\":\"xmubyyntwlrbq\",\"certificationStatus\":\"oievseotgqrlltm\",\"ingestionStatus\":\"lauwzizxbmpgcjef\",\"controls\":[{}]},{\"offerGuid\":\"vpbttd\",\"certificationStatus\":\"orppxebmnzbtb\",\"ingestionStatus\":\"pglkf\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Updating\"},\"complianceResults\":[{\"complianceName\":\"fphsdyhtozfikdow\",\"categories\":[{\"categoryName\":\"v\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{},{}]},{\"categoryName\":\"ithhqzon\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{}]}]}]},\"id\":\"c\",\"name\":\"hfwdsjnkaljutiis\",\"type\":\"acffgdkzzewkfvhq\"}") - .toObject(SnapshotResourceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotResourceInner model = new SnapshotResourceInner().withProperties(new SnapshotProperties()); - model = BinaryData.fromObject(model).toObject(SnapshotResourceInner.class); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceListResultTests.java deleted file mode 100644 index 82cbd72e542d..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceListResultTests.java +++ /dev/null @@ -1,19 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotResourceListResult; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"snapshotName\":\"upjm\",\"createdAt\":\"2021-08-12T08:43:21Z\",\"provisioningState\":\"Failed\",\"reportProperties\":{\"triggerTime\":\"2021-03-15T14:14:57Z\",\"timeZone\":\"cswsrtjri\",\"resources\":[{\"resourceId\":\"rbpbewtghfgblcg\"},{\"resourceId\":\"xzvlvqhjkbegib\"},{\"resourceId\":\"nmxiebwwaloayqc\"},{\"resourceId\":\"wrtz\"}],\"status\":\"Active\",\"errors\":[\"yzm\",\"txon\",\"mtsavjcbpwxqp\"],\"tenantId\":\"knftguvriuh\",\"offerGuid\":\"wmdyvxqtay\",\"nextTriggerTime\":\"2021-10-05T16:00:46Z\",\"lastTriggerTime\":\"2021-02-01T07:07:12Z\",\"subscriptions\":[\"qbex\",\"mcqibycnojv\",\"nmefqsgzvahapj\",\"zhpvgqzcjrvxd\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"lxkvu\",\"resourceGroup\":\"hzovawjvzunlut\",\"accountName\":\"n\",\"location\":\"nxipeil\"},\"certRecords\":[{},{}],\"provisioningState\":\"Canceled\"},\"complianceResults\":[{\"complianceName\":\"ultskzbbtdz\",\"categories\":[{},{},{},{}]},{\"complianceName\":\"ekg\",\"categories\":[{},{}]}]},\"id\":\"uh\",\"name\":\"fpbsjyofdxl\",\"type\":\"us\"},{\"properties\":{\"snapshotName\":\"ouwaboekqvkeln\",\"createdAt\":\"2021-02-02T03:25:54Z\",\"provisioningState\":\"Deleting\",\"reportProperties\":{\"triggerTime\":\"2021-07-06T07:16:14Z\",\"timeZone\":\"jsflhhcaalnjix\",\"resources\":[{\"resourceId\":\"xyawj\"},{\"resourceId\":\"yaqcslyjpkiidz\"},{\"resourceId\":\"exznelixhnr\"}],\"status\":\"Reviewing\",\"errors\":[\"hb\",\"xknalaulppg\"],\"tenantId\":\"tpnapnyiropuhpig\",\"offerGuid\":\"gylgqgitxmedjvcs\",\"nextTriggerTime\":\"2021-02-26T17:22:44Z\",\"lastTriggerTime\":\"2021-08-06T07:06Z\",\"subscriptions\":[\"cwzzhxgktr\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"apkteoellwptfdyg\",\"resourceGroup\":\"qbuaceopzfqr\",\"accountName\":\"uaopppcqeq\",\"location\":\"lzdahzxctobgbkdm\"},\"certRecords\":[{},{},{}],\"provisioningState\":\"Creating\"},\"complianceResults\":[{\"complianceName\":\"rcfbunrm\",\"categories\":[{},{}]},{\"complianceName\":\"hkxbpv\",\"categories\":[{}]}]},\"id\":\"hx\",\"name\":\"j\",\"type\":\"n\"},{\"properties\":{\"snapshotName\":\"ivkrtsw\",\"createdAt\":\"2021-05-30T10:12:47Z\",\"provisioningState\":\"Verifying\",\"reportProperties\":{\"triggerTime\":\"2021-10-26T13:42:02Z\",\"timeZone\":\"jfauvjfdxxi\",\"resources\":[{\"resourceId\":\"tvtc\"}],\"status\":\"Active\",\"errors\":[\"oqmcbxvwvxyslq\",\"hsfxoblytkb\",\"mpew\",\"wfbkrvrns\"],\"tenantId\":\"hqjohxcrsbfova\",\"offerGuid\":\"ruvw\",\"nextTriggerTime\":\"2021-07-10T06:08:41Z\",\"lastTriggerTime\":\"2021-03-07T17:24:46Z\",\"subscriptions\":[\"bcgjbirxbp\",\"bsrfbj\",\"dtws\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"pvjzbe\",\"resourceGroup\":\"l\",\"accountName\":\"nfqqnvwp\",\"location\":\"taruoujmkcj\"},\"certRecords\":[{},{},{},{}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"n\",\"categories\":[{},{},{}]}]},\"id\":\"gdrjervnaenqpe\",\"name\":\"indoygmifthnzd\",\"type\":\"dslgnayqigynduh\"}],\"nextLink\":\"hqlkthumaqo\"}") - .toObject(SnapshotResourceListResult.class); - Assertions.assertEquals("hqlkthumaqo", model.nextLink()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsDownloadMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsDownloadMockTests.java deleted file mode 100644 index 081eb4c65d41..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsDownloadMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.DownloadResponse; -import com.azure.resourcemanager.appcomplianceautomation.models.DownloadType; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotDownloadRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsDownloadMockTests { - @Test - public void testDownload() throws Exception { - String responseStr - = "{\"resourceList\":[{\"subscriptionId\":\"zjgehkfkim\",\"resourceGroup\":\"ixokffqyin\",\"resourceType\":\"qepqwhixmon\",\"resourceId\":\"shiy\"}],\"complianceReport\":[{\"categoryName\":\"lfcldu\",\"controlFamilyName\":\"birdsvuwcobiegs\",\"controlId\":\"ninwjizc\",\"controlName\":\"nghgshej\",\"controlStatus\":\"Failed\",\"responsibilityTitle\":\"qmuluxlxqz\",\"responsibilityDescription\":\"ers\",\"resourceId\":\"cucrwnamikze\",\"resourceType\":\"qbsms\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-08-26T22:22:09Z\"},{\"categoryName\":\"okzrus\",\"controlFamilyName\":\"vhczznvfby\",\"controlId\":\"sxjwwixz\",\"controlName\":\"mwmxqhndvnoamld\",\"controlStatus\":\"PendingApproval\",\"responsibilityTitle\":\"ohdjhhflzok\",\"responsibilityDescription\":\"ox\",\"resourceId\":\"lnjetaglt\",\"resourceType\":\"oatftgzpnpbswvef\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-03-21T14:41:15Z\"}],\"compliancePdfReport\":{\"sasUri\":\"ihmipgawtxxpk\"},\"complianceDetailedPdfReport\":{\"sasUri\":\"xcjxgrytfmpcy\"}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DownloadResponse response = manager.snapshots() - .download("nptfujgi", "gaao", - new SnapshotDownloadRequest().withReportCreatorTenantId("ttaqutdew") - .withDownloadType(DownloadType.COMPLIANCE_DETAILED_PDF_REPORT) - .withOfferGuid("swvr"), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsGetWithResponseMockTests.java deleted file mode 100644 index a62674c72865..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsGetWithResponseMockTests.java +++ /dev/null @@ -1,36 +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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"snapshotName\":\"amwabzxrvxcushsp\",\"createdAt\":\"2021-06-11T01:35Z\",\"provisioningState\":\"Verifying\",\"reportProperties\":{\"triggerTime\":\"2021-04-04T03:00:41Z\",\"timeZone\":\"asflvg\",\"resources\":[{\"resourceId\":\"zwywako\",\"resourceType\":\"knsmjblmljhlnymz\",\"resourceKind\":\"qyryuzcbmqqvxm\",\"resourceOrigin\":\"Azure\",\"accountId\":\"tayx\"},{\"resourceId\":\"nsup\",\"resourceType\":\"jlzqnhc\",\"resourceKind\":\"ql\",\"resourceOrigin\":\"Azure\",\"accountId\":\"ibg\"}],\"status\":\"Active\",\"errors\":[\"fyq\",\"nmpqoxwdofdb\",\"iqxeiiqbimht\",\"wwinhehf\"],\"tenantId\":\"ofvwbcb\",\"offerGuid\":\"mbnkb\",\"nextTriggerTime\":\"2021-10-03T15:33:29Z\",\"lastTriggerTime\":\"2021-02-16T20:23:19Z\",\"subscriptions\":[\"ivqiheb\",\"tswbzuwfmd\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1298087244,\"failedCount\":1708780540,\"manualCount\":1824105790,\"notApplicableCount\":2034109305,\"pendingCount\":2073266063}},\"storageInfo\":{\"subscriptionId\":\"sdjubggbqigkxkbs\",\"resourceGroup\":\"gak\",\"accountName\":\"cyrcmjdmspo\",\"location\":\"pv\"},\"certRecords\":[{\"offerGuid\":\"lniofrzgbzje\",\"certificationStatus\":\"st\",\"ingestionStatus\":\"nlvxbcuii\",\"controls\":[{},{}]},{\"offerGuid\":\"wfansnvpdi\",\"certificationStatus\":\"ikostbzbkiwbuqny\",\"ingestionStatus\":\"hzfylsgcrpfbc\",\"controls\":[{},{}]},{\"offerGuid\":\"zcezelfwyfwl\",\"certificationStatus\":\"jwetnpsihcla\",\"ingestionStatus\":\"va\",\"controls\":[{}]}],\"provisioningState\":\"Deleting\"},\"complianceResults\":[{\"complianceName\":\"ztcmwq\",\"categories\":[{},{},{}]},{\"complianceName\":\"xwaxfewzjkj\",\"categories\":[{},{},{}]},{\"complianceName\":\"eqvhpsylkk\",\"categories\":[{},{}]}]},\"id\":\"ffmbmxzjrg\",\"name\":\"wwp\",\"type\":\"jx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SnapshotResource response - = manager.snapshots().getWithResponse("azuawx", "z", com.azure.core.util.Context.NONE).getValue(); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsListMockTests.java deleted file mode 100644 index b70231c60fa9..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsListMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"snapshotName\":\"tmcg\",\"createdAt\":\"2021-04-24T18:57:19Z\",\"provisioningState\":\"Succeeded\",\"reportProperties\":{\"triggerTime\":\"2021-01-11T18:38:59Z\",\"timeZone\":\"lnd\",\"resources\":[{\"resourceId\":\"tutmzl\",\"resourceType\":\"ojlvfhrbbpneqvc\",\"resourceKind\":\"yyurmochpprprsnm\",\"resourceOrigin\":\"AWS\",\"accountId\":\"zejnhl\"},{\"resourceId\":\"kpbz\",\"resourceType\":\"piljhahzvech\",\"resourceKind\":\"bnwieholew\",\"resourceOrigin\":\"Azure\",\"accountId\":\"ubwefqs\"},{\"resourceId\":\"ap\",\"resourceType\":\"tf\",\"resourceKind\":\"rqwexjkmfxapjwog\",\"resourceOrigin\":\"AWS\",\"accountId\":\"bpudcdab\"},{\"resourceId\":\"qwpwyawbzasqbuc\",\"resourceType\":\"gkyexaoguy\",\"resourceKind\":\"p\",\"resourceOrigin\":\"GCP\",\"accountId\":\"ault\"}],\"status\":\"Active\",\"errors\":[\"mfqwa\"],\"tenantId\":\"nqnm\",\"offerGuid\":\"ngz\",\"nextTriggerTime\":\"2021-03-07T06:59:29Z\",\"lastTriggerTime\":\"2021-06-22T01:10:17Z\",\"subscriptions\":[\"wgnyfusfzsvtui\"],\"complianceStatus\":{\"m365\":{\"passedCount\":566108141,\"failedCount\":1502257649,\"manualCount\":961484418,\"notApplicableCount\":388714674,\"pendingCount\":32509021}},\"storageInfo\":{\"subscriptionId\":\"ryxynqnzrd\",\"resourceGroup\":\"ovw\",\"accountName\":\"nptgoeiybba\",\"location\":\"fhvfsl\"},\"certRecords\":[{\"offerGuid\":\"jlrigjkskyrioovz\",\"certificationStatus\":\"sxwaabzm\",\"ingestionStatus\":\"rygznmmaxriz\",\"controls\":[{},{}]},{\"offerGuid\":\"gopxlhslnelxie\",\"certificationStatus\":\"ynllxe\",\"ingestionStatus\":\"crojp\",\"controls\":[{}]}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"tifdwfmvi\",\"categories\":[{}]},{\"complianceName\":\"jbt\",\"categories\":[{}]},{\"complianceName\":\"aglkafhon\",\"categories\":[{},{}]},{\"complianceName\":\"eickpz\",\"categories\":[{}]}]},\"id\":\"pmxelnwcltyje\",\"name\":\"ex\",\"type\":\"mlfmkqs\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.snapshots() - .list("owxeqocljmy", "vkzqk", 1858033886, "eokbze", "ezrxcczurtleipqx", "kwv", "gnzvdfbzdixzm", - "pnodawopqhe", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StatusItemTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StatusItemTests.java deleted file mode 100644 index 9e66b865eace..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StatusItemTests.java +++ /dev/null @@ -1,19 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.StatusItem; -import org.junit.jupiter.api.Assertions; - -public final class StatusItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StatusItem model - = BinaryData.fromString("{\"statusName\":\"wnoi\",\"statusValue\":\"wlrxyb\"}").toObject(StatusItem.class); - Assertions.assertEquals("wnoi", model.statusName()); - Assertions.assertEquals("wlrxyb", model.statusValue()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StorageInfoTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StorageInfoTests.java deleted file mode 100644 index 94adb5f1bd3e..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StorageInfoTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo; -import org.junit.jupiter.api.Assertions; - -public final class StorageInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageInfo model = BinaryData.fromString( - "{\"subscriptionId\":\"itjz\",\"resourceGroup\":\"lusarh\",\"accountName\":\"fcqhsmyurkd\",\"location\":\"lx\"}") - .toObject(StorageInfo.class); - Assertions.assertEquals("itjz", model.subscriptionId()); - Assertions.assertEquals("lusarh", model.resourceGroup()); - Assertions.assertEquals("fcqhsmyurkd", model.accountName()); - Assertions.assertEquals("lx", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageInfo model = new StorageInfo().withSubscriptionId("itjz") - .withResourceGroup("lusarh") - .withAccountName("fcqhsmyurkd") - .withLocation("lx"); - model = BinaryData.fromObject(model).toObject(StorageInfo.class); - Assertions.assertEquals("itjz", model.subscriptionId()); - Assertions.assertEquals("lusarh", model.resourceGroup()); - Assertions.assertEquals("fcqhsmyurkd", model.accountName()); - Assertions.assertEquals("lx", model.location()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordRequestTests.java deleted file mode 100644 index 8e26fd27a833..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordRequestTests.java +++ /dev/null @@ -1,44 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.CertSyncRecord; -import com.azure.resourcemanager.appcomplianceautomation.models.ControlSyncRecord; -import com.azure.resourcemanager.appcomplianceautomation.models.SyncCertRecordRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SyncCertRecordRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SyncCertRecordRequest model = BinaryData.fromString( - "{\"certRecord\":{\"offerGuid\":\"mwctondzjluudfd\",\"certificationStatus\":\"gg\",\"ingestionStatus\":\"sb\",\"controls\":[{\"controlId\":\"vtgsei\",\"controlStatus\":\"fiufx\"},{\"controlId\":\"npirgnepttw\",\"controlStatus\":\"sniffc\"},{\"controlId\":\"qnrojlpijnkrxfrd\",\"controlStatus\":\"c\"},{\"controlId\":\"tizzronasxif\",\"controlStatus\":\"zq\"}]}}") - .toObject(SyncCertRecordRequest.class); - Assertions.assertEquals("mwctondzjluudfd", model.certRecord().offerGuid()); - Assertions.assertEquals("gg", model.certRecord().certificationStatus()); - Assertions.assertEquals("sb", model.certRecord().ingestionStatus()); - Assertions.assertEquals("vtgsei", model.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("fiufx", model.certRecord().controls().get(0).controlStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SyncCertRecordRequest model - = new SyncCertRecordRequest().withCertRecord(new CertSyncRecord().withOfferGuid("mwctondzjluudfd") - .withCertificationStatus("gg") - .withIngestionStatus("sb") - .withControls(Arrays.asList(new ControlSyncRecord().withControlId("vtgsei").withControlStatus("fiufx"), - new ControlSyncRecord().withControlId("npirgnepttw").withControlStatus("sniffc"), - new ControlSyncRecord().withControlId("qnrojlpijnkrxfrd").withControlStatus("c"), - new ControlSyncRecord().withControlId("tizzronasxif").withControlStatus("zq")))); - model = BinaryData.fromObject(model).toObject(SyncCertRecordRequest.class); - Assertions.assertEquals("mwctondzjluudfd", model.certRecord().offerGuid()); - Assertions.assertEquals("gg", model.certRecord().certificationStatus()); - Assertions.assertEquals("sb", model.certRecord().ingestionStatus()); - Assertions.assertEquals("vtgsei", model.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("fiufx", model.certRecord().controls().get(0).controlStatus()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordResponseInnerTests.java deleted file mode 100644 index 84e59fc3f090..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordResponseInnerTests.java +++ /dev/null @@ -1,23 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.SyncCertRecordResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class SyncCertRecordResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SyncCertRecordResponseInner model = BinaryData.fromString( - "{\"certRecord\":{\"offerGuid\":\"f\",\"certificationStatus\":\"esgogc\",\"ingestionStatus\":\"onnxkrlgnyhm\",\"controls\":[{\"controlId\":\"kkgthr\",\"controlStatus\":\"hxjbdhqxvc\"},{\"controlId\":\"frpdsofbshrns\",\"controlStatus\":\"uswdv\"}]}}") - .toObject(SyncCertRecordResponseInner.class); - Assertions.assertEquals("f", model.certRecord().offerGuid()); - Assertions.assertEquals("esgogc", model.certRecord().certificationStatus()); - Assertions.assertEquals("onnxkrlgnyhm", model.certRecord().ingestionStatus()); - Assertions.assertEquals("kkgthr", model.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("hxjbdhqxvc", model.certRecord().controls().get(0).controlStatus()); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationPropertyTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationPropertyTests.java deleted file mode 100644 index d34e022da33a..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationPropertyTests.java +++ /dev/null @@ -1,19 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.TriggerEvaluationProperty; -import org.junit.jupiter.api.Assertions; - -public final class TriggerEvaluationPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerEvaluationProperty model = BinaryData.fromString( - "{\"triggerTime\":\"2021-01-28T16:24:30Z\",\"evaluationEndTime\":\"2021-11-18T18:42:57Z\",\"resourceIds\":[\"volvtn\"],\"quickAssessments\":[{\"resourceId\":\"zgemjdftuljlt\",\"responsibilityId\":\"ceamtm\",\"timestamp\":\"2021-01-22T15:39:19Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"jw\",\"description\":\"wqiok\",\"remediationLink\":\"sx\"},{\"resourceId\":\"jmsvpkjp\",\"responsibilityId\":\"kwcf\",\"timestamp\":\"2021-12-08T22:14:22Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"gtczheydb\",\"description\":\"shmkxmaehvbbxur\",\"remediationLink\":\"ltfnhtbaxkgx\"},{\"resourceId\":\"rc\",\"responsibilityId\":\"yklyhpluodpvruud\",\"timestamp\":\"2021-06-21T19:59:28Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"hostgktstvdxecl\",\"description\":\"dqbcvhzlhplod\",\"remediationLink\":\"dlwwqfbumlkxt\"}]}") - .toObject(TriggerEvaluationProperty.class); - Assertions.assertEquals("volvtn", model.resourceIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationRequestTests.java deleted file mode 100644 index a5fafdac9fc7..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationRequestTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.TriggerEvaluationRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TriggerEvaluationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerEvaluationRequest model = BinaryData.fromString("{\"resourceIds\":[\"sdvlmfwdgzxulucv\",\"amrsreuzv\"]}") - .toObject(TriggerEvaluationRequest.class); - Assertions.assertEquals("sdvlmfwdgzxulucv", model.resourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerEvaluationRequest model - = new TriggerEvaluationRequest().withResourceIds(Arrays.asList("sdvlmfwdgzxulucv", "amrsreuzv")); - model = BinaryData.fromObject(model).toObject(TriggerEvaluationRequest.class); - Assertions.assertEquals("sdvlmfwdgzxulucv", model.resourceIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationResponseInnerTests.java deleted file mode 100644 index 74cedda7a548..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationResponseInnerTests.java +++ /dev/null @@ -1,19 +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.appcomplianceautomation.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.fluent.models.TriggerEvaluationResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class TriggerEvaluationResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerEvaluationResponseInner model = BinaryData.fromString( - "{\"properties\":{\"triggerTime\":\"2021-11-19T17:24:15Z\",\"evaluationEndTime\":\"2021-08-12T14:06:46Z\",\"resourceIds\":[\"nytx\"],\"quickAssessments\":[{\"resourceId\":\"zgxmr\",\"responsibilityId\":\"blwpcesutrgj\",\"timestamp\":\"2021-05-25T10:58:49Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"p\",\"description\":\"qhih\",\"remediationLink\":\"qg\"},{\"resourceId\":\"pnfqntcyp\",\"responsibilityId\":\"jv\",\"timestamp\":\"2021-01-30T06:17:36Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"slirciz\",\"description\":\"vydfceacvlhvygdy\",\"remediationLink\":\"umrtwnawjsl\"},{\"resourceId\":\"wkojgcyztsfmzn\",\"responsibilityId\":\"eqphchqnrnr\",\"timestamp\":\"2021-01-21T00:49:26Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"ykqgaifmvik\",\"description\":\"ydv\",\"remediationLink\":\"bejdznxcv\"}]}}") - .toObject(TriggerEvaluationResponseInner.class); - Assertions.assertEquals("nytx", model.properties().resourceIds().get(0)); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhooksDeleteByResourceGroupWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhooksDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 947739a620de..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhooksDeleteByResourceGroupWithResponseMockTests.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.appcomplianceautomation.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class WebhooksDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AppComplianceAutomationManager manager = AppComplianceAutomationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.webhooks() - .deleteByResourceGroupWithResponse("xwopdbydpizqa", "lnapxbiygn", com.azure.core.util.Context.NONE); - - } -}