Skip to content

Commit

Permalink
fix[tf]: rename to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Andreyko committed Oct 19, 2023
1 parent a43309e commit 32cbaa8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/sgroups-tf-v2/internal/provider/resource-sgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ func TestAccSgs(t *testing.T) {
defaultAction: "ACCEPT",
network_names: []string{"nw3", "nw4"}}

thirdTestData := firstTestData
thirdTestData.logs = false
thirdTestData.trace = false
thirdTestData.network_names = []string{"nw1", "nw5"}
changedFirstTestData := firstTestData
changedFirstTestData.logs = false
changedFirstTestData.trace = false
changedFirstTestData.network_names = []string{"nw1", "nw5"}

resource.Test(t, resource.TestCase{
ProtoV6ProviderFactories: testAccProviders,
Expand Down Expand Up @@ -77,13 +77,13 @@ func TestAccSgs(t *testing.T) {
},
},
{
Config: sgsConfig(thirdTestData),
Config: sgsConfig(changedFirstTestData),
Check: func(tState *terraform.State) error {
sg := getSg(ctx, t, thirdTestData.name)
sg := getSg(ctx, t, changedFirstTestData.name)
if sg == nil {
return fmt.Errorf("sg %s not found", thirdTestData.name)
return fmt.Errorf("sg %s not found", changedFirstTestData.name)
}
if err := sgAssert(sg, thirdTestData); err != nil {
if err := sgAssert(sg, changedFirstTestData); err != nil {
return err
}

Expand Down

0 comments on commit 32cbaa8

Please sign in to comment.