Skip to content

metrics: fix ObserveAPI to be isolated from external status

Alessio Caiazza requested to merge fix-multiple-acceptance-tests into master

What does this MR do and why?

If we run acceptance_test multiple times on the same running metrics server the ObserveAPI test will fail after the first run.

The test assumes that a clean delivery-metrics server is running, but when we run the DeleteAPI test we are removing the histogram counters breaking the test on the second run.

In this merge request, we make sure the ObserveAPI test does not require the counters to be available, assuming the value is 0 when not present.

Author Check-list

  • Has documentation been updated?
Edited by Alessio Caiazza

Merge request reports

Loading