Multiple modifications to test suites, tests and needles #1
4
main.pm
@ -171,6 +171,10 @@ sub load_install_tests() {
|
||||
if (get_var('ANACONDA_STATIC')) {
|
||||
autotest::loadtest "tests/_anaconda_network_static.pm";
|
||||
}
|
||||
else {
|
||||
autotest::loadtest "tests/_anaconda_network_enable.pm";
|
||||
}
|
||||
|
||||
|
||||
## Installation source
|
||||
if (get_var('MIRRORLIST_GRAPHICAL') || get_var("REPOSITORY_GRAPHICAL")) {
|
||||
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"width": 35,
|
||||
"xpos": 806,
|
||||
"type": "match",
|
||||
"ypos": 327,
|
||||
"height": 18
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_network_address_add"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 46 KiB |
@ -0,0 +1,27 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 595,
|
||||
"ypos": 133,
|
||||
"width": 83,
|
||||
"height": 17,
|
||||
"type": "match"
|
||||
},
|
||||
{
|
||||
"xpos": 909,
|
||||
"ypos": 114,
|
||||
"width": 69,
|
||||
"height": 17,
|
||||
"type": "match",
|
||||
"click_point": {
|
||||
"xpos": 17.5,
|
||||
"ypos": 7.5
|
||||
}
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_network_connect"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 29 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 133,
|
||||
"type": "match",
|
||||
"xpos": 576,
|
||||
"width": 66,
|
||||
"height": 17
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_network_connected"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 35 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 17,
|
||||
"width": 89,
|
||||
"xpos": 635,
|
||||
"type": "match",
|
||||
"ypos": 205
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_network_ipv4"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 48 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 15,
|
||||
"xpos": 155,
|
||||
"type": "match",
|
||||
"width": 342,
|
||||
"ypos": 255
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_network_method"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 48 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 16,
|
||||
"width": 52,
|
||||
"type": "match",
|
||||
"xpos": 223,
|
||||
"ypos": 312
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_network_method_manual"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 49 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 19,
|
||||
"ypos": 619,
|
||||
"width": 74,
|
||||
"xpos": 901,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_network_configure"
|
||||
]
|
||||
}
|
BIN
needles/anaconda/network/rocky-network_configure-20210813.png
Normal file
After Width: | Height: | Size: 29 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 34,
|
||||
"width": 34,
|
||||
"type": "match",
|
||||
"xpos": 721,
|
||||
"ypos": 340
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_main_hub_network_host_name"
|
||||
]
|
||||
}
|
BIN
needles/anaconda/network/rocky-network_host_name-20210813.png
Normal file
After Width: | Height: | Size: 53 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 34,
|
||||
"ypos": 340,
|
||||
"width": 34,
|
||||
"xpos": 721,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"ENV-DISTRI-rocky",
|
||||
"anaconda_main_hub_network_host_name"
|
||||
]
|
||||
}
|
BIN
needles/anaconda/network/rocky-network_host_name-20210814.png
Normal file
After Width: | Height: | Size: 54 KiB |
45
tests/_anaconda_network_enable.pm
Normal file
@ -0,0 +1,45 @@
|
||||
use base "anacondatest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
use tapnet;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
assert_and_click "anaconda_main_hub_network_host_name";
|
||||
|
||||
#add the stuff here to click the connected button
|
||||
|
||||
assert_and_click "anaconda_network_configure";
|
||||
|
||||
#assert_and_click "anaconda_network_ipv4";
|
||||
#assert_and_click "anaconda_network_method";
|
||||
#assert_and_click "anaconda_network_method_manual";
|
||||
|
||||
#assert_and_click "anaconda_network_address_add";
|
||||
#type_safely get_var('ANACONDA_STATIC');
|
||||
## netmask is automatically set
|
||||
#type_safely "\t\t";
|
||||
## assume gateway
|
||||
#type_safely "172.16.2.2";
|
||||
## move to DNS servers
|
||||
#type_safely "\n\t\t\t";
|
||||
## set DNS from host
|
||||
#type_safely join(',', get_host_dns());
|
||||
#type_safely "\t\t\t\t\t\n";
|
||||
## can take a bit of time as it seems to wait for all the pending
|
||||
## DHCP requests to time out before applying the static config
|
||||
|
||||
|
||||
|
||||
assert_screen "anaconda_network_connected", 90;
|
||||
assert_and_click "anaconda_spoke_done";
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return { fatal => 1 };
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
@ -22,6 +22,7 @@ sub run {
|
||||
# set DNS from host
|
||||
type_safely join(',', get_host_dns());
|
||||
type_safely "\t\t\t\t\t\n";
|
||||
assert_and_click "anaconda_network_connect";
|
||||
# can take a bit of time as it seems to wait for all the pending
|
||||
# DHCP requests to time out before applying the static config
|
||||
assert_screen "anaconda_network_connected", 90;
|
||||
|