Currently, the endpoint names for relations are defined as constant. e.g. APP_LOGGING, APP_METRICS_ENDPOINT and APP_GRAFANA_DASHBOARD
It would be good if this could be provided as argument for functions. For example, the APP_LOGGING should be the default value for logging endpoint in deploy_and_assert_grafana_agent and assert_logging functions.
To Reproduce
async def test_logging(ops_test):
"""Test logging is defined in relation data bag."""
app = ops_test.model.applications[GRAFANA_AGENT_APP]
await assert_logging(app, endpoint="my-logging")
Bug Description
Currently, the endpoint names for relations are defined as constant. e.g.
APP_LOGGING
,APP_METRICS_ENDPOINT
andAPP_GRAFANA_DASHBOARD
It would be good if this could be provided as argument for functions. For example, the
APP_LOGGING
should be the default value for logging endpoint indeploy_and_assert_grafana_agent
andassert_logging
functions.To Reproduce
Environment
Juju 3.4 Python 3.10
Relevant Log Output
Additional Context
No response