mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-18 08:33:08 +00:00
df9766b051
Fixes #347. This PR adds two tests to check the EOL written in the /etc/os-release file. The first test checks that the SUPPORT_END value lies at least 12 months in the future. The second test checks the EOL values in Fedora Schedule, Bodhi, and /etc/os-release if they are the same.
35 lines
1.1 KiB
Perl
35 lines
1.1 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
|
|
# Let's get the $target release version.
|
|
my $target = get_release_number();
|
|
# The $current release version is the last stable release
|
|
# around that we want to compare.
|
|
my $current = get_var('CURRREL');
|
|
|
|
# Go to the home directory, create a new directory there
|
|
# and collect the data
|
|
assert_script_run('cd');
|
|
assert_script_run('mkdir version_data');
|
|
assert_script_run('cd version_data');
|
|
|
|
# We will fetch the version data from various locations.
|
|
# Download data from Bodhi for
|
|
assert_script_run("curl -o bodhi-$target.json https://bodhi.fedoraproject.org/releases/F$target");
|
|
# Download data from Fedora Schedule
|
|
assert_script_run("curl -o schedule-$target.json https://fedorapeople.org/groups/schedule/f-$target/f-$target-key.json");
|
|
# Install jq to modify the downloaded jsons and make sure, they will be correctly formed.
|
|
assert_script_run("dnf install -y jq", timeout => 60);
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
1;
|
|
# vim: set sw=4 et:
|