Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add distinct OS type for RedHatEnterprise and associated test cases. #107

Merged
merged 4 commits into from
Dec 9, 2019

Conversation

zacbrown
Copy link
Contributor

@zacbrown zacbrown commented Dec 5, 2019

This change adds support for Red Hat Enterprise Linux and provides test cases for RHEL 6, 7, and 8 (the current actively supported versions). This change mirrors the Centos code in that it relies on lsb_release for its version parsing information.

This change creates a new type variant (RedHatEnterprise) which is distinct from Redhat as per Red Hat's nomenclature, the "Red Hat" distribution is defunct as of 2003. It seemed prudent to make the distinction obvious as RHEL is definitely not Red Hat.

- Add parsing for RHEL in lsb_release.rs.
- Add test cases for RHEL 6,7,8.

Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
- Add RedHatEnterprise as a variant to the Linux mod tests.

Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
@zacbrown
Copy link
Contributor Author

zacbrown commented Dec 5, 2019

The lint failure does not appear to be related to my change: https://travis-ci.org/DarkEld3r/os_info/jobs/621258815?utm_medium=notification&utm_source=github_status

Is it a requirement to fix it for my change?

@stanislav-tkach
Copy link
Owner

Sorry for the late replay and thank you for the pull request. You can ignore the lint, I'm going to fix it later as a separate pull request.
I'm going to release these changes tomorrow. Is this OK for you?

@stanislav-tkach stanislav-tkach merged commit 0cfd05e into stanislav-tkach:master Dec 9, 2019
@stanislav-tkach
Copy link
Owner

1.2.0 is released.

@zacbrown
Copy link
Contributor Author

Thanks!

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.

2 participants