Skip to content

Commit

Permalink
fix: Update assert_metrics_endpoint() call
Browse files Browse the repository at this point in the history
  • Loading branch information
orfeas-k committed Dec 9, 2024
1 parent 5aa8468 commit c465c77
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,7 @@ async def test_metrics_enpoint(ops_test: OpsTest):
# metrics_target should be the same as the one defined in the charm code when instantiating
# the MetricsEndpointProvider. It is set to the training-operator Service name because this
# charm is not a sidecar, once this is re-written in sidecar pattern, this value can be *
metrics_target = f"{APP_NAME}-workload.{ops_test.model.name}.svc"
await assert_metrics_endpoint(
app, metrics_port=METRICS_PORT, metrics_path=METRICS_PATH, metrics_target=metrics_target
)
await assert_metrics_endpoint(app, metrics_port=METRICS_PORT, metrics_path=METRICS_PATH)


@pytest.mark.abort_on_fail
Expand Down

0 comments on commit c465c77

Please sign in to comment.