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

connectionMode STARTORCONNECTANDLEAVE tries to tear down network #1268

Open
julianrschmidt opened this issue Nov 21, 2023 · 0 comments
Open

Comments

@julianrschmidt
Copy link

Issue Overview

In the Cube extension, when the connectionMode is set to STARTORCONNECTANDLEAVE and a Docker network is created during the start of the test, an attempt is made to delete this network at the end of the test. However, this deletion fails because the containers themselves are not deleted, as expected.

Expected Behaviour

The network should not be attempted to be deleted when the connectionMode is set to STARTORCONNECTANDLEAVE, even if it has been created by the test itself.

Current Behaviour

An attempt is made to delete the network, resulting in an exception at the end of the test:

Status 403: error while removing network: network arquillian id xxx has active endpoints

When the network exists before the test is started, the network won't be deleted, and everything works as expected.

Steps To Reproduce
  1. Use the cube extension with connectionMode set to STARTORCONNECTANDLEAVE.
  2. Use the docker extension with a docker compose file specifying a (currently non-exisiting) network.
  3. Run a test.
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

No branches or pull requests

1 participant