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

When launching a container via @QuarkusIntegrationTest make network available #21316

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Nov 9, 2021

This is pretty much the same as we did in 21287, but it now works
regardless of the presence of DevServices.
The difference with containers launched by DevServices, is that in this
case we now need to manage the creation and deletion of the network,
whereas in the case of DevServices we got that for free
by utilizing testcontainers

Resolves: #19080

…vailable

This is pretty much the same as we did in 21287, but it now works
regardless of the presence of DevServices.
The difference with containers launched by DevServices, is that in this
case we now need to manage the creation and deletion of the network,
whereas in the case of DevServices we got that for free
by utilizing testcontainers

Resolves: quarkusio#19080
@@ -330,6 +335,11 @@ public String networkId() {
return networkId;
}

@Override
public boolean manageNetwork() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this the same as checking if networkId == null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is yeah

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, actually it isn't - we only want to manage the network when it's not already done by test containers.

@geoand geoand merged commit 68fc74b into quarkusio:main Nov 10, 2021
@quarkus-bot quarkus-bot bot added this to the 2.5 - main milestone Nov 10, 2021
@geoand geoand deleted the #19080 branch November 10, 2021 06:39
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.

QuarkusIntegrationTest: Access to DevServices after #18933
3 participants