action #40184

action #49508: [functional][epic][y] Automated test for firstboot wizard

[functional][y] new yast2 firstboot wizard test

Added by lnussel over 1 year ago. Updated about 1 year ago.

Status:ResolvedStart date:23/08/2018
Priority:NormalDue date:09/04/2019
Assignee:mloviska% Done:

0%

Category:New testEstimated time:5.00 hours
Target version:SUSE QA tests - Milestone 25
Difficulty:easy
Duration: 164

Description

we lack a test for the yast2 firstboot wizard https://en.opensuse.org/YaST_Firstboot

Most simple test would be to boot a default install image, then

# zypper in yast2-firstboot
# touch /var/lib/YaST2/reconfig_system
# reboot
[click through wizard]

We need at least smoke test to detect that functionality is not completely broken.

Alternative is autoyast installation with firstboot section enabled, e.g. for SLE 15 SP1 (https://www.suse.com/documentation/sles-15/singlehtml/book_autoyast/book_autoyast.html#CreateProfile.Firstboot).

Validation of the SUT is out of scope here, as a first step to automate steps for the functionality.

Acceptance criteria

  1. First boot is validated for all distributions under development

Suggestions

  1. We should try to reuse test modules used in interactive installation
  2. firstboot.pm is not related to this feature, so we should consider to rename it

Related issues

Related to openQA Tests - action #43886: [functional][y][epic][autoyast] autoyast tests for confir... New 23/08/2018

History

#1 Updated by lnussel over 1 year ago

  • Description updated (diff)

#2 Updated by okurz over 1 year ago

  • Subject changed from new yast2 firstboot wizard test to [functional][y] new yast2 firstboot wizard test
  • Target version set to future

#3 Updated by okurz over 1 year ago

  • Copied to action #43886: [functional][y][epic][autoyast] autoyast tests for confirming base license, skipping proposal screen, first boot wizard added

#4 Updated by okurz over 1 year ago

  • Copied to deleted (action #43886: [functional][y][epic][autoyast] autoyast tests for confirming base license, skipping proposal screen, first boot wizard)

#5 Updated by okurz over 1 year ago

  • Related to action #43886: [functional][y][epic][autoyast] autoyast tests for confirming base license, skipping proposal screen, first boot wizard added

#6 Updated by riafarov about 1 year ago

  • Target version changed from future to Milestone 25

#7 Updated by riafarov about 1 year ago

  • Description updated (diff)
  • Due date set to 09/04/2019

#8 Updated by riafarov about 1 year ago

  • Description updated (diff)
  • Estimated time set to 5.00

#9 Updated by riafarov about 1 year ago

  • Parent task set to #49508

#10 Updated by riafarov about 1 year ago

  • Status changed from New to Workable

#11 Updated by mloviska about 1 year ago

  • Assignee set to mloviska

#12 Updated by mloviska about 1 year ago

  • Status changed from Workable to In Progress

#13 Updated by mloviska about 1 year ago

Leap15.1 is missing yast2-firstboot.rpm
http://eris.suse.cz/tests/12792#step/enable_y2_firstboot/6

#15 Updated by lnussel about 1 year ago

your test probably has no repos enabled

#17 Updated by mloviska about 1 year ago

lnussel wrote:

your test probably has no repos enabled

Thanks for the note! However, I can see a difference between Leap15.1 and TW.
First of all, the license agreement view is skipped on TW, but Leap15.1 shows it.
Despite that, the packages seem to be the same, the GUI has the impression as the work on this module is not done yet.

[  338.112675] [RPM][2157]: install yast2-configuration-management-4.1.6-lp151.1.1.noarch: success
[  338.114837] [RPM][2157]: install yast2-configuration-management-4.1.6-lp151.1.1.noarch: success
[  338.117689] [RPM][2157]: Transaction ID 5ca3389b finished: 0
[  338.141721] [RPM][2185]: Transaction ID 5ca3389c started
[  338.401402] [RPM][2185]: install yast2-firstboot-4.1.5-lp151.1.1.noarch: success
[  338.403470] [RPM][2185]: install yast2-firstboot-4.1.5-lp151.1.1.noarch: success


[  427.114464] [RPM][2247]: install yast2-configuration-management-4.1.6-1.1.noarch: success
[  427.117594] [RPM][2247]: install yast2-configuration-management-4.1.6-1.1.noarch: success
[  427.122176] [RPM][2247]: Transaction ID 5c9ce3e8 finished: 0
[  427.148971] [RPM][2301]: Transaction ID 5c9ce3eb started
[  427.460571] [RPM][2301]: install yast2-firstboot-4.1.5-1.1.noarch: success
[  427.462956] [RPM][2301]: install yast2-firstboot-4.1.5-1.1.noarch: success
[  427.467380] [RPM][2301]: Transaction ID 5c9ce3eb finished: 0

Autoyast scenario states that yast2-firstboot package is still missing, I need to do further investigation.

#18 Updated by mloviska about 1 year ago

So leap15.1 iso doesn't contain yast2-firstboot package.

➜  mount -o loop /var/lib/openqa/factory/iso/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20190326-Media.iso /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.
➜  find /mnt -iname "yast2-first*"                                                                     
/mnt/noarch/yast2-firstboot-4.1.5-1.1.noarch.rpm
➜  mount -o loop /var/lib/openqa/factory/iso/openSUSE-Leap-15.1-DVD-x86_64-Build441.4-Media.iso /tmp/mnt
mount: /tmp/mnt: WARNING: device write-protected, mounted read-only.
➜  find /tmp/mnt -iname "yast2-first*"                                                                  
➜ 

#20 Updated by mloviska about 1 year ago

OSD VRs for yast2_firstboot only:

Also available in: Atom PDF