Project

General

Profile

action #89866

Updated by JRivrain about 3 years ago

I tried to introduce a way to assert clients (modules) using libyui's debug_label in firstboot, but this is not supported at the moment.  

 The idea is to make use of the only element I could find wchich is common to all pages/modules, so we don't need to do a different "is_shown" method for each page. 
 Example: 

 { 
 "class" : "YWizard", 
 "debug_label" : "Welcome", 
 "hstretch" : true, 
 "id" : "wizard", 
 "vstretch" : true 
 } 
 
 So once parent ticket is done and debug_label is supported, we could get rid of assert_screen for the following clients: 

 - welcome 
 - timezone 
 - hostname 
 - registration 

 For now when we send a query like "curl http://server:someport/v1/widgets?debug_label=somedebuglabel" is doing exactly the same as just "curl http://server:someport/v1/widgets" without arguments, it returns a json with all widgets. 
 if we could get "Welcome" returned, so we would have a unique way to assert that we are on the right client/page and maybe send it back to record_info, for example. 

 **Acceptance Criteria:** once parent ticket is done 
 - Find a Verify that the commented code for asserting debug_label works, and if not, make it work, or find another way to assert clients with the debug labels 
 - get rid of the assert_screen calls in the clients mentioned above

Back