144ba3a1cb
Change-Id: Ibe282aa67de22e062de9d88c3b157c766be9dfae Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/366910 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
96 lines
2.0 KiB
Plaintext
96 lines
2.0 KiB
Plaintext
[Global]
|
|
|
|
# Test that parsing fails if there is no TargetName
|
|
[Failure0]
|
|
TargetAlias "Data Disk1"
|
|
Mapping PortalGroup1 InitiatorGroup1
|
|
AuthMethod Auto
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|
|
|
|
# Test that parsing fails if there is no Mapping
|
|
[Failure1]
|
|
TargetName target1
|
|
TargetAlias "Data Disk1"
|
|
AuthMethod Auto
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|
|
|
|
# Test that parsing fails if Mapping does not define Portal or InitiatorGroup
|
|
[Failure2]
|
|
TargetName target1
|
|
TargetAlias "Data Disk1"
|
|
Mapping
|
|
AuthMethod Auto
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|
|
|
|
# Test that parsing fails if Mapping does not define InitiatorGroup
|
|
[Failure3]
|
|
TargetName target1
|
|
TargetAlias "Data Disk1"
|
|
Mapping PortalGroup1
|
|
AuthMethod Auto
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|
|
|
|
# Test that parsing fails if Mapping switches PortalGroup/InitiatorGroup order
|
|
[Failure4]
|
|
TargetName target1
|
|
TargetAlias "Data Disk1"
|
|
Mapping InitiatorGroup1 PortalGroup1
|
|
AuthMethod Auto
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|
|
|
|
# Test that parsing fails if Mapping uses invalid InitiatorGroup0
|
|
[Failure5]
|
|
TargetName target1
|
|
TargetAlias "Data Disk1"
|
|
Mapping PortalGroup1 InitiatorGroup0
|
|
AuthMethod Auto
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|
|
|
|
# Test that parsing fails if Mapping uses invalid PortalGroup0
|
|
[Failure6]
|
|
TargetName target1
|
|
TargetAlias "Data Disk1"
|
|
Mapping PortalGroup0 InitiatorGroup1
|
|
AuthMethod Auto
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|
|
|
|
# Test that parsing fails if AuthMethod is invalid
|
|
[Failure7]
|
|
TargetName target1
|
|
TargetAlias "Data Disk1"
|
|
Mapping PortalGroup1 InitiatorGroup1
|
|
AuthMethod SomeGarbage
|
|
AuthGroup AuthGroup1
|
|
UseDigest Auto
|
|
QueueDepth 128
|
|
LUN0 Malloc0
|
|
LUN1 Malloc1
|