Skip to content

Commit 5d96dee

Browse files
committed
test(containerservice): update OS disk type to managed in Kubernetes cluster tests
- Changed OS disk type from ephemeral to managed in agent pool configuration - Updated assertion to verify managed OS disk type - Added documentation reference for default OS disk sizing in AKS
1 parent c586bfb commit 5d96dee

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ public void canCRUDKubernetesCluster() {
7979
.withVirtualMachineSize(ContainerServiceVMSizeTypes.STANDARD_F4S_V2)
8080
.withAgentPoolVirtualMachineCount(1)
8181
.withOSDiskSizeInGB(30)
82-
.withOSDiskType(OSDiskType.EPHEMERAL)
82+
// https://learn.microsoft.com/en-us/azure/aks/concepts-storage#default-os-disk-sizing
83+
.withOSDiskType(OSDiskType.MANAGED)
8384
.withKubeletDiskType(KubeletDiskType.TEMPORARY)
8485
.withAgentPoolType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS)
8586
.withAgentPoolMode(AgentPoolMode.SYSTEM)
@@ -110,7 +111,7 @@ public void canCRUDKubernetesCluster() {
110111
Assertions.assertEquals(ContainerServiceVMSizeTypes.STANDARD_F4S_V2, agentPool.vmSize());
111112
Assertions.assertEquals(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS, agentPool.type());
112113
Assertions.assertEquals(AgentPoolMode.SYSTEM, agentPool.mode());
113-
Assertions.assertEquals(OSDiskType.EPHEMERAL, agentPool.osDiskType());
114+
Assertions.assertEquals(OSDiskType.MANAGED, agentPool.osDiskType());
114115
Assertions.assertEquals(30, agentPool.osDiskSizeInGB());
115116
Assertions.assertEquals(KubeletDiskType.TEMPORARY, agentPool.kubeletDiskType());
116117
Assertions.assertEquals(Collections.singletonMap("pool.name", agentPoolName), agentPool.tags());
@@ -593,7 +594,7 @@ public void testUpdateManagedClusterSkuAndKubernetesSupportPlan() {
593594
.define(aksName)
594595
.withRegion(Region.US_WEST3)
595596
.withExistingResourceGroup(rgName)
596-
.withVersion("1.31.8")
597+
.withVersion("1.32.4")
597598
.withRootUsername("testaks")
598599
.withSshKey(SSH_KEY)
599600
.withSystemAssignedManagedServiceIdentity()

0 commit comments

Comments
 (0)