@@ -16,7 +16,6 @@ import (
16
16
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper"
17
17
)
18
18
19
- const resourceGroup = "geretain-test-cbr"
20
19
const zoneExampleTerraformDir = "examples/zone"
21
20
const completeExampleTerraformDir = "examples/multizone-rule"
22
21
const multiServiceExampleTerraformDir = "examples/multi-service-profile"
@@ -29,10 +28,9 @@ func TestRunZoneExample(t *testing.T) {
29
28
assert .Nil (t , err , "Failed to create cloud info service" )
30
29
31
30
options := testhelper .TestOptionsDefaultWithVars (& testhelper.TestOptions {
32
- Testing : t ,
33
- TerraformDir : zoneExampleTerraformDir ,
34
- Prefix : "cbr-zone" ,
35
- ResourceGroup : resourceGroup ,
31
+ Testing : t ,
32
+ TerraformDir : zoneExampleTerraformDir ,
33
+ Prefix : "cbr-zone" ,
36
34
})
37
35
options .SkipTestTearDown = true
38
36
output , err := options .RunTestConsistency ()
@@ -83,10 +81,9 @@ func TestRunCompleteExample(t *testing.T) {
83
81
}
84
82
85
83
options := testhelper .TestOptionsDefaultWithVars (& testhelper.TestOptions {
86
- Testing : t ,
87
- TerraformDir : completeExampleTerraformDir ,
88
- Prefix : "cbr-multizone" ,
89
- ResourceGroup : resourceGroup ,
84
+ Testing : t ,
85
+ TerraformDir : completeExampleTerraformDir ,
86
+ Prefix : "cbr-multizone" ,
90
87
TerraformVars : map [string ]interface {}{
91
88
"existing_access_tags" : accessTags ,
92
89
},
@@ -192,10 +189,9 @@ func TestMultiServiceProfileExample(t *testing.T) {
192
189
assert .Nil (t , err , "Failed to create cloud info service" )
193
190
194
191
options := testhelper .TestOptionsDefaultWithVars (& testhelper.TestOptions {
195
- Testing : t ,
196
- TerraformDir : multiServiceExampleTerraformDir ,
197
- Prefix : "cbr-multi-service-profile" ,
198
- ResourceGroup : resourceGroup ,
192
+ Testing : t ,
193
+ TerraformDir : multiServiceExampleTerraformDir ,
194
+ Prefix : "cbr-msp" ,
199
195
})
200
196
options .SkipTestTearDown = true
201
197
output , err := options .RunTestConsistency ()
@@ -282,10 +278,9 @@ func TestFSCloudExample(t *testing.T) {
282
278
t .Parallel ()
283
279
284
280
options := testhelper .TestOptionsDefaultWithVars (& testhelper.TestOptions {
285
- Testing : t ,
286
- TerraformDir : fsCloudTerraformDir ,
287
- Prefix : "cbr-fs" ,
288
- ResourceGroup : resourceGroup ,
281
+ Testing : t ,
282
+ TerraformDir : fsCloudTerraformDir ,
283
+ Prefix : "cbr-fs" ,
289
284
})
290
285
output , err := options .RunTestConsistency ()
291
286
assert .Nil (t , err , "This should not have errored" )
@@ -296,10 +291,9 @@ func TestRunUpgradeExample(t *testing.T) {
296
291
t .Parallel ()
297
292
298
293
options := testhelper .TestOptionsDefaultWithVars (& testhelper.TestOptions {
299
- Testing : t ,
300
- TerraformDir : zoneExampleTerraformDir ,
301
- Prefix : "cbr-upg" ,
302
- ResourceGroup : resourceGroup ,
294
+ Testing : t ,
295
+ TerraformDir : zoneExampleTerraformDir ,
296
+ Prefix : "cbr-upg" ,
303
297
})
304
298
305
299
output , err := options .RunTestUpgrade ()
0 commit comments