goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.6k stars 473 forks source link

Support version comparison schemes for the package managers goss supports #942

Open aelsabbahy opened 4 months ago

aelsabbahy commented 4 months ago

Describe the feature:

Currently goss supports semver-constraint which can be leveraged to test semver strings. However, goss does not currently have support to test other versioning schemes (e.g. rpm, deb, apk, etc.)

Describe the solution you'd like

Goss to support more version schemas:

Unified range language for all *-constraint checks.

Describe alternatives you've considered

There's no good alternative today. One can use string matching or regex, but that is not ideal.

Related issues and links

aelsabbahy commented 4 months ago

I'm interested in doing this effort myself, and will most likely start working on it in the coming weeks. If anyone is interested in some aspects of this work, please let me know on this issue and we can discuss how it can be broken up into smaller pieces.