Skip to content

Commit 1e0213a

Browse files
committed
test(containerservice): update OS disk type to ephemeral in Kubernetes cluster tests
- Changed OS disk type from MANAGED to EPHEMERAL in cluster configuration - Updated corresponding assertion to verify ephemeral disk type - Removed comment reference to Azure documentation for default OS disk sizing
1 parent 092a244 commit 1e0213a

File tree

1 file changed

+2
-3
lines changed
  • sdk/containerservice/azure-resourcemanager-containerservice/src/test/java/com/azure/resourcemanager/containerservice

1 file changed

+2
-3
lines changed

sdk/containerservice/azure-resourcemanager-containerservice/src/test/java/com/azure/resourcemanager/containerservice/KubernetesClustersTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ public void canCRUDKubernetesCluster() {
7979
.withVirtualMachineSize(ContainerServiceVMSizeTypes.STANDARD_F4S_V2)
8080
.withAgentPoolVirtualMachineCount(1)
8181
.withOSDiskSizeInGB(30)
82-
// https://learn.microsoft.com/en-us/azure/aks/concepts-storage#default-os-disk-sizing
83-
.withOSDiskType(OSDiskType.MANAGED)
82+
.withOSDiskType(OSDiskType.EPHEMERAL)
8483
.withKubeletDiskType(KubeletDiskType.TEMPORARY)
8584
.withAgentPoolType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS)
8685
.withAgentPoolMode(AgentPoolMode.SYSTEM)
@@ -111,7 +110,7 @@ public void canCRUDKubernetesCluster() {
111110
Assertions.assertEquals(ContainerServiceVMSizeTypes.STANDARD_F4S_V2, agentPool.vmSize());
112111
Assertions.assertEquals(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS, agentPool.type());
113112
Assertions.assertEquals(AgentPoolMode.SYSTEM, agentPool.mode());
114-
Assertions.assertEquals(OSDiskType.MANAGED, agentPool.osDiskType());
113+
Assertions.assertEquals(OSDiskType.EPHEMERAL, agentPool.osDiskType());
115114
Assertions.assertEquals(30, agentPool.osDiskSizeInGB());
116115
Assertions.assertEquals(KubeletDiskType.TEMPORARY, agentPool.kubeletDiskType());
117116
Assertions.assertEquals(Collections.singletonMap("pool.name", agentPoolName), agentPool.tags());

0 commit comments

Comments
 (0)