Skip to content

Commit 57957a0

Browse files
authored
feat: added support for ocp v4.16 (#532)
1 parent 90b5c26 commit 57957a0

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

tests/other_test.go

Lines changed: 5 additions & 5 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, ocpVersion4)
14+
options := setupOptions(t, "base-ocp", basicExampleDir, ocpVersion5)
1515

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

@@ -22,7 +22,7 @@ func TestRunBasicExample(t *testing.T) {
2222
func TestRunCustomsgExample(t *testing.T) {
2323
t.Parallel()
2424

25-
options := setupOptions(t, "base-ocp-customsg", customsgExampleDir, ocpVersion1)
25+
options := setupOptions(t, "base-ocp-customsg", customsgExampleDir, ocpVersion2)
2626

2727
output, err := options.RunTestConsistency()
2828

@@ -102,7 +102,7 @@ func TestRunAddRulesToSGExample(t *testing.T) {
102102
// Do not hard fail the test if the implicit destroy steps fail to allow a full destroy of resource to occur
103103
ImplicitRequired: false,
104104
TerraformVars: map[string]interface{}{
105-
"ocp_version": ocpVersion2,
105+
"ocp_version": ocpVersion3,
106106
},
107107
})
108108
output, err := options.RunTestConsistency()
@@ -128,7 +128,7 @@ func TestCustomSGExample(t *testing.T) {
128128
// Do not hard fail the test if the implicit destroy steps fail to allow a full destroy of resource to occur
129129
ImplicitRequired: false,
130130
TerraformVars: map[string]interface{}{
131-
"ocp_version": ocpVersion1,
131+
"ocp_version": ocpVersion2,
132132
},
133133
})
134134
output, err := options.RunTestConsistency()
@@ -147,7 +147,7 @@ func TestCrossKmsSupportExample(t *testing.T) {
147147
"kms_instance_guid": permanentResources["kp_us_south_guid"],
148148
"kms_key_id": permanentResources["kp_us_south_root_key_id"],
149149
"kms_cross_account_id": permanentResources["ge_ops_account_id"],
150-
"ocp_version": ocpVersion3,
150+
"ocp_version": ocpVersion4,
151151
},
152152
ImplicitDestroy: []string{
153153
// 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
@@ -26,10 +26,11 @@ const customsgExampleDir = "examples/custom_sg"
2626
const yamlLocation = "../common-dev-assets/common-go-assets/common-permanent-resources.yaml"
2727

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

3435
var sharedInfoSvc *cloudinfo.CloudInfoService
3536
var permanentResources map[string]interface{}
@@ -74,7 +75,7 @@ func setupOptions(t *testing.T, prefix string, terraformDir string, ocpVersion s
7475
func TestRunAdvancedExample(t *testing.T) {
7576
t.Parallel()
7677

77-
options := setupOptions(t, "base-ocp-adv", advancedExampleDir, ocpVersion2)
78+
options := setupOptions(t, "base-ocp-adv", advancedExampleDir, ocpVersion3)
7879

7980
output, err := options.RunTestConsistency()
8081

@@ -85,7 +86,7 @@ func TestRunAdvancedExample(t *testing.T) {
8586
func TestRunUpgradeAdvancedExample(t *testing.T) {
8687
t.Parallel()
8788

88-
options := setupOptions(t, "base-ocp-upg", advancedExampleDir, ocpVersion1)
89+
options := setupOptions(t, "base-ocp-upg", advancedExampleDir, ocpVersion2)
8990

9091
output, err := options.RunTestUpgrade()
9192
if !options.UpgradeTestSkipped {

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.13",
189189
var.ocp_version == "4.14",
190190
var.ocp_version == "4.15",
191+
var.ocp_version == "4.16",
191192
])
192193
error_message = "The specified ocp_version is not of the valid versions."
193194
}

0 commit comments

Comments
 (0)