action #61901
closed[functional][y] Check if wicked is running for yast command line tests
0%
Description
Motivation¶
As per comment in https://bugzilla.novell.com/show_bug.cgi?id=1148679 Josef has stated that tests require wicked to be running, as yast2 lan in general is useful in case of wicked only.
So, executing this test with NM doesn't make sense in general.
Therefore, test should be executed with wicked setup only. Additionally, we can add such check to simplify investigation, as in case wicked is down, tests will fail.
Updated by okurz almost 5 years ago
- Category set to Enhancement to existing tests
Updated by riafarov almost 5 years ago
- Due date changed from 2020-02-11 to 2020-02-25
Updated by riafarov almost 5 years ago
- Due date changed from 2020-02-25 to 2020-03-10
Updated by JERiveraMoya almost 5 years ago
- Due date changed from 2020-03-10 to 2020-03-24
Updated by JERiveraMoya almost 5 years ago
- Status changed from New to Workable
- Estimated time set to 2.00 h
Updated by ybonatakis almost 5 years ago
- Status changed from Workable to In Progress
- Assignee set to ybonatakis
Updated by ybonatakis almost 5 years ago
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/9746
I have to run a negative test but i think it works just fine.
If systemctl status returns 0 then wicked is running
for any other return code die.
The funtion systemctl uses the output of the script_run. To do so
the function is called with ignore_failure enabled. With the ignore_failure disabled will call the assert_script_run and the return code might be different
Updated by ybonatakis almost 5 years ago
- Status changed from In Progress to Feedback
Updated by ybonatakis almost 5 years ago
Actually we have nothing to do on this ticket as there is already a check introduced by dbe50c9b66. This is checking if NetworkManager is the network controller and returns.
Updated by riafarov almost 5 years ago
- Status changed from Feedback to Workable
I see that this ticket wasn't refined well. We are talking about yast cmd tests here (https://openqa.opensuse.org/tests/1166336#step/yast2_cmdline/24 ) as mentioned in the bug. So the commit you've mentioned doens't address this issue. However, we can easily reuse some parts of the code there.
Updated by ybonatakis almost 5 years ago
- Status changed from Workable to In Progress
Updated by ybonatakis almost 5 years ago
Updated by ybonatakis almost 5 years ago
- Status changed from In Progress to Feedback
Updated by riafarov almost 5 years ago
https://openqa.opensuse.org/tests/overview?distri=opensuse&version=Tumbleweed&build=20200320&groupid=38 yast_ui_devel is scheduled there. Was cancelled because yast2_ncurses fails
Updated by riafarov almost 5 years ago
- Status changed from Feedback to Resolved
riafarov will create follow up ticket to make the test suite work on TW.
Updated by ybonatakis almost 5 years ago
- Copied to action #64731: [functional][y] generate TW image with wicked and use it in yast2_cmdline and nis MM test suites added
Updated by ybonatakis almost 5 years ago
Follow up ticket https://progress.opensuse.org/issues/64731