-
Notifications
You must be signed in to change notification settings - Fork 642
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
feat: add network in use check to compose down
#1938
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can you add an integration test for this scenario? |
I may try~ |
Signed-off-by: Retros <[email protected]>
Signed-off-by: Retros <[email protected]>
1e1e873
to
b0e20fd
Compare
Please use a real name, as explained in cncf/foundation#383 (comment) |
7732e5a
to
c878de2
Compare
Please also update your DCO sign in the PR description and squash your commits. |
t.Logf("projectName=%q", projectName) | ||
|
||
base.ComposeCmd("-p", projectName, "-f", compFull.YAMLFullPath(), "up", "-d").AssertOK() | ||
base.ComposeCmd("-p", projectName, "-f", compOrphan.YAMLFullPath(), "down", "-v").AssertCombinedOutContains("is in use") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to clean up the orphan container and related network.
defer base.ComposeCmd("-p", projectName, "-f", compFull.YAMLFullPath(), "down", "--remove-orphans").AssertOK()
c878de2
to
b0701ba
Compare
Signed-off-by: YuRuosheng [email protected]
Close #1425