Skip to content

Commit

Permalink
Update test labels to use self-explanatory names
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoucgitter committed Oct 21, 2024
1 parent 0238e09 commit 845f58a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions tests/prefix.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variables {
location = "eastus2"
}

run "prefix_length_too_short" {
run "prefix_length_should_not_be_too_short" {

command = plan

Expand All @@ -15,7 +15,7 @@ run "prefix_length_too_short" {
]
}

run "prefix_disallowed_char" {
run "prefix_should_not_include_disallowed_char" {

command = plan

Expand All @@ -28,7 +28,7 @@ run "prefix_disallowed_char" {
]
}

run "prefix_dissallowed_uppercase" {
run "prefix_should_not_include_dissallowed_uppercase" {

command = plan

Expand All @@ -41,7 +41,7 @@ run "prefix_dissallowed_uppercase" {
]
}

run "prefix_cannot_start_with_dash" {
run "prefix_should_not_start_with_dash" {

command = plan

Expand All @@ -54,7 +54,7 @@ run "prefix_cannot_start_with_dash" {
]
}

run "prefix_cannot_end_with_dash" {
run "prefix_should_not_end_with_dash" {

command = plan

Expand All @@ -67,7 +67,7 @@ run "prefix_cannot_end_with_dash" {
]
}

run "prefix_length_ok_internal_dash" {
run "prefix_length_is_ok_with_internal_dash" {

command = plan

Expand All @@ -77,7 +77,7 @@ run "prefix_length_ok_internal_dash" {
}


run "prefix_length_ok_with_number" {
run "prefix_length_is_ok_and_includes_a_number" {

command = plan

Expand Down
22 changes: 11 additions & 11 deletions tests/var_defaults.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ variables {
prefix = "foobar"
}

run "default_cluster_sku_tier" {
run "cluster_sku_tier_should_default_to_Free" {

command = plan

Expand All @@ -17,7 +17,7 @@ run "default_cluster_sku_tier" {
}
}

run "default_cluster_support_tier" {
run "cluster_support_tier_should_default_to_KubernetesOfficial" {

command = plan

Expand All @@ -30,7 +30,7 @@ run "default_cluster_support_tier" {
}
}

run "aks_network_plugin" {
run "aks_network_plugin_should_default_to_kubenet" {

command = plan

Expand All @@ -43,7 +43,7 @@ run "aks_network_plugin" {
}
}

run "cluster_egress_type" {
run "cluster_egress_type_should_default_to_What" {

command = plan

Expand All @@ -59,7 +59,7 @@ run "cluster_egress_type" {

}

run "storage_type" {
run "storage_type_should_default_to_standard" {

command = plan

Expand All @@ -72,7 +72,7 @@ run "storage_type" {
}
}

run "netapp_size_in_tb" {
run "netapp_size_in_tb_should_default_to_4tb" {

command = plan

Expand All @@ -85,7 +85,7 @@ run "netapp_size_in_tb" {
}
}

run "netapp_network_features" {
run "netapp_network_features_should_default_to_Basic" {

command = plan

Expand All @@ -98,7 +98,7 @@ run "netapp_network_features" {
}
}

run "metrics_category" {
run "metrics_category_should_default_to_AllMetrics" {

command = plan

Expand All @@ -111,7 +111,7 @@ run "metrics_category" {
}
}

run "cluster_api_mode" {
run "cluster_api_mode_should_default_to_public" {

command = plan

Expand All @@ -124,7 +124,7 @@ run "cluster_api_mode" {
}
}

run "aks_identity" {
run "aks_identity_should_default_to_uai" {

command = plan

Expand All @@ -135,4 +135,4 @@ run "aks_identity" {
condition = var.aks_identity == "uai"
error_message = "A default value of \"${var.aks_identity}\" for aks_identity was not expected."
}
}
}

0 comments on commit 845f58a

Please sign in to comment.