-
Notifications
You must be signed in to change notification settings - Fork 218
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
new integration tests framework publishing tests #1789
Conversation
@Bean | ||
@Primary | ||
@Profile("integration") | ||
HeadersPropagator traceHeadersPropagator() { |
There was a problem hiding this comment.
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",
There was a problem hiding this comment.
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(); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: 2 empty lines
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this SupressWaning needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
fb95701
to
27eaea3
Compare
27eaea3
to
94b6c37
Compare
No description provided.