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 openSUSE test data #220

Merged
merged 1 commit into from
Oct 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ protected PlatformDetails computeLabels(
PREFERRED_LINUX_OS_NAMES.put("linuxmint", "LinuxMint");
PREFERRED_LINUX_OS_NAMES.put("ol", "OracleServer");
PREFERRED_LINUX_OS_NAMES.put("opensuse", "openSUSE");
PREFERRED_LINUX_OS_NAMES.put("opensuse-leap", "openSUSE");
PREFERRED_LINUX_OS_NAMES.put("opensuse-tumbleweed", "openSUSE");
PREFERRED_LINUX_OS_NAMES.put("raspbian", "Raspbian");
PREFERRED_LINUX_OS_NAMES.put("Red Hat Enterprise Linux", "RedHatEnterprise");
PREFERRED_LINUX_OS_NAMES.put("Red Hat Enterprise Linux Server", "RedHatEnterprise");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ private static String computeExpectedName(String filename) {
if (filename.contains("sles")) {
return "SUSE";
}
if (filename.contains("opensuse-leap")) {
return "openSUSE";
}
if (filename.contains("opensuse-tumbleweed")) {
return "openSUSE";
}
return filename.toLowerCase(Locale.ENGLISH);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ private static String computeExpectedName(String filename) {
if (filename.contains("linuxmint")) {
return "LinuxMint";
}
if (filename.contains("opensuse")) {
return "openSUSE";
}
if (filename.contains("oraclelinux")) {
return "OracleServer";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ private void assertPlatformDetails(PlatformDetails details) {
is("AmazonAMI"),
is("CentOS"),
is("Debian"),
is("openSUSE"),
is("Raspbian"),
is("Ubuntu")));
// Yes, this is a dirty trick to detect the hardware architecture on some JVM's
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM opensuse/leap:15.2
RUN zypper --non-interactive install -y lsb-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LSB Version: n/a
Distributor ID: openSUSE
Description: openSUSE Leap 15.2
Release: 15.2
Codename: n/a
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NAME="openSUSE Leap"
VERSION="15.2"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.2"
PRETTY_NAME="openSUSE Leap 15.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM opensuse/tumbleweed
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
NAME="openSUSE Tumbleweed"
# VERSION="20201004"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20201004"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20201004"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo"