Project

General

Profile

Actions

action #116500

closed

coordination #121885: [epic] Enable libyui-rest-api for YaST modules

Create new test module which enable libyui-rest-api for yast2_dns_server

Added by lkocman over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2022-09-13
Due date:
% Done:

0%

Estimated time:

Description

Observation

openQA test in scenario opensuse-15.5-DVD-aarch64-yast2_ncurses@aarch64 fails-

Fails since...

  • Fails since (at least) Build 277.3 on Leap 15.5
  • Fails since Build 24.1 on SLE 15 SP5

Apparently current code cannot work:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/yast2_widget_utils.pm#L78
So basically when it works, like in TW is because we are losing the up key, afir there was a modification for send_key_until_needlematch which force always to send the key until needle match, when before if the needle match it wasn't sending any key. Nevertheless, rather than fighting with needles we can create new test module using libyui-rest-api.

Acceptance criteria

AC1: Create new test module which does similar actions and uses libyui-rest-api.
AC2: Enable this test modules in all the places where is failing indicated in this ticket.
AC3: When designing Pages and Controllers follows existing code convention.
AC4: For test design, open module, do some action, close module and validate via command line (do not validate with libyui the screen like we do with needling).
AC5: Encapsulate functionality to change service from #113492 so we can reuse the code for this bits.

Additional info

Problem was first reported for Leap 15.5, but is also occurring on the latest SLE 15 SP5 build.
We will be mapping screens, creating pages and controllers in similar fashion than
#113492
Notice that design is based in doing certain actions in the UI with libyui (without checking the screens with libyui rest api, just the navigation) and then close the module and do the validation with command line. It is very similar to the behavior of this existing test module.


Related issues 2 (0 open2 closed)

Related to qe-yam - action #117403: [qe-yam] UI change test fails in yast2_dns_serverRejected2022-09-29

Actions
Related to qe-yam - action #119455: [y][ppc64le] test fails in yast2_dns_server as "do not start on boot" is not selected in pull down menuResolved2022-10-26

Actions
Actions #1

Updated by lkocman over 1 year ago

  • Subject changed from yast2_dns_server - UI has changed, do not start is now option in listbox needs tweak of test to leap15.5 yast2_dns_server - UI has changed, do not start is now option in listbox needs tweak of test
Actions #2

Updated by maritawerner over 1 year ago

  • Project changed from openQA Tests to qe-yam
  • Category deleted (Bugs in existing tests)
Actions #3

Updated by rainerkoenig over 1 year ago

  • Subject changed from leap15.5 yast2_dns_server - UI has changed, do not start is now option in listbox needs tweak of test to yast2_dns_server - UI has changed, do not start is now option in listbox needs tweak of test
  • Description updated (diff)
Actions #4

Updated by JERiveraMoya over 1 year ago

  • Tags set to qe-yast-refinement
  • Subject changed from yast2_dns_server - UI has changed, do not start is now option in listbox needs tweak of test to Create new test module which enable libyui-rest-api for yast2_dns_server
  • Description updated (diff)
  • Target version set to Current
Actions #5

Updated by JERiveraMoya over 1 year ago

  • Priority changed from Normal to Low
Actions #6

Updated by JERiveraMoya over 1 year ago

  • Tags deleted (qe-yast-refinement)
  • Status changed from New to Workable
  • Priority changed from Low to Normal

sporadic, but it keeps happening.

Actions #7

Updated by leli over 1 year ago

  • Assignee set to leli
Actions #8

Updated by JERiveraMoya over 1 year ago

  • Status changed from Workable to In Progress
Actions #9

Updated by leli over 1 year ago

PR submitted, https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15931

I haven't found a correct folder for the test, it is a ncurse test so shouldn't in yast2_gui, but there is the old yast2_dns_server in console, and I don't think yast2_cmd is the suitable folder for it. So please help for this during the review.

Actions #10

Updated by leli over 1 year ago

  • Status changed from In Progress to Resolved

PR merged, I will keep an eye on the next build of opensuse.

Actions #11

Updated by JERiveraMoya over 1 year ago

  • Parent task set to #121885
Actions #12

Updated by JERiveraMoya about 1 year ago

  • Related to action #117403: [qe-yam] UI change test fails in yast2_dns_server added
Actions #13

Updated by JERiveraMoya about 1 year ago

  • Related to action #119455: [y][ppc64le] test fails in yast2_dns_server as "do not start on boot" is not selected in pull down menu added
Actions

Also available in: Atom PDF