Skip to content

Commit

Permalink
test: update server type list index after cx11 removal
Browse files Browse the repository at this point in the history
Partially reverts #995
  • Loading branch information
jooola committed Nov 6, 2024
1 parent 9305fca commit 2de9084
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions internal/servertype/data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,25 @@ func TestAccDataSourceList(t *testing.T) {
),

Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(all.TFID(), "server_type_ids.1", "22"),
resource.TestCheckResourceAttr(all.TFID(), "server_type_ids.2", "23"),
resource.TestCheckResourceAttr(all.TFID(), "names.1", "cpx11"),
resource.TestCheckResourceAttr(all.TFID(), "names.2", "cpx21"),
resource.TestCheckResourceAttr(all.TFID(), "descriptions.1", "CPX 11"),
resource.TestCheckResourceAttr(all.TFID(), "descriptions.2", "CPX 21"),

resource.TestCheckResourceAttr(all.TFID(), "server_types.1.id", "22"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.name", "cpx11"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.cores", "2"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.memory", "2"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.disk", "40"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.storage_type", "local"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.cpu_type", "shared"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.architecture", "x86"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.included_traffic", "0"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.is_deprecated", "false"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.deprecation_announced", ""),
resource.TestCheckResourceAttr(all.TFID(), "server_types.1.unavailable_after", ""),
resource.TestCheckResourceAttr(all.TFID(), "server_type_ids.0", "22"),
resource.TestCheckResourceAttr(all.TFID(), "server_type_ids.1", "23"),
resource.TestCheckResourceAttr(all.TFID(), "names.0", "cpx11"),
resource.TestCheckResourceAttr(all.TFID(), "names.1", "cpx21"),
resource.TestCheckResourceAttr(all.TFID(), "descriptions.0", "CPX 11"),
resource.TestCheckResourceAttr(all.TFID(), "descriptions.1", "CPX 21"),

resource.TestCheckResourceAttr(all.TFID(), "server_types.0.id", "22"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.name", "cpx11"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.cores", "2"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.memory", "2"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.disk", "40"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.storage_type", "local"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.cpu_type", "shared"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.architecture", "x86"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.included_traffic", "0"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.is_deprecated", "false"),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.deprecation_announced", ""),
resource.TestCheckResourceAttr(all.TFID(), "server_types.0.unavailable_after", ""),
),
},
},
Expand Down

0 comments on commit 2de9084

Please sign in to comment.