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 4 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 #1

Updated by JERiveraMoya over 1 year ago

  • Tags deleted (qe-yam-refinement)
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

  • Description updated (diff)
Actions #4

Updated by JERiveraMoya over 1 year ago

  • Description updated (diff)
Actions #5

Updated by JERiveraMoya over 1 year ago

  • Description updated (diff)
Actions #6

Updated by JERiveraMoya over 1 year ago

  • Description updated (diff)
Actions #7

Updated by JERiveraMoya over 1 year ago

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

Updated by tinawang123 about 1 year ago

  • Assignee set to tinawang123
Actions #9

Updated by tinawang123 about 1 year ago

  • Status changed from Workable to In Progress
Actions #10

Updated by tinawang123 about 1 year ago

Need some background knowledge, for example, ALP, docker, podman, container,k3s, k8s and the relationship among them.

Checked the test code: https://openqa.opensuse.org/tests/2958574/modules/podman/steps/1/src (Test module: /var/lib/openqa/share/tests/alp/tests/containers/container_engine.pm), I thought it use the new branch to store the code as its url is ('/var/lib/openqa/share/tests/alp'), we use '/var/lib/openqa/share/tests/sle' normally. But it seems just link the different filename.
Why do we need 'transactional/enable_selinux' this test module. I checked the document, it seems enable selinux is not a must.
Cannot use VNC to connect ALP worker to do debug
Why we can use command with this url:
registry.opensuse.org/suse/alp/workloads/publish/tumbleweed_containerfiles/suse/alp/workloads/yast-mgmt-ncurses but cannot access this URL?
I can open ncurses of Yast with command: 'podman container runlabel run registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/yast-mgmt-ncurses:latest' by manual testing, why it cannot open it at openQA: https://openqa.opensuse.org/tests/3104682#step/podman_yast2repo/48

Actions #11

Updated by leli about 1 year ago

It's not related with build, we can all focus on the Build and leave aside those other tasks, move them to the bottom of our backlog and/or resolve the parts already done.

Actions #12

Updated by tinawang123 about 1 year ago

VR: https://openqa.opensuse.org/tests/3131682#step/podman_yast2repo/49
Problem: Test died: Configured Software Repositories Page is not displayed at /var/lib/openqa/pool/13/os-autoinst-distri-opensuse/lib/YaST/Y2repoPage.pm line 23.

Actions #13

Updated by JERiveraMoya about 1 year ago

  • Status changed from In Progress to Workable
Actions #14

Updated by JERiveraMoya about 1 year ago

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

Updated by JERiveraMoya about 1 year ago

  • Target version set to Current
Actions #16

Updated by JERiveraMoya about 1 year ago

  • Target version deleted (Current)
Actions #17

Updated by JERiveraMoya about 1 year ago

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

Updated by tinawang123 about 1 year ago

  • Status changed from Workable to In Progress
Actions #19

Updated by JERiveraMoya about 1 year ago

  • Status changed from In Progress to New
Actions #20

Updated by JERiveraMoya 10 months ago

  • Assignee deleted (tinawang123)
Actions #21

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 #22

Updated by JERiveraMoya 4 months ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF