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

new integration tests framework publishing tests #1789

Conversation

moscicky
Copy link
Collaborator

No description provided.

@moscicky moscicky marked this pull request as ready for review November 29, 2023 08:40
@moscicky moscicky changed the title Integration tests framework slow publish tests new integration tests framework publishing tests Nov 29, 2023
@Bean
@Primary
@Profile("integration")
HeadersPropagator traceHeadersPropagator() {
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no need for creating this bean, You can achieve the same with config properties:
"--frontend.header.propagation.enabled=true", "--frontend.header.propagation.allowFilter=" + "Trace-Id, Span-Id, Parent-Span-Id, Trace-Sampled, Trace-Reported",

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch, removed beans

.exchange();
}


Copy link
Contributor

Choose a reason for hiding this comment

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

minor: 2 empty lines

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

"--frontend.handlers.forceTopicMaxMessageSize=true",
"--frontend.throughput.type=fixed",
"--frontend.throughput.fixedMax=" + 50 * 1024L,
"--spring.profiles.active=integration"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could You also turn on this profile in the management app to be consistent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

// given
Topic topic = hermes.initHelper().createTopic(topicWithRandomName().build());
TestSubscriber subscriber = subscribers.createSubscriber();
hermes.initHelper().createSubscription(subscription(topic.getQualifiedName(), "subscription1", subscriber.getEndpoint()).build());
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a function which creates subscription with random name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Which one? And does it matter if topics are random in the first place?

manually sending different Content-Length than the actual message but servlet
container is smart enough to not invoke ReadListener.onAllDataRead() in that case.
*/
@SuppressWarnings("PMD.EmptyCatchBlock")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this SupressWaning needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed

@moscicky moscicky force-pushed the integration_tests_framework_slow_publish_tests branch from fb95701 to 27eaea3 Compare November 30, 2023 11:25
@moscicky moscicky force-pushed the integration_tests_framework_slow_publish_tests branch from 27eaea3 to 94b6c37 Compare November 30, 2023 11:26
@moscicky moscicky merged commit 191091a into integration_tests_framework Nov 30, 2023
7 checks passed
@szczygiel-m szczygiel-m deleted the integration_tests_framework_slow_publish_tests branch November 30, 2023 15:35
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.

3 participants