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

Removes finally blocks and add @AfterEach to each ITs to stop running container #118

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

see-quick
Copy link
Member

@see-quick see-quick commented Nov 26, 2024

This PR fixes and removed the finally block and instead added the @AfterEach annotation to IT suites that were missing it.

Solves #100

Signed-off-by: see-quick <maros.orsak159@gmail.com>
@see-quick see-quick added the enhancement New feature or request label Nov 26, 2024
@see-quick see-quick added this to the 0.110.0 milestone Nov 26, 2024
@see-quick see-quick requested a review from a team November 26, 2024 10:05
@see-quick see-quick self-assigned this Nov 26, 2024
@scholzj
Copy link
Member

scholzj commented Nov 26, 2024

I don't follow this. Why should there be no running containers?

Signed-off-by: see-quick <maros.orsak159@gmail.com>
Signed-off-by: see-quick <maros.orsak159@gmail.com>
@see-quick
Copy link
Member Author

I don't follow this. Why should there be no running containers?

Each test case has its resources. Currently, we do not use shared resources across more tests. As I have tested now, there is no need to use that precondition and only @AfterEach is enough.

@see-quick see-quick changed the title Add precondition to ITs that no containers are running Removes finally blocks and add @AfterEach to each ITs to stop running container Nov 26, 2024
@see-quick see-quick merged commit 7bd763d into strimzi:main Nov 29, 2024
7 checks passed
see-quick added a commit to see-quick/test-container that referenced this pull request Dec 4, 2024
… container (strimzi#118)

* Add precondition to ITs that no containers are running

Signed-off-by: see-quick <maros.orsak159@gmail.com>

* not needed filtering

Signed-off-by: see-quick <maros.orsak159@gmail.com>

* also add un-necessary labels

Signed-off-by: see-quick <maros.orsak159@gmail.com>

---------

Signed-off-by: see-quick <maros.orsak159@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add precondition to Integration tests that none containers are running
4 participants