Skip to content

Commit

Permalink
test: Fix node template acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
jansyk13 committed Aug 4, 2023
1 parent cabfd2d commit 7066a2e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions castai/resource_node_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ func TestAccResourceNodeTemplate_basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "custom_instances_enabled", "false"),
resource.TestCheckResourceAttr(resourceName, "custom_label.#", "0"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.%", "2"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-1", "custom-value-1"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-2", "custom-value-2"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-1", rName),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-2", rName),
resource.TestCheckResourceAttr(resourceName, "custom_taints.#", "2"),
resource.TestCheckResourceAttr(resourceName, "custom_taints.0.key", "custom-taint-key-1"),
resource.TestCheckResourceAttr(resourceName, "custom_taints.0.value", "custom-taint-value-1"),
Expand Down Expand Up @@ -414,8 +414,8 @@ func TestAccResourceNodeTemplate_basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "custom_instances_enabled", "false"),
resource.TestCheckResourceAttr(resourceName, "custom_label.#", "0"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.%", "2"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-1", "custom-value-1"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-2", "custom-value-2"),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-1", rName),
resource.TestCheckResourceAttr(resourceName, "custom_labels.custom-key-2", rName),
resource.TestCheckResourceAttr(resourceName, "custom_taints.#", "1"),
resource.TestCheckResourceAttr(resourceName, "custom_taints.0.key", "custom-taint-key-1"),
resource.TestCheckResourceAttr(resourceName, "custom_taints.0.value", "custom-taint-value-1"),
Expand Down Expand Up @@ -457,8 +457,8 @@ func testAccNodeTemplateConfig(rName, clusterName string) string {
should_taint = true
custom_labels = {
custom-key-1 = "custom-value-1"
custom-key-2 = "custom-value-2"
custom-key-1 = "%[1]q"
custom-key-2 = "%[1]q"
}
custom_taints {
Expand Down Expand Up @@ -507,8 +507,8 @@ func testNodeTemplateUpdated(rName, clusterName string) string {
should_taint = true
custom_labels = {
custom-key-1 = "custom-value-1"
custom-key-2 = "custom-value-2"
custom-key-1 = "%[1]q"
custom-key-2 = "%[1]q"
}
custom_taints {
Expand Down

0 comments on commit 7066a2e

Please sign in to comment.