Skip to content

Commit

Permalink
Fix MySQL local Template. Missing TAG in MYSQL_VERSION definition.
Browse files Browse the repository at this point in the history
Missing also importing imagestream, that is mandatory

Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Nov 6, 2024
1 parent 1f85a41 commit 5f4005e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/test_mysql_local_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@
IMAGE_NAME = os.getenv("IMAGE_NAME")
OS = os.getenv("TARGET")

TAGS = {
"rhel8": "-el8",
"rhel9": "-el9"
}
TAG = TAGS.get(OS, None)


class TestMySQLDeployTemplate:

def setup_method(self):
self.oc_api = OpenShiftAPI(pod_name_prefix="mysql-testing", version=VERSION)
self.oc_api.import_is("imagestreams/mysql-rhel.json", "", skip_check=True)

def teardown_method(self):
self.oc_api.delete_project()
Expand All @@ -38,7 +45,7 @@ def test_template_inside_cluster(self, template):
template=template,
name_in_template="mysql",
openshift_args=[
f"MYSQL_VERSION={VERSION}",
f"MYSQL_VERSION={VERSION}{TAG}",
f"DATABASE_SERVICE_NAME={self.oc_api.pod_name_prefix}",
f"MYSQL_USER=testu",
f"MYSQL_PASSWORD=testp",
Expand Down

0 comments on commit 5f4005e

Please sign in to comment.