Skip to content

Commit

Permalink
revert acctest fix attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Hemard committed Dec 13, 2024
1 parent 19aac79 commit 667e876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ibm/service/database/resource_ibm_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ func resourceIBMDatabaseInstanceCreate(context context.Context, d *schema.Resour
if g.CPU != nil && g.CPU.Allocation*nodeCount != currentGroup.CPU.Allocation {
groupScaling.CPU = &clouddatabasesv5.GroupScalingCPU{AllocationCount: core.Int64Ptr(int64(g.CPU.Allocation * nodeCount))}
}
if g.HostFlavor != nil {
if g.HostFlavor != nil && g.HostFlavor.ID != currentGroup.HostFlavor.ID {
groupScaling.HostFlavor = &clouddatabasesv5.GroupScalingHostFlavor{ID: core.StringPtr(g.HostFlavor.ID)}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) {
resource.TestCheckResourceAttr(name, "groups.0.count", "2"),
resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "8192"),
resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "10240"),
resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "0"),
resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "6"),
resource.TestCheckResourceAttr(name, "service_endpoints", "public"),
resource.TestCheckResourceAttr(name, "allowlist.#", "1"),
resource.TestCheckResourceAttr(name, "users.#", "1"),
Expand Down

0 comments on commit 667e876

Please sign in to comment.