@@ -73,6 +73,35 @@ func setupOptions(t *testing.T, prefix string, dir string) *testhelper.TestOptio
7373 return options
7474}
7575
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+
76105func TestCompleteExampleInSchematics (t * testing.T ) {
77106 t .Parallel ()
78107
0 commit comments