@@ -73,6 +73,35 @@ func setupOptions(t *testing.T, prefix string, dir string) *testhelper.TestOptio
73
73
return options
74
74
}
75
75
76
+ func TestBasicFullyConfigurableInSchematics (t * testing.T ) {
77
+ t .Parallel ()
78
+
79
+ var region = validRegions [rand .Intn (len (validRegions ))]
80
+
81
+ options := testschematic .TestSchematicOptionsDefault (& testschematic.TestSchematicOptions {
82
+ Testing : t ,
83
+ Prefix : "en-basic" ,
84
+ TarIncludePatterns : []string {
85
+ "*.tf" ,
86
+ fullyConfigurableDADir + "/*.tf" ,
87
+ },
88
+ ResourceGroup : resourceGroup ,
89
+ TemplateFolder : fullyConfigurableDADir ,
90
+ Tags : []string {"test-schematic" },
91
+ DeleteWorkspaceOnFail : false ,
92
+ WaitJobCompleteMinutes : 60 ,
93
+ })
94
+
95
+ options .TerraformVars = []testschematic.TestSchematicTerraformVar {
96
+ {Name : "ibmcloud_api_key" , Value : options .RequiredEnvironmentVars ["TF_VAR_ibmcloud_api_key" ], DataType : "string" , Secure : true },
97
+ {Name : "prefix" , Value : options .Prefix , DataType : "string" },
98
+ {Name : "region" , Value : region , DataType : "string" },
99
+ }
100
+
101
+ err := options .RunSchematicTest ()
102
+ assert .Nil (t , err , "This should not have errored" )
103
+ }
104
+
76
105
func TestCompleteExampleInSchematics (t * testing.T ) {
77
106
t .Parallel ()
78
107
0 commit comments