action #123277
closedcoordination #121858: [epic] Automation of YaST in Container
Automate YaST firewall in ALP
0%
Description
Motivation¶
Another interesting module to tackle with libyui-rest-api for YaST in container is YaST2 firewall.
Prerequisites:
Firewall is activated by default in ALP, so this test assume that we will have some sort of test (or even inside the new test created in this task) that will stop firewalld via command line before interacting with UI with libyui-rest-api and start to send GET and POST calls.
Steps:
- Open YaST2 Firewall in container (directly, not though the control center)
- Check current status is Inactive
- Change Service Configuration to Start/Start on boot
- Navigate to public zone and tab Ports
- Add libyui-rest-api port to TCP Ports
- Accept
- Verify that firewalld is active and enabled
- Check with firewall-cmd that the port is open
Acceptance criteria¶
AC1: Create new test to enable firewall and and open port for libyui-rest-api
AC2: Schedule new test as the first one in the test suite
AC3: Use POM pattern without Controllers to design this test
Additional information¶
We did recent work with firewalld in opensuse/sle but we were still using controllers.
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15496
We could reuse some parts, but we should improve and simplify even more the development not using controllers and providing proper POM.
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 about 2 years ago
- Tags deleted (
qe-yam-refinement) - Status changed from New to Workable
Updated by leli about 2 years ago
- Status changed from Workable to In Progress
- Assignee set to leli
Updated by leli about 2 years ago
1.Open YaST2 Firewall in container (directly, not though the control center)
Now this works on debug job: https://openqa.opensuse.org/tests/3106544#step/podman_yast_firewall/18
Updated by leli about 2 years ago
PR merged for 'Add Distribution provider for ALP', https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/16349
Updated by JERiveraMoya about 2 years ago
- Status changed from In Progress to Workable
Updated by JERiveraMoya about 2 years ago
- Tags set to qe-yam-refinement
- Target version deleted (
Current)
Updated by JERiveraMoya over 1 year ago
- Assignee deleted (
leli) - Priority changed from Normal to Low
Updated by JERiveraMoya over 1 year 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.