Change-Id: I39d74043e73aef9e51aca342308b0ec774a9c481 Signed-off-by: Daniel Verkamp <daniel.verkamp@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
|