Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip: fix list
Browse files Browse the repository at this point in the history
DnPlas committed Feb 8, 2024
1 parent b6bffe9 commit db9f3b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
@@ -270,8 +270,10 @@ async def test_prometheus_grafana_integration(ops_test: OpsTest):
assert response_metric["juju_model"] == ops_test.model_name

# Assert the unit is available by checking the query result
# The data is presented as a list [1707357912.349, '1'], where the
# first value is a timestamp and the second value is the state of the unit
# 1 means available, 0 means unavailable
assert response["data"]["result"][0]["value"] == "1"
assert response["data"]["result"][0]["value"][1] == "1"


# Helper to retry calling a function over 30 seconds or 5 attempts

0 comments on commit db9f3b7

Please sign in to comment.