File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,12 @@ func TestGetOSVersion(t *testing.T) {
161
161
expectedOSVersion : "ubuntu 16.04.6 LTS (Xenial Xerus)" ,
162
162
expectErr : false ,
163
163
},
164
+ {
165
+ name : "centos" ,
166
+ fakeOSReleasePath : "testdata/os-release-centos" ,
167
+ expectedOSVersion : "centos 7 (Core)" ,
168
+ expectErr : false ,
169
+ },
164
170
{
165
171
name : "Unknown" ,
166
172
fakeOSReleasePath : "testdata/os-release-unknown" ,
Original file line number Diff line number Diff line change
1
+ NAME="CentOS Linux"
2
+ VERSION="7 (Core)"
3
+ ID="centos"
4
+ ID_LIKE="rhel fedora"
5
+ VERSION_ID="7"
6
+ PRETTY_NAME="CentOS Linux 7 (Core)"
7
+ ANSI_COLOR="0;31"
8
+ CPE_NAME="cpe:/o:centos:centos:7"
9
+ HOME_URL="https://www.centos.org/"
10
+ BUG_REPORT_URL="https://bugs.centos.org/"
11
+
12
+ CENTOS_MANTISBT_PROJECT="CentOS-7"
13
+ CENTOS_MANTISBT_PROJECT_VERSION="7"
14
+ REDHAT_SUPPORT_PRODUCT="centos"
15
+ REDHAT_SUPPORT_PRODUCT_VERSION="7"
You can’t perform that action at this time.
0 commit comments