Skip to content

Commit 4c48f21

Browse files
committed
rename helper methods in tests
1 parent 279f7cb commit 4c48f21

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sysdig/resource_sysdig_ip_filter_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestAccSysdigIpFilter_fullLifecycle(t *testing.T) {
2222
Steps: []resource.TestStep{
2323
{
2424
// Create resource
25-
Config: configBasic("192.168.1.0/24", "Initial note", true),
25+
Config: createIPFilter("192.168.1.0/24", "Initial note", true),
2626
Check: resource.ComposeTestCheckFunc(
2727
resource.TestCheckResourceAttr("sysdig_ip_filter.test", "ip_range", "192.168.1.0/24"),
2828
resource.TestCheckResourceAttr("sysdig_ip_filter.test", "note", "Initial note"),
@@ -31,7 +31,7 @@ func TestAccSysdigIpFilter_fullLifecycle(t *testing.T) {
3131
},
3232
{
3333
// Update resource
34-
Config: configBasic("192.168.2.0/24", "Updated note", false),
34+
Config: createIPFilter("192.168.2.0/24", "Updated note", false),
3535
Check: resource.ComposeTestCheckFunc(
3636
resource.TestCheckResourceAttr("sysdig_ip_filter.test", "ip_range", "192.168.2.0/24"),
3737
resource.TestCheckResourceAttr("sysdig_ip_filter.test", "note", "Updated note"),
@@ -42,7 +42,7 @@ func TestAccSysdigIpFilter_fullLifecycle(t *testing.T) {
4242
})
4343
}
4444

45-
func configBasic(ipRange, note string, enabled bool) string {
45+
func createIPFilter(ipRange, note string, enabled bool) string {
4646
return fmt.Sprintf(`
4747
resource "sysdig_ip_filter" "test" {
4848
ip_range = "%s"

sysdig/resource_sysdig_ip_filters_settings_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestAccSysdigIpFiltersSettings_fullLifecycle(t *testing.T) {
2222
Steps: []resource.TestStep{
2323
{
2424
// Create resource
25-
Config: configBasic(false),
25+
Config: createIPFiltersSettings(false),
2626
Check: resource.ComposeTestCheckFunc(
2727
resource.TestCheckResourceAttr("sysdig_ip_filters_settings.test", "ip_filtering_enabled", "false"),
2828
),
@@ -31,7 +31,7 @@ func TestAccSysdigIpFiltersSettings_fullLifecycle(t *testing.T) {
3131
})
3232
}
3333

34-
func configBasic(ipFilteringEnabled bool) string {
34+
func createIPFiltersSettings(ipFilteringEnabled bool) string {
3535
return fmt.Sprintf(`
3636
resource "sysdig_ip_filters_settings" "test" {
3737
ip_filtering_enabled = %t

0 commit comments

Comments
 (0)