File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,28 @@ func TestRunAddRulesToSGExample(t *testing.T) {
8989 assert .NotNil (t , output , "Expected some output" )
9090}
9191
92+ func TestCustomSGExample (t * testing.T ) {
93+ t .Parallel ()
94+ options := testhelper .TestOptionsDefaultWithVars (& testhelper.TestOptions {
95+ Testing : t ,
96+ TerraformDir : "examples/custom_sg" ,
97+ Prefix : "cust-sg" ,
98+ ResourceGroup : resourceGroup ,
99+ ImplicitDestroy : []string {
100+ "module.ocp_base.null_resource.confirm_network_healthy" ,
101+ "module.ocp_base.null_resource.reset_api_key" ,
102+ },
103+ // Do not hard fail the test if the implicit destroy steps fail to allow a full destroy of resource to occur
104+ ImplicitRequired : false ,
105+ TerraformVars : map [string ]interface {}{
106+ "ocp_version" : ocpVersion1 ,
107+ },
108+ })
109+ output , err := options .RunTestConsistency ()
110+ assert .Nil (t , err , "This should not have errored" )
111+ assert .NotNil (t , output , "Expected some output" )
112+ }
113+
92114func TestCrossKmsSupportExample (t * testing.T ) {
93115 t .Parallel ()
94116
You can’t perform that action at this time.
0 commit comments