#174 Automate QA:Testcase_Greenboot
Merged 5 years ago by adamwill. Opened 5 years ago by lruzicka.

@@ -0,0 +1,22 @@ 

+ {

+   "area": [

+     {

+       "xpos": 119,

+       "ypos": 97,

+       "width": 42,

+       "height": 13,

+       "type": "match"

+     },

+     {

+       "xpos": 285,

+       "ypos": 95,

+       "width": 62,

+       "height": 16,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "iot_greenboot_passed"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
file modified
+13
@@ -1492,6 +1492,19 @@ 

                  "ROOT_PASSWORD": "weakpassword"

              }

          },

+         "iot_greenboot": {

+             "profiles": {

+                 "fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,

+                 "fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20

+             },

+             "settings": {

+                 "BOOTFROM": "c",

+                 "HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",

+                 "POSTINSTALL": "iot_greenboot",

+                 "ROOT_PASSWORD": "weakpassword",

+                 "START_AFTER_TEST": "install_default_upload"

+             }

+         },

          "mediakit_fileconflicts": {

              "profiles": {

                  "fedora-Server-dvd-iso-aarch64-*-aarch64": 10,

@@ -0,0 +1,37 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ sub run {

+     my $self = shift;

+     # switch to TTY3 for both, graphical and console tests

+     $self->root_console(tty=>3);

+ 

+     # Use ssh to log into this machine to see its status.

+     type_string "ssh test\@localhost\n";

+     sleep 2;

+     # It is very probable that this is the first time that anybody

+     # wants to ssh in. We need to accept the authentication.

+     type_string "yes\n";

+     sleep 1;

+     # Type the user password for this connection and hopefully log in.

+     my $pwd = get_var("USER_PASSWORD") // "weakpassword";

+     type_string "$pwd\n";

+     sleep 2;

+ 

+     # Check that the output is correct as expected.

+     assert_screen "iot_greenboot_passed";

+ 

+     # Logout from the ssh connection.

+     type_string "exit\n";

+ }

+ 

+ 

+ sub test_flags {

+     return { fatal => 1 };

+ }

+ 

+ 1;

+ 

+ # vim: set sw=4 et:

This PR add the OpenQA test for IoT Greenboot and FIXES #171.

rebased onto 183147ccf76faedee49e200a22112a84e0039fd1

5 years ago

Metadata Update from @lruzicka:
- Request assigned

5 years ago

Metadata Update from @lruzicka:
- Pull-request tagged with: newtest
- Request assigned

5 years ago

Build failed.

rebased onto b1a1d319fcf0d9e6e4d5ab78b82a84cc4b3b280a

5 years ago

Build succeeded.

We could probably skip the 'exit' at the end, it's not really necessary. But looks fine, merging. Thanks!

rebased onto ce58475

5 years ago

Pull-Request has been merged by adamwill

5 years ago

Build succeeded.