Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate MetricsTest to new test framework #1792

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

piotrrzysko
Copy link
Member

There are three tests remaining in pl.allegro.tech.hermes.integration.MetricsTest to migrate. I skipped them for now due to the following reasons:

  • Two of them require an external dependency (Prometheus) that is not provided by HermesExtension. We will see if similar cases exist in other tests and then determine how to address this.
  • One test has been disabled for seven years and requires direct access to ZooKeeper (which does not align with our new framework). We will decide later what to do with it.

@moscicky moscicky self-assigned this Dec 7, 2023
TestMessage filtered = TestMessage.of("msg", "filtered");

// when
hermes.api().publishWithHeaders(topic.getQualifiedName(), unfiltered.body(), header("Trace-Id", "vte12"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps these 2 should also be published until success?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


import static org.assertj.core.api.Assertions.assertThat;

public class PrometheusMetricsAssertion {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, really clean

@piotrrzysko piotrrzysko merged commit 925164f into integration_tests_framework Dec 12, 2023
7 checks passed
@piotrrzysko piotrrzysko deleted the MetricsTest branch December 12, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants