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

Rewriting tests part 2 #1790

Merged

Conversation

szczygiel-m
Copy link
Contributor

@szczygiel-m szczygiel-m commented Nov 28, 2023

  1. JmsConsumingTest
  2. FilteringJsonTest
  3. FilteringHeadersTest

…n-tests-part1

# Conflicts:
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/ConsumerTestClient.java
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/HermesTestClient.java
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/setup/HermesConsumersTestApp.java
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/setup/HermesExtension.java
…n-tests-part2

# Conflicts:
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/FrontendTestClient.java
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/HermesTestClient.java
…n-tests-part2

# Conflicts:
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/FrontendTestClient.java
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/HermesTestClient.java
#	integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/subscriber/TestJmsSubscriber.java
@szczygiel-m szczygiel-m marked this pull request as ready for review December 8, 2023 09:48
@moscicky moscicky self-assigned this Dec 8, 2023
@RegisterExtension
public static final HermesExtension hermes = new HermesExtension();

@BeforeAll
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's also perform clean up after all

Copy link
Collaborator

@moscicky moscicky left a comment

Choose a reason for hiding this comment

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

One minor issue to fix and then +1 from me

hermes.api().publishUntilSuccess(topic.getQualifiedName(), BOB_GREY.asJson());

// then
subscriber.waitUntilReceived(BOB_GREY.asJson());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd say this check is insufficient because it only checks whether BOB_GREY has been received and does not fail when receiving other messages. Can we add an assertion that only this message was received? This also applies to other filtering tests

@szczygiel-m szczygiel-m merged commit 8aba4db into integration_tests_framework Dec 11, 2023
7 checks passed
@szczygiel-m szczygiel-m deleted the mszczygiel-integration-tests-part2 branch December 11, 2023 10:08
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

2 participants