Skip to content

libnetwork/iptables: fix TestFirewalldInit#46246

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:fix_TestFirewalldInit
Aug 23, 2023
Merged

libnetwork/iptables: fix TestFirewalldInit#46246
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:fix_TestFirewalldInit

Conversation

@thaJeztah
Copy link
Member

This test didn't make a lot of sense, because checkRunning() depends on the connection package-var being set, which is done by firewalldInit(), so would never be true on its own.

Add a small utility that opens its own D-Bus connection to verify if firewalld is running, and otherwise skips the tests (preserving any error in the process).

- A picture of a cute animal (not mandatory but encouraged)

This test didn't make a lot of sense, because `checkRunning()` depends on
the `connection` package-var being set, which is done by `firewalldInit()`,
so would never be true on its own.

Add a small utility that opens its own D-Bus connection to verify if
firewalld is running, and otherwise skips the tests (preserving any
error in the process).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 25.0.0 milestone Aug 23, 2023
@thaJeztah thaJeztah merged commit 71f4916 into moby:master Aug 23, 2023
@thaJeztah thaJeztah deleted the fix_TestFirewalldInit branch August 23, 2023 17:38
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.

2 participants