diff --git a/main.pm b/main.pm index 95009134..65eaaf48 100644 --- a/main.pm +++ b/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")) { diff --git a/needles/anaconda/network/rocky-anaconda_network_address_add-20210813.json b/needles/anaconda/network/rocky-anaconda_network_address_add-20210813.json new file mode 100644 index 00000000..71755cf4 --- /dev/null +++ b/needles/anaconda/network/rocky-anaconda_network_address_add-20210813.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "width": 35, + "xpos": 806, + "type": "match", + "ypos": 327, + "height": 18 + } + ], + "properties": [], + "tags": [ + "ENV-DISTRI-rocky", + "anaconda_network_address_add" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-anaconda_network_address_add-20210813.png b/needles/anaconda/network/rocky-anaconda_network_address_add-20210813.png new file mode 100644 index 00000000..852a08ee Binary files /dev/null and b/needles/anaconda/network/rocky-anaconda_network_address_add-20210813.png differ diff --git a/needles/anaconda/network/rocky-anaconda_network_connect-20210813.json b/needles/anaconda/network/rocky-anaconda_network_connect-20210813.json new file mode 100644 index 00000000..cf346b73 --- /dev/null +++ b/needles/anaconda/network/rocky-anaconda_network_connect-20210813.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-anaconda_network_connect-20210813.png b/needles/anaconda/network/rocky-anaconda_network_connect-20210813.png new file mode 100644 index 00000000..cc8c202b Binary files /dev/null and b/needles/anaconda/network/rocky-anaconda_network_connect-20210813.png differ diff --git a/needles/anaconda/network/rocky-anaconda_network_connected-20210813.json b/needles/anaconda/network/rocky-anaconda_network_connected-20210813.json new file mode 100644 index 00000000..5fe4c147 --- /dev/null +++ b/needles/anaconda/network/rocky-anaconda_network_connected-20210813.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "ypos": 133, + "type": "match", + "xpos": 576, + "width": 66, + "height": 17 + } + ], + "properties": [], + "tags": [ + "ENV-DISTRI-rocky", + "anaconda_network_connected" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-anaconda_network_connected-20210813.png b/needles/anaconda/network/rocky-anaconda_network_connected-20210813.png new file mode 100644 index 00000000..04f46665 Binary files /dev/null and b/needles/anaconda/network/rocky-anaconda_network_connected-20210813.png differ diff --git a/needles/anaconda/network/rocky-anaconda_network_ipv4-20210813.json b/needles/anaconda/network/rocky-anaconda_network_ipv4-20210813.json new file mode 100644 index 00000000..0c43c969 --- /dev/null +++ b/needles/anaconda/network/rocky-anaconda_network_ipv4-20210813.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 17, + "width": 89, + "xpos": 635, + "type": "match", + "ypos": 205 + } + ], + "properties": [], + "tags": [ + "ENV-DISTRI-rocky", + "anaconda_network_ipv4" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-anaconda_network_ipv4-20210813.png b/needles/anaconda/network/rocky-anaconda_network_ipv4-20210813.png new file mode 100644 index 00000000..0ffeab81 Binary files /dev/null and b/needles/anaconda/network/rocky-anaconda_network_ipv4-20210813.png differ diff --git a/needles/anaconda/network/rocky-anaconda_network_method-20210813.json b/needles/anaconda/network/rocky-anaconda_network_method-20210813.json new file mode 100644 index 00000000..f6b4e279 --- /dev/null +++ b/needles/anaconda/network/rocky-anaconda_network_method-20210813.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 15, + "xpos": 155, + "type": "match", + "width": 342, + "ypos": 255 + } + ], + "properties": [], + "tags": [ + "ENV-DISTRI-rocky", + "anaconda_network_method" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-anaconda_network_method-20210813.png b/needles/anaconda/network/rocky-anaconda_network_method-20210813.png new file mode 100644 index 00000000..cdf8dccd Binary files /dev/null and b/needles/anaconda/network/rocky-anaconda_network_method-20210813.png differ diff --git a/needles/anaconda/network/rocky-anaconda_network_method_manual-20210813.json b/needles/anaconda/network/rocky-anaconda_network_method_manual-20210813.json new file mode 100644 index 00000000..2541602f --- /dev/null +++ b/needles/anaconda/network/rocky-anaconda_network_method_manual-20210813.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 16, + "width": 52, + "type": "match", + "xpos": 223, + "ypos": 312 + } + ], + "properties": [], + "tags": [ + "ENV-DISTRI-rocky", + "anaconda_network_method_manual" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-anaconda_network_method_manual-20210813.png b/needles/anaconda/network/rocky-anaconda_network_method_manual-20210813.png new file mode 100644 index 00000000..b9edfd23 Binary files /dev/null and b/needles/anaconda/network/rocky-anaconda_network_method_manual-20210813.png differ diff --git a/needles/anaconda/network/rocky-network_configure-20210813.json b/needles/anaconda/network/rocky-network_configure-20210813.json new file mode 100644 index 00000000..5853a344 --- /dev/null +++ b/needles/anaconda/network/rocky-network_configure-20210813.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 19, + "ypos": 619, + "width": 74, + "xpos": 901, + "type": "match" + } + ], + "properties": [], + "tags": [ + "ENV-DISTRI-rocky", + "anaconda_network_configure" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-network_configure-20210813.png b/needles/anaconda/network/rocky-network_configure-20210813.png new file mode 100644 index 00000000..fc3b0ee4 Binary files /dev/null and b/needles/anaconda/network/rocky-network_configure-20210813.png differ diff --git a/needles/anaconda/network/rocky-network_host_name-20210813.json b/needles/anaconda/network/rocky-network_host_name-20210813.json new file mode 100644 index 00000000..b4b3c9e0 --- /dev/null +++ b/needles/anaconda/network/rocky-network_host_name-20210813.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-network_host_name-20210813.png b/needles/anaconda/network/rocky-network_host_name-20210813.png new file mode 100644 index 00000000..98ff7ee9 Binary files /dev/null and b/needles/anaconda/network/rocky-network_host_name-20210813.png differ diff --git a/needles/anaconda/network/rocky-network_host_name-20210814.json b/needles/anaconda/network/rocky-network_host_name-20210814.json new file mode 100644 index 00000000..e221785f --- /dev/null +++ b/needles/anaconda/network/rocky-network_host_name-20210814.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/anaconda/network/rocky-network_host_name-20210814.png b/needles/anaconda/network/rocky-network_host_name-20210814.png new file mode 100644 index 00000000..3484b01c Binary files /dev/null and b/needles/anaconda/network/rocky-network_host_name-20210814.png differ diff --git a/tests/_anaconda_network_enable.pm b/tests/_anaconda_network_enable.pm new file mode 100644 index 00000000..9890c42c --- /dev/null +++ b/tests/_anaconda_network_enable.pm @@ -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: diff --git a/tests/_anaconda_network_static.pm b/tests/_anaconda_network_static.pm index d628224b..a9f95173 100644 --- a/tests/_anaconda_network_static.pm +++ b/tests/_anaconda_network_static.pm @@ -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;