Skip to content

Commit c5556df

Browse files
committed
Added --ssh-key-value to tests.
1 parent 59bf2fd commit c5556df

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3081,14 +3081,15 @@ def test_aks_cluster_kata(
30813081
"location": resource_group_location,
30823082
"resource_type": "Microsoft.ContainerService/ManagedClusters",
30833083
"workload_runtime": CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION,
3084+
"ssh_key_value": self.generate_ssh_keys(),
30843085
}
30853086
)
30863087

30873088
# create
30883089
create_cmd = (
30893090
"aks create --resource-group={resource_group} --name={name} --location={location} "
30903091
"--os-sku AzureLinux --workload-runtime {workload_runtime} --node-count 1 "
3091-
"--node-vm-size Standard_D4s_v3"
3092+
"--ssh-key-value={ssh_key_value} --node-vm-size Standard_D4s_v3"
30923093
)
30933094
self.cmd(
30943095
create_cmd,
@@ -3128,13 +3129,14 @@ def test_aks_nodepool_add_with_kata(
31283129
"location": resource_group_location,
31293130
"resource_type": "Microsoft.ContainerService/ManagedClusters",
31303131
"workload_runtime": CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION,
3132+
"ssh_key_value": self.generate_ssh_keys(),
31313133
}
31323134
)
31333135

31343136
# create
31353137
create_cmd = (
31363138
"aks create --resource-group={resource_group} --name={name} "
3137-
"--nodepool-name {node_pool_name} -c 1"
3139+
"--nodepool-name {node_pool_name} -c 1 --ssh-key-value={ssh_key_value}"
31383140
)
31393141
self.cmd(create_cmd, checks=[
31403142
self.check('provisioningState', 'Succeeded'),
@@ -3181,14 +3183,15 @@ def test_aks_cluster_kata_mshv_vm_isolation(
31813183
"location": resource_group_location,
31823184
"resource_type": "Microsoft.ContainerService/ManagedClusters",
31833185
"workload_runtime": CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION,
3186+
"ssh_key_value": self.generate_ssh_keys(),
31843187
}
31853188
)
31863189

31873190
# create
31883191
create_cmd = (
31893192
"aks create --resource-group={resource_group} --name={name} --location={location} "
31903193
"--os-sku AzureLinux --workload-runtime {workload_runtime} --node-count 1 "
3191-
"--node-vm-size Standard_D4s_v3"
3194+
"--ssh-key-value={ssh_key_value} --node-vm-size Standard_D4s_v3"
31923195
)
31933196
self.cmd(
31943197
create_cmd,
@@ -3228,13 +3231,14 @@ def test_aks_nodepool_add_with_kata_mshv_vm_isolation(
32283231
"location": resource_group_location,
32293232
"resource_type": "Microsoft.ContainerService/ManagedClusters",
32303233
"workload_runtime": CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION,
3234+
"ssh_key_value": self.generate_ssh_keys(),
32313235
}
32323236
)
32333237

32343238
# create
32353239
create_cmd = (
32363240
"aks create --resource-group={resource_group} --name={name} "
3237-
"--nodepool-name {node_pool_name} -c 1"
3241+
"--nodepool-name {node_pool_name} -c 1 --ssh-key-value={ssh_key_value}"
32383242
)
32393243
self.cmd(create_cmd, checks=[
32403244
self.check('provisioningState', 'Succeeded'),

0 commit comments

Comments
 (0)