[PR #129] Use Molecule for testing .deb and .rpm packages for self-contained apps #249

Closed
opened 2026-01-29 16:31:35 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/quamotion/dotnet-packaging/pull/129

State: closed
Merged: Yes


We currently use some bash scripts to verify the installation of the .deb and .rpm packages during CI.

This PR replaces that with Molecule. This approach:

  • Uses Docker containers as test environments
  • Uses an Ansible module to push the .rpm/.deb packages to the container
  • Uses testinfra to verify the state of the container. Currently the only test which is executed, is to launch the self-contained app, which should print "Hello, World".

As part of this PR, the dependencies for self-contained apps have also been rationalized to mach what the .NET Core runtime itself requires. Some dependencies (like libcurl, libunwind,...) have been removed.

Fedora currently isn't supported because:

  • It is the only .rpm-based distro which uses a naming convention for packages which differs from those used by RedHat
  • boolean dependencies doesn't seem to work (yet)
**Original Pull Request:** https://github.com/quamotion/dotnet-packaging/pull/129 **State:** closed **Merged:** Yes --- We currently use some bash scripts to verify the installation of the .deb and .rpm packages during CI. This PR replaces that with Molecule. This approach: - Uses Docker containers as test environments - Uses an Ansible module to push the .rpm/.deb packages to the container - Uses testinfra to verify the state of the container. Currently the only test which is executed, is to launch the self-contained app, which should print "Hello, World". As part of this PR, the dependencies for self-contained apps have also been rationalized to mach what the .NET Core runtime itself requires. Some dependencies (like libcurl, libunwind,...) have been removed. Fedora currently isn't supported because: - It is the only .rpm-based distro which uses a naming convention for packages which differs from those used by RedHat - [boolean dependencies](https://rpm.org/user_doc/boolean_dependencies.html) doesn't seem to work (yet)
claunia added the pull-request label 2026-01-29 16:31:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#249