Skip to content

Commit

Permalink
Adjust ref apps for OCP 4.13 (#2152)
Browse files Browse the repository at this point in the history
Kanister test automation config for OCP 4.13 version

Co-authored-by: Vladislav Naumov <vladislav.naumov@PRG10457-MacBook-Pro.local>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 5, 2023
1 parent e06c278 commit 64f0e1d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ DOCKER_CONFIG ?= "$(HOME)/.docker"
vm-driver ?= "kvm"

# Default OCP version in which the OpenShift apps are going to run
ocp_version ?= "4.12"
ocp_version ?= "4.13"
###
### These variables should not need tweaking.
###
Expand Down
6 changes: 5 additions & 1 deletion build/integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ OC_APPS4_5="MysqlDBDepConfig4_5|MongoDBDepConfig4_5|PostgreSQLDepConfig4_5"
OC_APPS4_10="MysqlDBDepConfig4_10|PostgreSQLDepConfig4_10"
OC_APPS4_11="MysqlDBDepConfig4_11|PostgreSQLDepConfig4_11"
OC_APPS4_12="MysqlDBDepConfig4_12|PostgreSQLDepConfig4_12"
OC_APPS4_13="MysqlDBDepConfig4_13|PostgreSQLDepConfig4_13"

check_dependencies() {
# Check if minio is already deployed
Expand All @@ -59,7 +60,7 @@ Where app-type is one of [short|all]:
all: Runs e2e integration tests for all apps
OR
You can also provide regex to match apps you want to run.
openshift ocp_version=<ocp_version>: Runs e2e integration tests for specific version of OpenShift apps, OCP version can be provided using ocp_version argument. Currently supported versions are 3.11, 4.4, 4.5, 4.10, 4.11, 4.12.
openshift ocp_version=<ocp_version>: Runs e2e integration tests for specific version of OpenShift apps, OCP version can be provided using ocp_version argument. Currently supported versions are 3.11, 4.4, 4.5, 4.10, 4.11, 4.12, 4.13.
EOM
exit 1
Expand Down Expand Up @@ -99,6 +100,9 @@ case "${1}" in
"4.12")
TEST_APPS=${OC_APPS4_12}
;;
"4.13")
TEST_APPS=${OC_APPS4_13}
;;
*)
usage
;;
Expand Down
2 changes: 2 additions & 0 deletions pkg/app/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const (
TemplateVersionOCP4_11 DBTemplate = "release-4.11"
// TemplateVersionOCP4_12 stores version of db template 4.12
TemplateVersionOCP4_12 DBTemplate = "release-4.12"
// TemplateVersionOCP4_13 stores version of db template 4.13
TemplateVersionOCP4_13 DBTemplate = "release-4.13"
)

type storage string
Expand Down
30 changes: 30 additions & 0 deletions pkg/testing/integration_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,3 +520,33 @@ var _ = Suite(&PostgreSQLDepConfig4_12{
profile: newSecretProfile(),
},
})

// MysqlDBDepConfig4_13 for Mysql Instance that is deployed through DeploymentConfig on OpenShift cluster
type MysqlDBDepConfig4_13 struct {
IntegrationSuite
}

var _ = Suite(&MysqlDBDepConfig4_13{
IntegrationSuite{
name: "mysqldc",
namespace: "mysqldc4-13-test",
app: app.NewMysqlDepConfig("mysqldeploymentconfig", app.TemplateVersionOCP4_13, app.EphemeralStorage, "8.0"),
bp: app.NewBlueprint("mysql-dep-config", "", true),
profile: newSecretProfile(),
},
})

// PostgreSQLDepConfig4_13 for PostgreSQL deployed on openshift cluster
type PostgreSQLDepConfig4_13 struct {
IntegrationSuite
}

var _ = Suite(&PostgreSQLDepConfig4_13{
IntegrationSuite{
name: "postgresdepconf",
namespace: "postgresdepconf4-13-test",
app: app.NewPostgreSQLDepConfig("postgresdepconf", app.TemplateVersionOCP4_13, app.EphemeralStorage),
bp: app.NewBlueprint("postgres-dep-config", "", true),
profile: newSecretProfile(),
},
})

0 comments on commit 64f0e1d

Please sign in to comment.