Skip to content

Commit d794438

Browse files
authored
feat: added new OCP versions and adjusted tests (#577)
1 parent 7a9f899 commit d794438

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

tests/other_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
func TestRunBasicExample(t *testing.T) {
1212
t.Parallel()
1313

14-
options := setupOptions(t, "base-ocp", basicExampleDir, ocpVersion5)
14+
options := setupOptions(t, "base-ocp", basicExampleDir, ocpVersion6)
1515

1616
output, err := options.RunTestConsistency()
1717

@@ -94,7 +94,7 @@ func TestRunAddRulesToSGExample(t *testing.T) {
9494
// Do not hard fail the test if the implicit destroy steps fail to allow a full destroy of resource to occur
9595
ImplicitRequired: false,
9696
TerraformVars: map[string]interface{}{
97-
"ocp_version": ocpVersion3,
97+
"ocp_version": ocpVersion4,
9898
},
9999
})
100100
output, err := options.RunTestConsistency()
@@ -139,7 +139,7 @@ func TestCrossKmsSupportExample(t *testing.T) {
139139
"kms_instance_guid": permanentResources["kp_us_south_guid"],
140140
"kms_key_id": permanentResources["kp_us_south_root_key_id"],
141141
"kms_cross_account_id": permanentResources["ge_ops_account_id"],
142-
"ocp_version": ocpVersion4,
142+
"ocp_version": ocpVersion5,
143143
},
144144
ImplicitDestroy: []string{
145145
// workaround for the issue https://github.ibm.com/GoldenEye/issues/issues/10743

tests/pr_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ const customsgExampleDir = "examples/custom_sg"
2727
const yamlLocation = "../common-dev-assets/common-go-assets/common-permanent-resources.yaml"
2828

2929
// Ensure there is one test per supported OCP version
30-
const ocpVersion1 = "4.16" // used by TestRunUpgradeAdvancedExample , TestFSCloudInSchematic and TestRunMultiClusterExample
31-
const ocpVersion2 = "4.15" // used by TestCustomSGExample and TestRunCustomsgExample
32-
const ocpVersion3 = "4.14" // used by TestRunAdvancedExample and TestRunAddRulesToSGExample
33-
const ocpVersion4 = "4.13" // used by TestCrossKmsSupportExample
34-
const ocpVersion5 = "4.12" // used by TestRunBasicExample
30+
const ocpVersion1 = "4.17" // used by TestRunUpgradeAdvancedExample , TestFSCloudInSchematic and TestRunMultiClusterExample
31+
const ocpVersion2 = "4.16" // used by TestCustomSGExample and TestRunCustomsgExample
32+
const ocpVersion3 = "4.15" // used by TestRunAdvancedExample
33+
const ocpVersion4 = "4.14" // used by TestRunAddRulesToSGExample
34+
const ocpVersion5 = "4.13" // used by TestCrossKmsSupportExample
35+
const ocpVersion6 = "4.12" // used by TestRunBasicExample
3536

3637
var sharedInfoSvc *cloudinfo.CloudInfoService
3738
var permanentResources map[string]interface{}
@@ -76,7 +77,7 @@ func setupOptions(t *testing.T, prefix string, terraformDir string, ocpVersion s
7677
func TestRunAdvancedExample(t *testing.T) {
7778
t.Parallel()
7879

79-
options := setupOptions(t, "base-ocp-adv", advancedExampleDir, ocpVersion2)
80+
options := setupOptions(t, "base-ocp-adv", advancedExampleDir, ocpVersion3)
8081
options.PostApplyHook = getClusterIngress
8182

8283
output, err := options.RunTestConsistency()

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ variable "ocp_version" {
188188
var.ocp_version == "4.14",
189189
var.ocp_version == "4.15",
190190
var.ocp_version == "4.16",
191+
var.ocp_version == "4.17",
191192
])
192193
error_message = "The specified ocp_version is not of the valid versions."
193194
}

0 commit comments

Comments
 (0)