blob: 6bf5aa66406df137546fca7d4295b522daa1bcbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
[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
|