Skip to content

Commit

Permalink
chore: add more information to error
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomatavelli-f3 committed Sep 12, 2024
1 parent eed39e0 commit 444f298
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drpv4/resource_drp_subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,13 @@ func TestAccResourceSubnet(t *testing.T) {
ExpectNonEmptyPlan: true,
ExpectError: regexp.MustCompile("Not Found"),
PreConfig: func() {
t.Log("Removing subnet using DRP API to test terraform error handling")
client := testAccProvider.Meta().(*Config)
client.session.DeleteModel("subnets", "test1")
r, err := client.session.DeleteModel("subnets", "test1")
if err != nil {
t.Errorf("failed to remove subnet using DRP API: %v", err)
}
t.Logf("got response: %v", r)
},
},
},
Expand Down

0 comments on commit 444f298

Please # to comment.