From c0b9bdb5435dfb84e941eb544b477df25ab68a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sedl=C3=A1k?= Date: Fri, 16 Sep 2016 14:44:03 +0200 Subject: [PATCH] add anaconda rescue test on encrypted disk Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D995 --- .../anaconda_rescue_enter_password.json | 15 ++++++ .../anaconda_rescue_enter_password.png | Bin 0 -> 7277 bytes needles/console/anaconda_rescue_mounted.json | 22 +++++++++ needles/console/anaconda_rescue_mounted.png | Bin 0 -> 8679 bytes needles/console/anaconda_select_rescue.json | 22 +++++++++ needles/console/anaconda_select_rescue.png | Bin 0 -> 6726 bytes templates | 20 ++++++++ tests/rescue_mode_encrypted.pm | 43 ++++++++++++++++++ 8 files changed, 122 insertions(+) create mode 100644 needles/console/anaconda_rescue_enter_password.json create mode 100644 needles/console/anaconda_rescue_enter_password.png create mode 100644 needles/console/anaconda_rescue_mounted.json create mode 100644 needles/console/anaconda_rescue_mounted.png create mode 100644 needles/console/anaconda_select_rescue.json create mode 100644 needles/console/anaconda_select_rescue.png create mode 100644 tests/rescue_mode_encrypted.pm diff --git a/needles/console/anaconda_rescue_enter_password.json b/needles/console/anaconda_rescue_enter_password.json new file mode 100644 index 00000000..f99d8024 --- /dev/null +++ b/needles/console/anaconda_rescue_enter_password.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "area": [ + { + "xpos": 1, + "ypos": 546, + "width": 85, + "height": 12, + "type": "match" + } + ], + "tags": [ + "rescue_enter_pass" + ] +} \ No newline at end of file diff --git a/needles/console/anaconda_rescue_enter_password.png b/needles/console/anaconda_rescue_enter_password.png new file mode 100644 index 0000000000000000000000000000000000000000..8ed76ec5047e1881d327c8872d324e4b6654629b GIT binary patch literal 7277 zcmch6i$7G~_xCwxW*9>m_o>7*@k1CSMQIFCO3Z}FeI&}Aa%VUyC4?j@ViZwwsXp$v zDWP&nnFz&%+?f$_=b4`G@A*F8-}47Nuf5ON>+HSPUTg35-s`M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thcrKuYh4On8GZx9Di*ZAB%n0bee gSQ;sLt-HtJ{ns7$5Fcg!-+$Q9J$p&JRErq#Kjk>}r2qf` literal 0 HcmV?d00001 diff --git a/needles/console/anaconda_select_rescue.json b/needles/console/anaconda_select_rescue.json new file mode 100644 index 00000000..56d1dedf --- /dev/null +++ b/needles/console/anaconda_select_rescue.json @@ -0,0 +1,22 @@ +{ + "area": [ + { + "xpos": 2, + "ypos": 146, + "width": 45, + "height": 13, + "type": "match" + }, + { + "xpos": 55, + "ypos": 434, + "width": 127, + "height": 10, + "type": "match" + } + ], + "tags": [ + "rescue_select" + ], + "properties": [] +} \ No newline at end of file diff --git a/needles/console/anaconda_select_rescue.png b/needles/console/anaconda_select_rescue.png new file mode 100644 index 0000000000000000000000000000000000000000..cf86accdb144a37bc3bb1f1cfd766a3c7f987a6d GIT binary patch literal 6726 zcmdUU2U}B3u<$u2gsO%jT_Dn>ilQ_L0Sh1qSdd;60g(<;r5vy#3WyXbLR1tKLX)bL zpj4?Z(rf4)0wJM?+rXgnv0)tP1Z~E zHOr?L>Dpo;>!*VE+dGMY+>uoK*XP!s;!WA-k@sc6o&>m&usFz>!XRkH;%c5HObP7B zu9eM75p}7;^F`ZFdb0^(h%wKWMy$Q-i?!9qA?x>{)~P;*cZbb`%h>d6=kOtWcQ%J^ zPl{O`3zi$x31wY&!Ljpj`XPaE;g@f%*8K|N-kr}P!6?Shbr5Pn&8$>x( zcw}1PDxj%h>thJ0OJgnZn5PCDhio1w2#N(ha1#2W0qy=jwpq0P3`WlJUpHvL{xzo6 z%9)hW46&`bJ-+^!5td?OY-UjFwwqN^*ha=fc{{O9^O|*KQnxEvFkv{NbR1J)3$sWb z2l|ODeDO2+N}z-#VQ$XDxCCn!#JNEVp0bfPXyV1VfKbB8^`H{Ks+QIWggEXywFtbe zkUOdv(hcR*_Kh?;7ZAL`SDlZNOraC|S!A1*00)RMhQ~w^9@zHDU6QcGuA-PIV6*Tf zij>tv{C!RN8UEF24jP}_qW#OQ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sR+GBO?uJ1ufQ%^Xs%f<7aI}CdqXA)RhC^ScOrSDTQk zXlu1`zn$+zC9{w%R6bRk*dq5Q|5nl0Nx#*#Z3QHXBo<`Y$6I$ji^8|bRuk?2IPM(o zK)i~v^W+5GEh4nNLT { name => "install_anaconda_text" }, }, + { + machine => { name => "64bit" }, + prio => 31, + product => { + arch => "x86_64", + distri => "fedora", + flavor => "universal", + version => "*", + }, + test_suite => { name => "install_rescue_encrypted" }, + }, { machine => { name => "64bit" }, prio => 10, @@ -1469,6 +1480,14 @@ { key => "ANACONDA_TEXT", value => "1" }, ], }, + { + name => "install_rescue_encrypted", + settings => [ + { key => "ENTRYPOINT", value => "rescue_mode_encrypted" }, + { key => "HDD_1", value => "disk_%MACHINE%_encrypted.qcow2" }, + { key => "START_AFTER_TEST", value => "install_simple_encrypted" }, + ], + }, { name => "install_package_set_minimal", settings => [ @@ -1561,6 +1580,7 @@ name => "install_simple_encrypted", settings => [ { key => "ENCRYPT_PASSWORD", value => "weakpassword" }, + { key => "STORE_HDD_1", value => "disk_%MACHINE%_encrypted.qcow2" }, ], }, { diff --git a/tests/rescue_mode_encrypted.pm b/tests/rescue_mode_encrypted.pm new file mode 100644 index 00000000..8a1f80a1 --- /dev/null +++ b/tests/rescue_mode_encrypted.pm @@ -0,0 +1,43 @@ +use base "anacondatest"; +use strict; +use testapi; + +sub run { + # handle bootloader screen + assert_screen "bootloader", 30; + # select troubleshooting + send_key "down"; + send_key "ret"; + # select "rescue system" + type_string "r\n"; + + assert_screen "rescue_select", 120; # it takes time to start anaconda + # continue + type_string "1\n"; + assert_screen "rescue_enter_pass", 60; # it might take time to scan all disks + type_string get_var("ENCRYPT_PASSWORD", "weakpassword"); + send_key "ret"; + assert_screen "rescue_mounted", 60; # it also might take time to mount disk + send_key "ret"; + + # check whether disk was mounted + validate_script_output "mount", sub { $_ =~ m/\/mnt\/sysimage/ }; + # try to access home in chroot + assert_script_run "chroot /mnt/sysimage ls -la /home/test"; + # try to write and read a file + assert_script_run "chroot /mnt/sysimage /bin/bash -c 'echo Hello, world > /tmp/openqa_test'"; + validate_script_output "chroot /mnt/sysimage cat /tmp/openqa_test", sub { $_ =~ m/Hello, world/ }; +} + + +sub test_flags { + # without anything - rollback to 'lastgood' snapshot if failed + # 'fatal' - whole test suite is in danger if this fails + # 'milestone' - after this test succeeds, update 'lastgood' + # 'important' - if this fails, set the overall state to 'fail' + return { fatal => 1 }; +} + +1; + +# vim: set sw=4 et: