test/iscsi: remove reference to auth.conf in calsoft json

Also remove the discovery auth group from the json file,
and use RPC to set it instead.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I597b60a7c7e4de9d7e1719b0145ab2b11c6f26b0

Reviewed-on: https://review.gerrithub.io/434265
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Jim Harris 2018-11-21 11:07:58 -07:00 committed by Ben Walker
parent d808a62db5
commit 027a8e4b54
2 changed files with 2 additions and 3 deletions

View File

@ -44,6 +44,7 @@ echo "iscsi_tgt is listening. Running tests..."
timing_exit start_iscsi_tgt
$rpc_py add_iscsi_auth_group 1 -c 'user:root secret:tester'
$rpc_py set_iscsi_discovery_auth -g 1
$rpc_py add_portal_group $PORTAL_TAG $TARGET_IP:$ISCSI_PORT
$rpc_py add_initiator_group $INITIATOR_TAG $INITIATOR_NAME $NETMASK
$rpc_py construct_malloc_bdev -b MyBdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE

View File

@ -6,10 +6,8 @@
"allow_duplicated_isid": true,
"nop_timeout": 30,
"nop_in_interval": 10,
"discovery_auth_group": 1,
"max_sessions": 256,
"error_recovery_level": 2,
"auth_file": "/usr/local/etc/auth.conf"
"error_recovery_level": 2
},
"method": "set_iscsi_options"
}