[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