mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-24 11:13:09 +00:00
iSCSI: test user authentication
Summary: This isn't in the criteria, but it's commonly used, so we ought to test this way. Require authentication for the iSCSI target and have the test provide the appropriate auth info. Test Plan: Run the iscsi test and check it works (you need the recent fixes for support_server to make *that* work). Nothing else should be affected. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D1070
This commit is contained in:
parent
0fa6138448
commit
7135a4e05d
@ -110,7 +110,9 @@ sub select_disks {
|
||||
if (%iscsi) {
|
||||
assert_and_click "anaconda_install_destination_add_network_disk";
|
||||
foreach my $target (keys %iscsi) {
|
||||
my $ip = $iscsi{$target};
|
||||
my $ip = $iscsi{$target}->[0];
|
||||
my $user = $iscsi{$target}->[1];
|
||||
my $password = $iscsi{$target}->[2];
|
||||
assert_and_click "anaconda_install_destination_add_iscsi_target";
|
||||
wait_still_screen 2;
|
||||
type_safely $ip;
|
||||
@ -118,6 +120,14 @@ sub select_disks {
|
||||
type_safely $target;
|
||||
# start discovery - three tabs, enter
|
||||
type_safely "\t\t\t\n";
|
||||
if ($user && $password) {
|
||||
assert_and_click "anaconda_install_destination_target_auth_type";
|
||||
assert_and_click "anaconda_install_destination_target_auth_type_chap";
|
||||
send_key "tab";
|
||||
type_safely $user;
|
||||
send_key "tab";
|
||||
type_safely $password;
|
||||
}
|
||||
assert_and_click "anaconda_install_destination_target_login";
|
||||
assert_and_click "anaconda_install_destination_select_target";
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"tags": [
|
||||
"anaconda_install_destination_target_auth_type"
|
||||
],
|
||||
"properties": [],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 426,
|
||||
"ypos": 313,
|
||||
"width": 88,
|
||||
"height": 17,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 425,
|
||||
"ypos": 343,
|
||||
"width": 83,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"anaconda_install_destination_target_auth_type_chap"
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
@ -27,7 +27,7 @@ sub run {
|
||||
## ISCSI
|
||||
|
||||
# start up iscsi target
|
||||
assert_script_run "printf '<target iqn.2016-06.local.domain:support.target1>\n backing-store /dev/vdb\n</target>' > /etc/tgt/conf.d/openqa.conf";
|
||||
assert_script_run "printf '<target iqn.2016-06.local.domain:support.target1>\n backing-store /dev/vdb\n incominguser test weakpassword\n</target>' > /etc/tgt/conf.d/openqa.conf";
|
||||
# open firewall port
|
||||
assert_script_run "firewall-cmd --add-service=iscsi-target";
|
||||
assert_script_run "systemctl restart tgtd.service";
|
||||
|
@ -6,7 +6,7 @@ sub run {
|
||||
my $self = shift;
|
||||
# iscsi config hash
|
||||
my %iscsi;
|
||||
$iscsi{'iqn.2016-06.local.domain:support.target1'} = '10.0.2.110';
|
||||
$iscsi{'iqn.2016-06.local.domain:support.target1'} = ['10.0.2.110', 'test', 'weakpassword'];
|
||||
# Anaconda hub
|
||||
# Go to INSTALLATION DESTINATION and ensure one regular disk
|
||||
# and the iscsi target are selected.
|
||||
|
Loading…
Reference in New Issue
Block a user