goss-org / goss

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

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

Open aelsabbahy opened 2 days ago

aelsabbahy commented 2 days 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 2 days 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.