]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/test/unit/lib/iscsi/tgt_node.c/tgt_node.conf
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / spdk / test / unit / lib / iscsi / tgt_node.c / tgt_node.conf
1 [Global]
2
3 # Test that parsing fails if there is no TargetName
4 [Failure0]
5 TargetAlias "Data Disk1"
6 Mapping PortalGroup1 InitiatorGroup1
7 AuthMethod Auto
8 AuthGroup AuthGroup1
9 UseDigest Auto
10 QueueDepth 128
11 LUN0 Malloc0
12 LUN1 Malloc1
13
14 # Test that parsing fails if there is no Mapping
15 [Failure1]
16 TargetName target1
17 TargetAlias "Data Disk1"
18 AuthMethod Auto
19 AuthGroup AuthGroup1
20 UseDigest Auto
21 QueueDepth 128
22 LUN0 Malloc0
23 LUN1 Malloc1
24
25 # Test that parsing fails if Mapping does not define Portal or InitiatorGroup
26 [Failure2]
27 TargetName target1
28 TargetAlias "Data Disk1"
29 Mapping
30 AuthMethod Auto
31 AuthGroup AuthGroup1
32 UseDigest Auto
33 QueueDepth 128
34 LUN0 Malloc0
35 LUN1 Malloc1
36
37 # Test that parsing fails if Mapping does not define InitiatorGroup
38 [Failure3]
39 TargetName target1
40 TargetAlias "Data Disk1"
41 Mapping PortalGroup1
42 AuthMethod Auto
43 AuthGroup AuthGroup1
44 UseDigest Auto
45 QueueDepth 128
46 LUN0 Malloc0
47 LUN1 Malloc1
48
49 # Test that parsing fails if Mapping switches PortalGroup/InitiatorGroup order
50 [Failure4]
51 TargetName target1
52 TargetAlias "Data Disk1"
53 Mapping InitiatorGroup1 PortalGroup1
54 AuthMethod Auto
55 AuthGroup AuthGroup1
56 UseDigest Auto
57 QueueDepth 128
58 LUN0 Malloc0
59 LUN1 Malloc1
60
61 # Test that parsing fails if Mapping uses invalid InitiatorGroup0
62 [Failure5]
63 TargetName target1
64 TargetAlias "Data Disk1"
65 Mapping PortalGroup1 InitiatorGroup0
66 AuthMethod Auto
67 AuthGroup AuthGroup1
68 UseDigest Auto
69 QueueDepth 128
70 LUN0 Malloc0
71 LUN1 Malloc1
72
73 # Test that parsing fails if Mapping uses invalid PortalGroup0
74 [Failure6]
75 TargetName target1
76 TargetAlias "Data Disk1"
77 Mapping PortalGroup0 InitiatorGroup1
78 AuthMethod Auto
79 AuthGroup AuthGroup1
80 UseDigest Auto
81 QueueDepth 128
82 LUN0 Malloc0
83 LUN1 Malloc1
84
85 # Test that parsing fails if AuthMethod is invalid
86 [Failure7]
87 TargetName target1
88 TargetAlias "Data Disk1"
89 Mapping PortalGroup1 InitiatorGroup1
90 AuthMethod SomeGarbage
91 AuthGroup AuthGroup1
92 UseDigest Auto
93 QueueDepth 128
94 LUN0 Malloc0
95 LUN1 Malloc1