Skip to content

Commit 1a2e2fe

Browse files
authored
mgmt, use byte[0] for client implementations (#3007)
* bump core * add fluent tests * bump core
1 parent 53d08ac commit 1a2e2fe

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

fluent-tests/Initialize-Tests.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ $job = @(
153153
# pageable model with inheritance
154154
"--version=$AUTOREST_CORE_VERSION $FLUENTLITE_ARGUMENTS --regenerate-pom=false --input-file=https://github.com/Azure/azure-rest-api-specs/blob/0ed912fdfaffd5c81eb86b79df0e3b31d978d795/specification/billing/resource-manager/Microsoft.Billing/stable/2024-04-01/billingSavingsPlan.json --java.namespace=com.azure.mgmtlitetest.pageablewithinheritance"
155155

156+
# empty byte array in client implementation
157+
"--version=$AUTOREST_CORE_VERSION $FLUENTLITE_ARGUMENTS --regenerate-pom=false --input-file=https://github.com/Azure/azure-rest-api-specs/blob/f840c84013f12b701aac7065ceeb13a59b26051b/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/iotdps.json --java.namespace=com.azure.mgmtlitetest.emptybytearrayinclients"
158+
156159
# "--version=$AUTOREST_CORE_VERSION $FLUENTLITE_ARGUMENTS --regenerate-pom=false https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/readme.md --tag=package-2020-06 --java.namespace=com.azure.mgmtlitetest.network"
157160
# "--version=$AUTOREST_CORE_VERSION $FLUENTLITE_ARGUMENTS --regenerate-pom=false https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/compute/resource-manager/readme.md --tag=package-2020-06-30 --java.namespace=com.azure.mgmtlitetest.compute"
158161
) | ForEach-Object -Parallel $generateScript -ThrottleLimit $Parallelization -AsJob

fluent-tests/src/test/java/com/azure/mgmttest/LiteCompilationTests.java

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.azure.core.util.Context;
1818
import com.azure.identity.EnvironmentCredentialBuilder;
1919
import com.azure.mgmtlitetest.containerregistrylite.ContainerRegistryManager;
20+
import com.azure.mgmtlitetest.emptybytearrayinclients.implementation.DpsCertificatesClientImpl;
2021
import com.azure.mgmtlitetest.managednetworkfabric.models.CommonPostActionResponseForStateUpdate;
2122
import com.azure.mgmtlitetest.mediaservices.MediaServicesManager;
2223
import com.azure.mgmtlitetest.mediaservices.models.LiveEventStatus;
@@ -215,4 +216,8 @@ public void testPageableWithInheritance() {
215216
public void testChildWithParentFlattenedProperties() {
216217
AggregateFunctionProperties aggregateFunctionProperties = new AggregateFunctionProperties();
217218
}
219+
220+
public void testEmptyByteArrayInClients() {
221+
Class<DpsCertificatesClientImpl> clazz = DpsCertificatesClientImpl.class;
222+
}
218223
}

0 commit comments

Comments
 (0)