@@ -38,16 +38,13 @@ test() {
# Test unauthenticated connection (should fail)
echo "Test unauthenticated connection (should fail)"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}"
+ _nvme_connect_subsys
_nvme_disconnect_subsys
# Test authenticated connection
echo "Test authenticated connection"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
@@ -41,9 +41,7 @@ test() {
fi
_set_nvmet_hostkey "${def_hostnqn}" "${hostkey}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
@@ -57,9 +55,7 @@ test() {
fi
_set_nvmet_hostkey "${def_hostnqn}" "${hostkey}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
@@ -45,9 +45,7 @@ test() {
_set_nvmet_hash "${def_hostnqn}" "${hash}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
@@ -58,9 +56,7 @@ test() {
_set_nvmet_dhgroup "${def_hostnqn}" "${dhgroup}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
@@ -49,18 +49,14 @@ test() {
# Step 1: Connect with host authentication only
echo "Test host authentication"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
# Step 2: Connect with host authentication
# and invalid ctrl authentication
echo "Test invalid ctrl authentication (should fail)"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${hostkey}"
_nvme_disconnect_subsys
@@ -68,9 +64,7 @@ test() {
# Step 3: Connect with host authentication
# and valid ctrl authentication
echo "Test valid ctrl authentication"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${ctrlkey}"
_nvme_disconnect_subsys
@@ -79,9 +73,7 @@ test() {
# and invalid ctrl key
echo "Test invalid ctrl key (should fail)"
invkey="DHHC-1:00:Jc/My1o0qtLCWRp+sHhAVafdfaS7YQOMYhk9zSmlatobqB8C:"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${invkey}"
_nvme_disconnect_subsys
@@ -51,9 +51,7 @@ test() {
_set_nvmet_dhgroup "${def_hostnqn}" "ffdhe2048"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${ctrlkey}"
echo "Re-authenticate with original host key"
@@ -99,9 +99,7 @@ test() {
_nvmet_target_setup --blkdev file
if [[ -f "${cfs_path}/attr_qid_max" ]] ; then
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --keep-alive-tmo 1 \
+ _nvme_connect_subsys --keep-alive-tmo 1 \
--reconnect-delay 2
if ! nvmf_wait_for_state "${def_subsysnqn}" "live" ; then
There is no point in passing the default values to _nvme_connect_subsys, thus drop these arguments. Signed-off-by: Daniel Wagner <dwagner@suse.de> --- tests/nvme/041 | 7 ++----- tests/nvme/042 | 8 ++------ tests/nvme/043 | 8 ++------ tests/nvme/044 | 16 ++++------------ tests/nvme/045 | 4 +--- tests/nvme/048 | 4 +--- 6 files changed, 12 insertions(+), 35 deletions(-)