@@ -22,7 +22,7 @@ func TestAccSysdigIpFilter_fullLifecycle(t *testing.T) {
22
22
Steps : []resource.TestStep {
23
23
{
24
24
// Create resource
25
- Config : configBasic ("192.168.1.0/24" , "Initial note" , true ),
25
+ Config : createIPFilter ("192.168.1.0/24" , "Initial note" , true ),
26
26
Check : resource .ComposeTestCheckFunc (
27
27
resource .TestCheckResourceAttr ("sysdig_ip_filter.test" , "ip_range" , "192.168.1.0/24" ),
28
28
resource .TestCheckResourceAttr ("sysdig_ip_filter.test" , "note" , "Initial note" ),
@@ -31,7 +31,7 @@ func TestAccSysdigIpFilter_fullLifecycle(t *testing.T) {
31
31
},
32
32
{
33
33
// Update resource
34
- Config : configBasic ("192.168.2.0/24" , "Updated note" , false ),
34
+ Config : createIPFilter ("192.168.2.0/24" , "Updated note" , false ),
35
35
Check : resource .ComposeTestCheckFunc (
36
36
resource .TestCheckResourceAttr ("sysdig_ip_filter.test" , "ip_range" , "192.168.2.0/24" ),
37
37
resource .TestCheckResourceAttr ("sysdig_ip_filter.test" , "note" , "Updated note" ),
@@ -42,7 +42,7 @@ func TestAccSysdigIpFilter_fullLifecycle(t *testing.T) {
42
42
})
43
43
}
44
44
45
- func configBasic (ipRange , note string , enabled bool ) string {
45
+ func createIPFilter (ipRange , note string , enabled bool ) string {
46
46
return fmt .Sprintf (`
47
47
resource "sysdig_ip_filter" "test" {
48
48
ip_range = "%s"
0 commit comments