mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 07:13:09 +00:00
always use --nogpgcheck when installing packages
Summary: Except when running on the pre-upgrade release in the upgrade tests (where GPG check should always be OK). Currently we always need to use --nogpgcheck on Rawhide, and we must also use it on Branched prior to the Bodhi activation point. At present we don't really have any simple way to know when the Bodhi activation point has kicked in. We could assume that it's safe to do GPG checking for 'candidate' (not nightly) composes, but even that isn't 100% safe and isn't really the *right* thing to do. So I think for now it's best to just always use --nogpgcheck , until we come up with a decent way to check for Bodhi enablement, or releng figures things out so we can rely on packages being signed in Rawhide and in Branched before Bodhi enablement. Test Plan: Check the tests all still run, make sure I didn't miss any dnf calls. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D964
This commit is contained in:
parent
a625eac820
commit
b7abdf81a9
@ -41,7 +41,7 @@ sub run {
|
|||||||
assert_script_run 'printf "loremipsum" | kinit test1';
|
assert_script_run 'printf "loremipsum" | kinit test1';
|
||||||
# change password via CLI (back to batterystaple, as that's what
|
# change password via CLI (back to batterystaple, as that's what
|
||||||
# freeipa_client test expects)
|
# freeipa_client test expects)
|
||||||
assert_script_run 'dnf -y install freeipa-admintools';
|
assert_script_run 'dnf -y --nogpgcheck install freeipa-admintools';
|
||||||
assert_script_run 'printf "batterystaple\nbatterystaple" | ipa user-mod test1 --password';
|
assert_script_run 'printf "batterystaple\nbatterystaple" | ipa user-mod test1 --password';
|
||||||
# check we can kinit again
|
# check we can kinit again
|
||||||
assert_script_run 'printf "batterystaple" | kinit test1';
|
assert_script_run 'printf "batterystaple" | kinit test1';
|
||||||
|
@ -24,7 +24,7 @@ sub run {
|
|||||||
assert_script_run 'dnf config-manager --set-disabled updates-testing';
|
assert_script_run 'dnf config-manager --set-disabled updates-testing';
|
||||||
# we need a lot of entropy for this, and we don't care how good
|
# we need a lot of entropy for this, and we don't care how good
|
||||||
# it is, so let's use haveged
|
# it is, so let's use haveged
|
||||||
assert_script_run 'dnf -y install haveged', 300;
|
assert_script_run 'dnf -y --nogpgcheck install haveged', 300;
|
||||||
assert_script_run 'systemctl start haveged.service';
|
assert_script_run 'systemctl start haveged.service';
|
||||||
# read DNS server IPs from host's /etc/resolv.conf for passing to
|
# read DNS server IPs from host's /etc/resolv.conf for passing to
|
||||||
# rolectl
|
# rolectl
|
||||||
|
@ -11,8 +11,8 @@ sub run {
|
|||||||
# we don't want updates-testing for validation purposes
|
# we don't want updates-testing for validation purposes
|
||||||
assert_script_run 'dnf config-manager --set-disabled updates-testing';
|
assert_script_run 'dnf config-manager --set-disabled updates-testing';
|
||||||
# install a desktop and firefox so we can actually try it
|
# install a desktop and firefox so we can actually try it
|
||||||
assert_script_run 'dnf -y groupinstall "base-x"', 300;
|
assert_script_run 'dnf -y --nogpgcheck groupinstall "base-x"', 300;
|
||||||
assert_script_run 'dnf -y install firefox', 120;
|
assert_script_run 'dnf -y --nogpgcheck install firefox', 120;
|
||||||
$self->start_cockpit(0);
|
$self->start_cockpit(0);
|
||||||
# quit firefox (return to console)
|
# quit firefox (return to console)
|
||||||
send_key "ctrl-q";
|
send_key "ctrl-q";
|
||||||
|
@ -4,19 +4,10 @@ use testapi;
|
|||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $release = lc(get_var("VERSION"));
|
|
||||||
# NOTE: this doesn't actually work yet, it's a FIXME in fedorabase
|
|
||||||
my $milestone = $self->get_milestone;
|
|
||||||
my $args = "--releasever=${release}";
|
|
||||||
# This is excessive - after the Bodhi activation point we don't
|
|
||||||
# need --nogpgcheck for Branched. But that's hard to detect magically
|
|
||||||
if ($release eq 'rawhide' or $milestone eq 'branched') {
|
|
||||||
$args .= " --nogpgcheck";
|
|
||||||
}
|
|
||||||
# disable screen blanking (download can take a long time)
|
# disable screen blanking (download can take a long time)
|
||||||
script_run "setterm -blank 0";
|
script_run "setterm -blank 0";
|
||||||
|
|
||||||
assert_script_run "dnf -y system-upgrade download ${args}", 6000;
|
assert_script_run "dnf -y --nogpgcheck system-upgrade download", 6000;
|
||||||
|
|
||||||
upload_logs "/var/log/dnf.log";
|
upload_logs "/var/log/dnf.log";
|
||||||
upload_logs "/var/log/dnf.rpm.log";
|
upload_logs "/var/log/dnf.rpm.log";
|
||||||
|
Loading…
Reference in New Issue
Block a user