[tempest] Fix misspelt relation name in tests

Change relation name in tempest tests for grafana
as grafana-dashboard. This is deducted by more
checks in ops 1.12.0 and hence the py3 failures.
Pass TEST_JUJU3 to tox -e func so that python-libjuju
3.x will be used for zaza tests.

Change-Id: Ia99236a847af2b9ed080ddc6405dcff8b817ea30
This commit is contained in:
Hemanth Nakkina
2024-03-31 13:37:02 +05:30
parent d6ecba7f79
commit 2e085afb26
2 changed files with 3 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ class TestTempestOperatorCharm(test_utils.CharmTestCase):
def add_grafana_dashboard_relation(self, harness):
"""Add grafana dashboard relation."""
rel_id = harness.add_relation("grafana_dashboard", "grafana")
rel_id = harness.add_relation("grafana-dashboard", "grafana")
harness.add_relation_unit(rel_id, "grafana/0")
harness.charm.grafana.interface = Mock()
return rel_id

View File

@@ -89,6 +89,8 @@ passenv =
HOME
PYTHONPATH
setenv =
# Set TEST_JUJU3 To unpin juju<3 in zaza
TEST_JUJU3 = 1
TEST_MODEL_SETTINGS = automatically-retry-hooks=true
TEST_MAX_RESOLVE_COUNT = 5
PYTHONPATH = {toxinidir}/tests/local:{env:PYTHONPATH}