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

rewrite query endpoint test #1802

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

moscicky
Copy link
Collaborator

@moscicky moscicky commented Dec 15, 2023

All QueryEndpointTests except ones relying on prometheus stub rewritten

@moscicky moscicky marked this pull request as ready for review December 15, 2023 11:48
@@ -59,4 +73,46 @@ public void cutOffConnectionsBetweenBrokersAndClients() {
public void restoreConnectionsBetweenBrokersAndClients() {
kafka.restoreConnectionsBetweenBrokersAndClients();
}

private void removeSubscriptions() {
SubscriptionService service = management.subscriptionService();
Copy link
Member

Choose a reason for hiding this comment

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

question: do you do this via beans instead of HTTP calls because it is easier or there are other reasons?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it is beneficial in two ways:

  • easier to implement
  • should be more reliable (no http client involved)

The downside is that we are using implementation details (services) to clean up the storage. If they were to change test would need to be updated - but I think it is unlikely that it will happen in the foreseeable future

@moscicky moscicky merged commit ba6a9ba into integration_tests_framework Dec 20, 2023
7 checks passed
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