Skip to content

Commit b3c23c3

Browse files
authored
ci: update tests (#587)
1 parent cbc39d7 commit b3c23c3

File tree

8 files changed

+10
-33
lines changed

8 files changed

+10
-33
lines changed

examples/default/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "terraform_devsecops_alm" {
2-
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm?ref=v2.7.0"
2+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm?ref=v2.8.0"
33
ibmcloud_api_key = var.ibmcloud_api_key
44
toolchain_resource_group = var.toolchain_resource_group
55
toolchain_region = var.toolchain_region

examples/default/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
# Pin to the lowest provider version of the range defined in the main module's version.tf to ensure lowest version still works
55
ibm = {
66
source = "IBM-Cloud/ibm"
7-
version = "= 1.70.0"
7+
version = "= 1.79.1"
88
}
99
}
1010
}

examples/devsecops-ci-toolchain-bring-your-own-app/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "terraform_devsecops_alm" {
2-
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm?ref=v2.7.0"
2+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm?ref=v2.8.0"
33
ibmcloud_api_key = var.ibmcloud_api_key
44
toolchain_resource_group = var.toolchain_resource_group
55
toolchain_region = var.toolchain_region

examples/devsecops-ci-toolchain-bring-your-own-app/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
# Pin to the lowest provider version of the range defined in the main module's version.tf to ensure lowest version still works
55
ibm = {
66
source = "IBM-Cloud/ibm"
7-
version = "= 1.70.0"
7+
version = "= 1.79.1"
88
}
99
}
1010
}

examples/devsecops-ci-toolchain-with-key-protect/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "terraform_devsecops_alm" {
2-
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm?ref=v2.7.0"
2+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm?ref=v2.8.0"
33
ibmcloud_api_key = var.ibmcloud_api_key
44
toolchain_resource_group = var.toolchain_resource_group
55
toolchain_region = var.toolchain_region

examples/devsecops-ci-toolchain-with-key-protect/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
# Pin to the lowest provider version of the range defined in the main module's version.tf to ensure lowest version still works
55
ibm = {
66
source = "IBM-Cloud/ibm"
7-
version = "= 1.70.0"
7+
version = "= 1.79.1"
88
}
99
}
1010
}

tests/other_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ func TestRunNonDefaultExample(t *testing.T) {
1616
options := testhelper.TestOptionsDefault(&testhelper.TestOptions{
1717
Testing: t,
1818
TerraformDir: nonDefaultExampleTerraformDir,
19-
IgnoreUpdates: testhelper.Exemptions{ // Ignore for consistency check
20-
List: []string{
21-
"module.terraform_devsecops_alm.module.devsecops_cc_toolchain[0].module.pipeline_cc.ibm_cd_tekton_pipeline_trigger.cc_pipeline_timed_trigger[0]",
22-
},
23-
},
2419
TerraformVars: map[string]interface{}{
2520
"enable_secrets_manager": false,
2621
"enable_key_protect": false,

tests/pr_test.go

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ func TestRunDefaultExample(t *testing.T) {
2020
options := testhelper.TestOptionsDefault(&testhelper.TestOptions{
2121
Testing: t,
2222
TerraformDir: defaultExampleTerraformDir,
23-
IgnoreUpdates: testhelper.Exemptions{ // Ignore for consistency check
24-
List: []string{
25-
"module.terraform_devsecops_alm.module.devsecops_cc_toolchain[0].module.pipeline_cc.ibm_cd_tekton_pipeline_trigger.cc_pipeline_timed_trigger[0]",
26-
},
27-
},
2823
TerraformVars: map[string]interface{}{
2924
"enable_secrets_manager": false,
3025
"enable_key_protect": false,
@@ -42,11 +37,6 @@ func TestRunAppExample(t *testing.T) {
4237
options := testhelper.TestOptionsDefault(&testhelper.TestOptions{
4338
Testing: t,
4439
TerraformDir: appExampleDir,
45-
IgnoreUpdates: testhelper.Exemptions{ // Ignore for consistency check
46-
List: []string{
47-
"module.terraform_devsecops_alm.module.devsecops_cc_toolchain[0].module.pipeline_cc.ibm_cd_tekton_pipeline_trigger.cc_pipeline_timed_trigger[0]",
48-
},
49-
},
5040
})
5141

5242
output, err := options.RunTestConsistency()
@@ -60,11 +50,6 @@ func TestRunKPExample(t *testing.T) {
6050
options := testhelper.TestOptionsDefault(&testhelper.TestOptions{
6151
Testing: t,
6252
TerraformDir: kpExampleDir,
63-
IgnoreUpdates: testhelper.Exemptions{ // Ignore for consistency check
64-
List: []string{
65-
"module.terraform_devsecops_alm.module.devsecops_cc_toolchain[0].module.pipeline_cc.ibm_cd_tekton_pipeline_trigger.cc_pipeline_timed_trigger[0]",
66-
},
67-
},
6853
})
6954

7055
output, err := options.RunTestConsistency()
@@ -81,14 +66,11 @@ func TestRunUpgradeExample(t *testing.T) {
8166
options := testhelper.TestOptionsDefault(&testhelper.TestOptions{
8267
Testing: t,
8368
TerraformDir: defaultExampleTerraformDir,
84-
IgnoreUpdates: testhelper.Exemptions{ // Ignore for consistency check
85-
List: []string{
86-
"module.terraform_devsecops_alm.module.devsecops_cc_toolchain[0].module.pipeline_cc.ibm_cd_tekton_pipeline_trigger.cc_pipeline_timed_trigger[0]",
87-
},
88-
},
89-
IgnoreDestroys: testhelper.Exemptions{ // Terraform resource created but unused. Needs to be destroyed. Can remove exemption in subsequent release.
69+
IgnoreDestroys: testhelper.Exemptions{ // Terraform resource custom cos tool being replaced by dedicated cos tool integration. Can remove in subsequent release
9070
List: []string{
91-
"module.terraform_devsecops_alm.random_string.webhook_secret[0]",
71+
"module.terraform_devsecops_alm.module.devsecops_ci_toolchain[0].module.integrations.ibm_cd_toolchain_tool_custom.cos_integration[0]",
72+
"module.terraform_devsecops_alm.module.devsecops_cd_toolchain[0].module.integrations.ibm_cd_toolchain_tool_custom.cos_integration[0]",
73+
"module.terraform_devsecops_alm.module.devsecops_cc_toolchain[0].module.integrations.ibm_cd_toolchain_tool_custom.cos_integration[0]",
9274
},
9375
},
9476
})

0 commit comments

Comments
 (0)