Project

General

Profile

Actions

action #122779

closed

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

Automate Software Repositories in ALP

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

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

0%

Estimated time:

Description

Motivation

This module could be used to enable ALP Build Repository:
https://documentation.suse.com/alp/all/single-html/alp/#how-it-works-transactional-update-repositories

The sequence of steps in the test could go like this:

  1. Open yast2 repositories in container (see additional information)
  2. Select explicitly table row 'ALP Build Repository' not relying in the order displayed: example: curl -X POST 'http://<ip>:<port>/v1/widgets?id=table&action=select&value=ALP+Build+Repository&column=Name&row=0'
  3. Enable ALP Build Repository
  4. Refresh All repositories enabled
  5. Press OK
  6. Check repo is enable with the most simple validation (let's put aside some libraries we have to do complex validation, it isn't worth): zypper lr --show-enabled-only | grep 'ALP Build Repository' (avoid short command options for readability)

Scope

All architectures.
Job group: 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 (using directly Pages in the test, without Controllers)
AC2: Implement one Page Object due to the user appears as only one page
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 repositories
In the future we can consider additional checks of the repos (basically read the screen) but things might change too much to do that now.

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

Also available in: Atom PDF