Skip to content

Commit

Permalink
[DPE-3857] Test consistency between workload and metadata versions (#186
Browse files Browse the repository at this point in the history
)
  • Loading branch information
deusebio authored Apr 5, 2024
1 parent 4bca995 commit 69ad98e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import requests
from pytest_operator.plugin import OpsTest

from literals import JMX_EXPORTER_PORT, REL_NAME, SECURITY_PROTOCOL_PORTS
from literals import DEPENDENCIES, JMX_EXPORTER_PORT, REL_NAME, SECURITY_PROTOCOL_PORTS

from .helpers import (
APP_NAME,
Expand Down Expand Up @@ -102,6 +102,12 @@ async def test_build_and_deploy(ops_test: OpsTest, kafka_charm):
assert ops_test.model.applications[ZK_NAME].status == "active"


@pytest.mark.abort_on_fail
async def test_consistency_between_workload_and_metadata(ops_test: OpsTest):
application = ops_test.model.applications[APP_NAME]
assert application.data.get("workload-version", "") == DEPENDENCIES["kafka_service"]["version"]


@pytest.mark.abort_on_fail
async def test_remove_zk_relation_relate(ops_test: OpsTest):
remove_relation_cmd = f"remove-relation {APP_NAME} {ZK_NAME}"
Expand Down

0 comments on commit 69ad98e

Please sign in to comment.