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

podman-compose down removes networks #1062

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

tdgroot
Copy link
Contributor

@tdgroot tdgroot commented Oct 17, 2024

Fixes #490

@@ -187,3 +187,33 @@ def test_down_with_orphans(self):
],
1,
)

def test_down_with_network(self):
up_cmd = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you put the commands to inside relevant run_subprocess_assert_returncode?

I do understand you copied the style from the tests, we will fix this inconsistency eventually.

Copy link
Collaborator

@p12tic p12tic left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for working on this.

I just had single stylistic comment.

@tdgroot tdgroot force-pushed the down_removes_network branch 2 times, most recently from 6d07f79 to 27dc6fe Compare October 21, 2024 06:29
@tdgroot
Copy link
Contributor Author

tdgroot commented Oct 21, 2024

@p12tic thanks for your review! I changed the test to reflect the new style.
By the way, I had to run ruff format for the test file to make static check pass

Copy link
Collaborator

@p12tic p12tic left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@p12tic p12tic merged commit 122a914 into containers:main Oct 21, 2024
7 checks passed
@tdgroot tdgroot deleted the down_removes_network branch October 21, 2024 21:10
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.

Executing podman-compose down doesn't remove network
2 participants