Project

General

Profile

Actions

action #122695

closed

coordination #121858: [epic] Automation of YaST in Container

Automate Boot Loader in ALP

Added by JERiveraMoya over 1 year ago. Updated 4 months ago.

Status:
Rejected
Priority:
Low
Assignee:
-
Target version:
-
Start date:
2023-01-04
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Despite Yam squad already have some test module that partially test some of the tabs in this YaST module, the idea is automate a clear user journey, so instead of doing some necessary actions via command line Yam squad will automate the very same actions via UI plus some additional check in the screen to verify that the module read properly the expected configuration and the validation of the fields that were changed. One simple test going through Boot Code Options, Kernel Parameters and Booloader Options that will cover basic actions for all the architectures in ALP.

The test case could just be implemented in a single test module with three blocks of code
1 - Verify with libyui-rest-api Boot Loader Settings: navigate through the 3 tabs verifying each option.
Regarding why is efi for both machines, please read https://suse.slack.com/archives/C02A9423SRY/p1672908919913109
Probably we just need to enable this test for uefi, but let's see what is the answer...
Notice that in alp_default@uefi after booting we start to do some configuration via command line, therefore for this scenario we will not run transactional/host_config (or at least some parts or it, so we can do similar actions that this module does but with the UI).

2 - Perform some actions with the module:

2.1 Nothing to change in Boot Code Options as only GRUB2 for EFI is a valid option for ALP
2.2 In Kernel parameters tab, go to Console resolution and select 1024x768
2.3 In Bootloader Options, go to Timeout in Seconds and select -1

3 - reboot and Validate changes in /boot/grub2/grub.cfg

GRUB_GFXMODE=1024x768
GRUB_TIMEOUT=-1

Scope

All archs, check: https://openqa.opensuse.org/tests/overview?distri=alp&version=0.1&build=20221216&groupid=100

Acceptance criteria

AC1: Automate with libyui-rest-api using POM (without Controllers)
AC2: POM should have 4 pages, including the navigation at the bottom
AC3: Focus on readability of the test (no comments required in general)

Additional information

Enable it in test suite created in #122218
We will access directly to the module (via control center libyui-rest-api doesn't work due to bsc#1206929):
YUI_HTTP_PORT=9999 YUI_HTTP_REMOTE=1 YUI_REUSE_PORT=1 podman container runlabel run registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/yast-mgmt-ncurses-test-api:latest bootloader

Take a look to the example we have for POM without controllers at the moment:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/16072/files

Actions #1

Updated by JERiveraMoya over 1 year ago

  • Subject changed from Automate bootloader Settings with libyui-rest-api to Automate bootloader Settings with libyui-rest-api in ALP
  • Description updated (diff)
Actions #2

Updated by JERiveraMoya over 1 year ago

  • Tags set to qe-yam-refinement
  • Description updated (diff)
Actions #3

Updated by JERiveraMoya over 1 year ago

  • Subject changed from Automate bootloader Settings with libyui-rest-api in ALP to Automate Boot Loader in ALP
Actions #4

Updated by JERiveraMoya over 1 year ago

  • Description updated (diff)
Actions #5

Updated by JERiveraMoya over 1 year ago

  • Tags deleted (qe-yam-refinement)
Actions #6

Updated by JERiveraMoya over 1 year ago

  • Tags set to qe-yam-refinement
  • Description updated (diff)
Actions #7

Updated by JERiveraMoya over 1 year ago

  • Description updated (diff)
Actions #8

Updated by JERiveraMoya over 1 year ago

  • Tags deleted (qe-yam-refinement)
  • Status changed from New to Workable
Actions #9

Updated by JERiveraMoya about 1 year ago

  • Tags set to qe-yam-refinement
  • Target version deleted (Current)
Actions #10

Updated by JERiveraMoya about 1 year ago

  • Target version set to Current
Actions #11

Updated by JERiveraMoya about 1 year ago

  • Target version deleted (Current)
Actions #12

Updated by JERiveraMoya about 1 year ago

  • Tags deleted (qe-yam-refinement)
Actions #13

Updated by JERiveraMoya 11 months ago

  • Status changed from Workable to New
Actions #14

Updated by JERiveraMoya 9 months ago

  • Priority changed from Normal to Low

For ALP the focus will be shifted to Cockpit, so no point to implement this at the moment, needs re-evaluation.

Actions #15

Updated by JERiveraMoya 4 months ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF