|
Packit Service |
a2ae7a |
(*
|
|
Packit Service |
a2ae7a |
Module: Test_Iscsid
|
|
Packit Service |
a2ae7a |
Provides unit tests and examples for the <Iscsid> lens.
|
|
Packit Service |
a2ae7a |
*)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
module Test_Iscsid =
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Variable: conf
|
|
Packit Service |
a2ae7a |
A full configuration *)
|
|
Packit Service |
a2ae7a |
let conf = "################
|
|
Packit Service |
a2ae7a |
# iSNS settings
|
|
Packit Service |
a2ae7a |
################
|
|
Packit Service |
a2ae7a |
# Address of iSNS server
|
|
Packit Service |
a2ae7a |
isns.address = 127.0.0.1
|
|
Packit Service |
a2ae7a |
isns.port = 3260
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# *************
|
|
Packit Service |
a2ae7a |
# CHAP Settings
|
|
Packit Service |
a2ae7a |
# *************
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# To enable CHAP authentication set node.session.auth.authmethod
|
|
Packit Service |
a2ae7a |
# to CHAP. The default is None.
|
|
Packit Service |
a2ae7a |
node.session.auth.authmethod = CHAP
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# To set a CHAP username and password for initiator
|
|
Packit Service |
a2ae7a |
# authentication by the target(s), uncomment the following lines:
|
|
Packit Service |
a2ae7a |
node.session.auth.username = someuser1
|
|
Packit Service |
a2ae7a |
node.session.auth.password = somep$31#$^&7!
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# To enable CHAP authentication for a discovery session to the target
|
|
Packit Service |
a2ae7a |
# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
|
|
Packit Service |
a2ae7a |
discovery.sendtargets.auth.authmethod = CHAP
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# To set a discovery session CHAP username and password for the initiator
|
|
Packit Service |
a2ae7a |
# authentication by the target(s), uncomment the following lines:
|
|
Packit Service |
a2ae7a |
discovery.sendtargets.auth.username = someuser3
|
|
Packit Service |
a2ae7a |
discovery.sendtargets.auth.password = _09+7)(,./?;'p[]
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Test: Iscsid.lns
|
|
Packit Service |
a2ae7a |
Test the full <conf> *)
|
|
Packit Service |
a2ae7a |
test Iscsid.lns get conf = { "#comment" = "###############" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "iSNS settings" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "###############" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "Address of iSNS server" }
|
|
Packit Service |
a2ae7a |
{ "isns.address" = "127.0.0.1" }
|
|
Packit Service |
a2ae7a |
{ "isns.port" = "3260" }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "*************" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "CHAP Settings" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "*************" }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "To enable CHAP authentication set node.session.auth.authmethod" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "to CHAP. The default is None." }
|
|
Packit Service |
a2ae7a |
{ "node.session.auth.authmethod" = "CHAP" }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "To set a CHAP username and password for initiator" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "authentication by the target(s), uncomment the following lines:" }
|
|
Packit Service |
a2ae7a |
{ "node.session.auth.username" = "someuser1" }
|
|
Packit Service |
a2ae7a |
{ "node.session.auth.password" = "somep$31#$^&7!" }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "To enable CHAP authentication for a discovery session to the target" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "set discovery.sendtargets.auth.authmethod to CHAP. The default is None." }
|
|
Packit Service |
a2ae7a |
{ "discovery.sendtargets.auth.authmethod" = "CHAP" }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "To set a discovery session CHAP username and password for the initiator" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "authentication by the target(s), uncomment the following lines:" }
|
|
Packit Service |
a2ae7a |
{ "discovery.sendtargets.auth.username" = "someuser3" }
|
|
Packit Service |
a2ae7a |
{ "discovery.sendtargets.auth.password" = "_09+7)(,./?;'p[]" }
|