Skip to content

Commit 161158c

Browse files
authored
test: Updated the default plan in the basic example and pr_test for fully configurable DA (#68)
1 parent 7c8f2bd commit 161158c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

examples/basic/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ module "cloud_monitoring" {
2424
region = var.region
2525
resource_tags = var.resource_tags
2626
instance_name = local.cloud_monitoring_instance_name
27+
plan = var.plan
2728
}

examples/basic/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ variable "resource_tags" {
3737
description = "List of resource tag to associate with all resource instances created by this example."
3838
default = []
3939
}
40+
41+
variable "plan" {
42+
type = string
43+
description = "The IBM Cloud Monitoring plan to provision. Available: lite, graduated-tier and graduated-tier-sysdig-secure-plus-monitor (available in region eu-fr2 only)"
44+
default = "graduated-tier"
45+
}

tests/pr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestRunFullyConfigurable(t *testing.T) {
5050

5151
region := validRegions[rand.Intn(len(validRegions))]
5252
prefix := "icm-da"
53-
plan := "lite"
53+
plan := "graduated-tier"
5454

5555
// when region is 'eu-fr2' take opportunity to test 'graduated-tier-sysdig-secure-plus-monitor' plan
5656
if region == "eu-fr2" {

0 commit comments

Comments
 (0)