In #97 we implemented cos integration abstraction to test relations with cos, however this issues was missing tests for grafana-dashboard relation.
This should include these two functions:
def assert_grafana_dashboards():
"""
1. Get relation data.
2. Get charm's grafana dashboards using get_grafana_dashboards_from_charm().
3. Assert that returned data contain every grafana dashboard's name.
"""
def get_grafana_dashboards_from_charm()-> dashboards array:
"""
1. Get grafana dashboards from `src/grafana_dashboards` directory
2. Return an array with their names.
"""
What needs to get done
Add functions defined above.
Add unit and integrations tests.
Definition of Done
assert function to check all grafana dashbords in relation data bag.
Context
In #97 we implemented cos integration abstraction to test relations with cos, however this issues was missing tests for grafana-dashboard relation.
This should include these two functions:
What needs to get done
Definition of Done