summaryrefslogtreecommitdiffstats
path: root/tests/check_proc_test_data.py
blob: 2c59cfafbb074887a8b1baf50d625319d3d6d912 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
nfsEnabled1 = {'rep1': {'brickCount': '2',
                        'bricks': ['10.70.43.33:/bricks/rep1_1',
                                   '10.70.43.33:/bricks/rep1_2'],
                        'bricksInfo': [],
                        'distCount': '2',
                        'options': {},
                        'replicaCount': '2',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': '53496a0c-94eb-46a2-9312-eeb700e9fba5',
                        'volumeName': 'rep1',
                        'volumeStatus': 'ONLINE',
                        'volumeType': 'REPLICATE'},
               'vol1': {'brickCount': '3',
                        'bricks': ['10.70.43.33:/bricks/b1',
                                   '10.70.43.33:/bricks/my-vol1-b2.new',
                                   '10.70.43.33:/bricks/vol1/my-new-brick_b3'],
                        'bricksInfo': [],
                        'distCount': '1',
                        'options': {'features.quota': 'on',
                                    'nfs.disable': 'on'},
                        'replicaCount': '1',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': 'f96856f1-b2c0-4e24-aef0-7f2a01f37b99',
                        'volumeName': 'vol1',
                        'volumeStatus': 'ONLINE',
                        'volumeType': 'DISTRIBUTE'},
               'vol2': {'brickCount': '1',
                        'bricks': ['10.70.43.190:/exports/vol2'],
                        'bricksInfo': [],
                        'distCount': '1',
                        'options': {'features.quota': 'on'},
                        'replicaCount': '1',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': '12817858-77cd-450d-8a70-f8d617db838e',
                        'volumeName': 'vol2',
                        'volumeStatus': 'ONLINE',
                        'volumeType': 'DISTRIBUTE'},
               'vol3': {'brickCount': '1',
                        'bricks': ['10.70.43.190:/exports/vol3'],
                        'bricksInfo': [],
                        'distCount': '1',
                        'options': {},
                        'replicaCount': '1',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': 'a3d0f537-761f-46d3-addd-58c5eeb66b58',
                        'volumeName': 'vol3',
                        'volumeStatus': 'OFFLINE',
                        'volumeType': 'DISTRIBUTE'},
               'vol4': {'brickCount': '2',
                        'bricks': ['10.70.43.190:/bricks/vol3_a',
                                   '10.70.43.190:/bricks/vol3_b'],
                        'bricksInfo': [],
                        'distCount': '2',
                        'options': {},
                        'replicaCount': '2',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': '81201e32-8f14-4fa0-b4ef-23852f2f9a1d',
                        'volumeName': 'vol4',
                        'volumeStatus': 'OFFLINE',
                        'volumeType': 'REPLICATE'},
               'vol5': {'brickCount': '3',
                        'bricks': ['10.70.43.190:/bricks/vol5_a',
                                   '10.70.42.228:/bricks/vol5_b',
                                   '10.70.43.33:/bricks/vol5_c'],
                        'bricksInfo': [],
                        'distCount': '1',
                        'options': {},
                        'replicaCount': '1',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': '69e039dd-e0b1-4069-ad65-99cb26c2d157',
                        'volumeName': 'vol5',
                        'volumeStatus': 'ONLINE',
                        'volumeType': 'DISTRIBUTE'}}

# nfs enabled by default
nfsEnabled2 = {'rep1': {'brickCount': '2',
                        'bricks': ['10.70.43.133:/bricks/rep1_1',
                                   '10.70.43.133:/bricks/rep1_2'],
                        'bricksInfo': [],
                        'distCount': '2',
                        'options': {},
                        'replicaCount': '2',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': '53496a0c-94eb-46a2-9312-eeb700e9fba5',
                        'volumeName': 'rep1',
                        'volumeStatus': 'ONLINE',
                        'volumeType': 'REPLICATE'}}

# NFS enabled using set option
nfsEnabled3 = {'vol1': {'brickCount': '3',
                        'bricks': ['10.70.43.33:/bricks/b1',
                                   '10.70.43.33:/bricks/my-vol1-b2.new',
                                   '10.70.43.33:/bricks/vol1/my-new-brick_b3'],
                        'bricksInfo': [],
                        'distCount': '1',
                        'options': {'features.quota': 'on',
                                    'nfs.disable': 'off'},
                        'replicaCount': '1',
                        'stripeCount': '1',
                        'transportType': ['TCP'],
                        'uuid': 'f96856f1-b2c0-4e24-aef0-7f2a01f37b99',
                        'volumeName': 'vol1',
                        'volumeStatus': 'ONLINE',
                        'volumeType': 'DISTRIBUTE'}}


nfsDisabled1 = {'vol1': {'brickCount': '3',
                         'bricks': ['10.70.43.33:/bricks/b1',
                                    '10.70.43.33:/bricks/my-vol1-b2.new',
                                    '10.70.43.33:/bricks/vol1/my-new_b3'],
                         'bricksInfo': [],
                         'distCount': '1',
                         'options': {'features.quota': 'on',
                                     'nfs.disable': 'on'},
                         'replicaCount': '1',
                         'stripeCount': '1',
                         'transportType': ['TCP'],
                         'uuid': 'f96856f1-b2c0-4e24-aef0-7f2a01f37b99',
                         'volumeName': 'vol1',
                         'volumeStatus': 'ONLINE',
                         'volumeType': 'DISTRIBUTE'},
                'rep1': {'brickCount': '2',
                         'bricks': ['10.70.43.133:/bricks/rep1_1',
                                    '10.70.43.133:/bricks/rep1_2'],
                         'bricksInfo': [],
                         'distCount': '2',
                         'options': {'features.quota': 'on',
                                     'nfs.disable': 'on'},
                         'replicaCount': '2',
                         'stripeCount': '1',
                         'transportType': ['TCP'],
                         'uuid': '53496a0c-94eb-46a2-9312-eeb700e9fba5',
                         'volumeName': 'rep1',
                         'volumeStatus': 'ONLINE',
                         'volumeType': 'REPLICATE'}}


brickTst1 = {'vol1': {'brickCount': '3',
                      'bricks': ['10.70.43.33:/bricks/b1',
                                 '10.70.43.433:/bricks/my-vol1-b2.new',
                                 '10.70.43.33:/bricks/vol1/my-new_b3'],
                      'bricksInfo': [],
                      'distCount': '1',
                      'options': {'features.quota': 'on', 'nfs.disable': 'on'},
                      'replicaCount': '1',
                      'stripeCount': '1',
                      'transportType': ['TCP'],
                      'uuid': 'f96856f1-b2c0-4e24-aef0-7f2a01f37b99',
                      'volumeName': 'vol1',
                      'volumeStatus': 'ONLINE',
                      'volumeType': 'DISTRIBUTE'},
             'rep1': {'brickCount': '2',
                      'bricks': ['10.70.43.133:/bricks/rep1_1',
                                 '10.70.43.133:/bricks/rep1_2'],
                      'bricksInfo': [],
                      'distCount': '2',
                      'options': {'features.quota': 'on', 'nfs.disable': 'on'},
                      'replicaCount': '2',
                      'stripeCount': '1',
                      'transportType': ['TCP'],
                      'uuid': '53496a0c-94eb-46a2-9312-eeb700e9fba5',
                      'volumeName': 'rep1',
                      'volumeStatus': 'ONLINE',
                      'volumeType': 'REPLICATE'}}


brickTst2 = {'vol1': {'brickCount': '3',
                      'bricks': ['10.70.43.133:/bricks/b1',
                                 '10.70.43.233:/bricks/my-vol1-b2.new',
                                 '10.70.43.333:/bricks/vol1/my-new_b3'],
                      'bricksInfo': [],
                      'distCount': '1',
                      'options': {'features.quota': 'on', 'nfs.disable': 'on'},
                      'replicaCount': '1',
                      'stripeCount': '1',
                      'transportType': ['TCP'],
                      'uuid': 'f96856f1-b2c0-4e24-aef0-7f2a01f37b99',
                      'volumeName': 'vol1',
                      'volumeStatus': 'ONLINE',
                      'volumeType': 'DISTRIBUTE'},
             'rep1': {'brickCount': '2',
                      'bricks': ['10.70.43.133:/bricks/rep1_1',
                                 '10.70.43.133:/bricks/rep1_2'],
                      'bricksInfo': [],
                      'distCount': '2',
                      'options': {'features.quota': 'on', 'nfs.disable': 'on'},
                      'replicaCount': '2',
                      'stripeCount': '1',
                      'transportType': ['TCP'],
                      'uuid': '53496a0c-94eb-46a2-9312-eeb700e9fba5',
                      'volumeName': 'rep1',
                      'volumeStatus': 'ONLINE',
                      'volumeType': 'REPLICATE'}}