Skip to content

Commit 87e4123

Browse files
committed
Add import test
1 parent 20b443d commit 87e4123

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal/kibana/security_list/acc_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ func TestAccResourceSecurityList(t *testing.T) {
7575
resource.TestCheckResourceAttr("elasticstack_kibana_security_list.test", "description", "An updated test security list"),
7676
),
7777
},
78+
{ // Import
79+
ConfigDirectory: acctest.NamedTestCaseDirectory("update"),
80+
ConfigVariables: config.Variables{
81+
"list_id": config.StringVariable(listID),
82+
"name": config.StringVariable("Updated Security List"),
83+
"description": config.StringVariable("An updated test security list"),
84+
"type": config.StringVariable("ip"),
85+
},
86+
ResourceName: "elasticstack_kibana_security_list.test",
87+
ImportState: true,
88+
ImportStateVerify: true,
89+
},
7890
},
7991
})
8092
}

0 commit comments

Comments
 (0)