action #122779
closedcoordination #121858: [epic] Automation of YaST in Container
Automate Software Repositories in ALP
0%
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:
- Open
yast2 repositories
in container (see additional information) - 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'
- Enable ALP Build Repository
- Refresh All repositories enabled
- Press OK
- 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
Updated by JERiveraMoya over 1 year ago
- Tags set to qe-yam-refinement
- Description updated (diff)
Updated by JERiveraMoya over 1 year ago
- Tags deleted (
qe-yam-refinement) - Status changed from New to Workable
Updated by tinawang123 about 1 year ago
- Status changed from Workable to In Progress
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
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.
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.
Updated by JERiveraMoya about 1 year ago
- Status changed from In Progress to Workable
Updated by JERiveraMoya about 1 year ago
- Tags set to qe-yam-refinement
- Target version deleted (
Current)
Updated by tinawang123 about 1 year ago
- Status changed from Workable to In Progress
Updated by JERiveraMoya about 1 year ago
- Status changed from In Progress to New
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.