mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +00:00
Create test for IoT Greenboot.
Finish test and add necessary needles. Create IOT needle directory and move needles in it. Delete needle as required by the review. Add to templates.
This commit is contained in:
parent
14b21866f2
commit
ce584750b4
22
needles/iot/iot_greenboot_passed.json
Normal file
22
needles/iot/iot_greenboot_passed.json
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/iot/iot_greenboot_passed.png
Normal file
BIN
needles/iot/iot_greenboot_passed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
@ -1492,6 +1492,19 @@
|
|||||||
"ROOT_PASSWORD": "weakpassword"
|
"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": {
|
"mediakit_fileconflicts": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"fedora-Server-dvd-iso-aarch64-*-aarch64": 10,
|
"fedora-Server-dvd-iso-aarch64-*-aarch64": 10,
|
||||||
|
37
tests/iot_greenboot.pm
Normal file
37
tests/iot_greenboot.pm
Normal file
@ -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:
|
Loading…
Reference in New Issue
Block a user