Project

General

Profile

Actions

action #169624

open

Import unknown gnuepg key for packagehub by sending key 'alt-y'

Added by zoecao 10 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2024-11-11
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Fix this failure from migration milestone group:
https://openqa.suse.de/tests/15894526#step/yast2_migration/7
From the autoinst-log, after it matched the import-untrusted-gpg-key-phub-8A49EB0325DB7AE0-text-20241108 needle, it send key 'alt-t':

[2024-11-08T14:29:17.960186Z] [debug] [pid:13767] >>> testapi::_handle_found_needle: found import-untrusted-gpg-key-phub-8A49EB0325DB7AE0-text-20241108, similarity 1.00 @ 437/240
[2024-11-08T14:29:17.960371Z] [debug] [pid:13767] tests/migration/online_migration/yast2_migration.pm:221 called testapi::send_key
[2024-11-08T14:29:17.960477Z] [debug] [pid:13767] <<< testapi::send_key(key="alt-t", wait_screen_change=0)

But from the screen, it asked "Yes" or "No" in 15SP7 testing. I checked the 15-SP6 testing, it asked "Trust" or "Cancel". It may changed on 15SP7. So need to update or add the code to send key 'alt-y' for packagehub.

        if (get_var('SMT_URL') =~ /smt/) {
            assert_screen 'import-untrusted-gpg-key', 180;
            send_key 'alt-t';

From tests/migration/online_migration/yast2_migration.pm

Acceptance criteria

AC1: Adapt the code to send_key 'alt-y' for importing the key for packagehub.

No data to display

Actions

Also available in: Atom PDF