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

added integration test for wildcard subscriptions #509

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Aug 29, 2023

Fixes: #414

Adds an integration test that verifies that the all signals when starting and stopping a unit will be received by a wildcard monitor subscription with a setup of multiple nodes.

@engelmi engelmi requested a review from dougsland August 29, 2023 06:48
@engelmi engelmi force-pushed the add-integration-test-monitor-unit-changes branch 2 times, most recently from bb5b3df to 3d9125a Compare August 29, 2023 07:33
Fixes: #414
Adds an integration test that verifies that the all
signals when starting and stopping a unit will be
received by a wildcard monitor subscription with a
setup of multiple nodes.

Signed-off-by: Michael Engel <mengel@redhat.com>
@engelmi engelmi force-pushed the add-integration-test-monitor-unit-changes branch from 3d9125a to caa4091 Compare August 29, 2023 07:41
Copy link
Contributor

@dougsland dougsland left a comment

Choose a reason for hiding this comment

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

Just a comment, in my env, I have to change the timeout to 30 instead of 15.
LGTM

@engelmi
Copy link
Member Author

engelmi commented Aug 30, 2023

Just a comment, in my env, I have to change the timeout to 30 instead of 15. LGTM

Do you know which part of the test takes long? If it is the setup, then its probably best to implement a scoped timeout that can be used via a with, e.g. like

with timeout(30, timeout_handler):
   long_running_statement()

Then we can remove the overall timeout and only apply it where it is really needed. This would be a common functionality. I'll have a look into it.

@engelmi engelmi merged commit 372fa1c into main Aug 30, 2023
10 checks passed
@engelmi engelmi deleted the add-integration-test-monitor-unit-changes branch August 30, 2023 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add integration tests: create monitor subscription(s) using wildcard
2 participants