canonical/notebook-operators

test_prometheus_data_set unit test failed

NohaIhab opened this issue · 1 comments

After upgrading prometheus scrape library to v0.30 in PR #211 , test_prometheus_data_set unit test is failing with error:

=================================== FAILURES ===================================
___________________________ test_prometheus_data_set ___________________________
Traceback (most recent call last):
  File "/home/runner/work/notebook-operators/notebook-operators/charms/jupyter-controller/tests/unit/test_operator.py", line 80, in test_prometheus_data_set
    assert json.loads(harness.get_relation_data(rel_id, harness.model.app.name)["scrape_jobs"])[0][
KeyError: 'scrape_jobs'

closed by #211