Skip to content

Commit

Permalink
modify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Oren committed Nov 13, 2023
1 parent 235a0e0 commit 7da46c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestAcc_kubernetes(t *testing.T) {
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.minimum", "1"),
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.maximum", "1"),
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.max_surge", "1"),
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.max_unavailable", "1"),
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.max_unavailable", "0"),
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.volume_type", "storage_premium_perf1"),
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.volume_size_gb", "20"),
resource.TestCheckResourceAttr("data.stackit_kubernetes_cluster.example", "node_pools.0.container_runtime", "containerd"),
Expand Down
11 changes: 6 additions & 5 deletions stackit/internal/resources/kubernetes/cluster/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestAcc_kubernetes(t *testing.T) {
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.minimum", "1"),
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.maximum", "2"),
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.max_surge", "1"),
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.max_unavailable", "1"),
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.max_unavailable", "0"),
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.volume_type", "storage_premium_perf1"),
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.volume_size_gb", "20"),
resource.TestCheckResourceAttr("stackit_kubernetes_cluster.example", "node_pools.0.container_runtime", "containerd"),
Expand Down Expand Up @@ -129,10 +129,11 @@ resource "stackit_kubernetes_cluster" "example" {
name = "%s"
node_pools = [{
name = "%s"
machine_type = "%s"
zones = ["eu01-1"]
maximum = 1
name = "%s"
machine_type = "%s"
zones = ["eu01-1"]
maximum = 1
max_unavailable = 1
labels = {
"az" = "1"
Expand Down

0 comments on commit 7da46c0

Please sign in to comment.