Skip to content

molecule: add tests for network_systemdnetworkd role#919

Draft
dupremathieu wants to merge 1 commit into
seapath:mainfrom
dupremathieu:add-molecule-network-systemdnetworkd
Draft

molecule: add tests for network_systemdnetworkd role#919
dupremathieu wants to merge 1 commit into
seapath:mainfrom
dupremathieu:add-molecule-network-systemdnetworkd

Conversation

@dupremathieu
Copy link
Copy Markdown
Member

No description provided.

@dupremathieu dupremathieu force-pushed the add-molecule-network-systemdnetworkd branch from def07af to 1dd6b31 Compare April 30, 2026 07:29
Add Molecule tests for the network_systemdnetworkd Ansible role using
the Podman driver and the geerlingguy/docker-debian13-ansible image.

Test scenarios covered:
- .link profile generation (10-eth0.link with Match and Link sections)
- .netdev profile generation (20-bridge0.netdev with NetDev section)
- .network profile generation (30-test0.network with Match and Network sections)
- File ownership (root:systemd-network) and permissions (0640)
- systemd-networkd service enablement

The tests exercise the network_simple=true code path and disable
systemd-resolved to avoid container-specific issues.

Also add the missing "namespace: seapath" to meta/main.yml to satisfy
Molecule/Galaxy FQCN requirements.

Signed-off-by: Mathieu Dupré <mathieu.dupre@savoirfairelinux.com>
@dupremathieu dupremathieu force-pushed the add-molecule-network-systemdnetworkd branch from 1dd6b31 to 15bc7cd Compare April 30, 2026 07:34
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.

1 participant