Skip to content

Commit

Permalink
fix: pin hardware-observer to rev70 (#163)
Browse files Browse the repository at this point in the history
Previously, hardware-observer is showing a metric down, resulting in CI failures.  This change pins to a known working version of hardware observer.

See #161 for more details.
  • Loading branch information
ca-scribner authored Aug 7, 2024
1 parent bdb8daa commit a2efb41
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/integration/test_juju_info_cos_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
from pytest_operator.plugin import OpsTest

agent = SimpleNamespace(name="agent")
hwo = SimpleNamespace(charm="hardware-observer", name="hwo")
# TODO after https://github.com/canonical/grafana-agent-operator/issues/162: Unpin hwo from revision 70
hwo = SimpleNamespace(
entity_url="hardware-observer",
application_name="hwo",
revision=70,
series="jammy",
channel="stable",
)
principal = SimpleNamespace(charm="ubuntu", name="principal")

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -54,7 +61,7 @@ async def test_build_and_deploy(ops_test: OpsTest, grafana_agent_charm):
)

# Hardware Observer
await ops_test.model.deploy(hwo.charm, application_name=hwo.name, series="jammy")
await ops_test.model.deploy(**vars(hwo))

# Placeholder for o11y relations (otherwise grafana agent charm is in blocked status)
await ops_test.model.deploy(
Expand Down

0 comments on commit a2efb41

Please sign in to comment.