blob: 044503e190213331eeb9ba453aab67926aa18860 (
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
SNAPS Unit Testing
==================
| Tests designated as Unit tests extend the unittest.TestCase class and
can be exercised without any external resources
| other than the filesystem. Most of these tests simply ensure that the
configuration settings classes check their
| constructor arguments properly.
The Test Classes
================
FileUtilsTests
--------------
- testFileIsDirectory - ensures that the expected path is a directory
- testFileNotExist - ensures that a file that does not exist returns
False
- testFileExists - ensures that a file that does exist returns True
- testDownloadBadUrl - ensures that an Exception is thrown when
attempting to download a file with a bad URL
- testCirrosImageDownload - ensures that the Cirros image can be
downloaded
- testReadOSEnvFile - ensures that an OpenStack RC file can be properly
parsed
ProxySettingsUnitTests
----------------------
Ensures that all required members are included when constructing a
ProxySettings object
OSCredsUnitTests
----------------
Ensures that all required members are included when constructing a
OSCreds object
SecurityGroupRuleSettingsUnitTests
----------------------------------
Ensures that all required members are included when constructing a
SecurityGroupRuleSettings object
SecurityGroupRuleDomainObjectTests
----------------------------------
Ensures that all required members are included when constructing a
SecurityGroupRule domain object
SecurityGroupSettingsUnitTests
------------------------------
Ensures that all required members are included when constructing a
SecuirtyGroupSettings object
SecurityGroupDomainObjectTests
------------------------------
Ensures that all required members are included when constructing a
SecurityGroup domain object
ImageConfigUnitTests
--------------------
Ensures that all required members are included when constructing a
ImageConfig object
ImageSettingsUnitTests
----------------------
Ensures that all required members are included when constructing a
ImageSettings object (deprecated see ImageConfigUnitTests)
ImageDomainObjectTests
----------------------
Ensures that all required members are included when constructing a
Image domain object
FlavorConfigUnitTests
---------------------
Ensures that all required members are included when constructing a
FlavorConfig object
FlavorSettingsUnitTests
-----------------------
Ensures that all required members are included when constructing a
deprecated FlavorSettings object
FlavorDomainObjectTests
-----------------------
Ensures that all required members are included when constructing a
Flavor domain object
KeypairConfigUnitTests
----------------------
Ensures that all required members are included when constructing a
KeypairConfig object
KeypairSettingsUnitTests
------------------------
Ensures that all required members are included when constructing a
deprecated KeypairSettings object
KeypairDomainObjectTests
------------------------
Ensures that all required members are included when constructing a
Keypair domain object
UserConfigUnitTests
-------------------
Ensures that all required members are included when constructing a
UserConfig object
UserSettingsUnitTests
---------------------
Ensures that all required members are included when constructing a
deprecated UserSettings object
UserDomainObjectTests
---------------------
Ensures that all required members are included when constructing a
User domain object
ProjectConfigUnitTests
----------------------
Ensures that all required members are included when constructing a
ProjectConfig object
ProjectSettingsUnitTests
------------------------
Ensures that all required members are included when constructing a
deprecated ProjectSettings object
ProjectDomainObjectTests
------------------------
Ensures that all required members are included when constructing a
Project domain object
DomainDomainObjectTests
-----------------------
Ensures that all required members are included when constructing a
Domain domain object
ComputeQuotasDomainObjectTests
------------------------------
Ensures that all required members are included when constructing a
ComputeQuotas domain object
NetworkQuotasDomainObjectTests
------------------------------
Ensures that all required members are included when constructing a
NetworkQuotas domain object
RoleDomainObjectTests
---------------------
Ensures that all required members are included when constructing a
Role domain object
NetworkSettingsUnitTests
------------------------
Ensures that all required members are included when constructing a
NetworkSettings object
NetworkObjectTests
------------------
Ensures that all required members are included when constructing a
Network domain object
SubnetSettingsUnitTests
-----------------------
Ensures that all required members are included when constructing a
SubnetSettings object
SubnetObjectTests
-----------------
Ensures that all required members are included when constructing a
Subnet domain object
PortSettingsUnitTests
---------------------
Ensures that all required members are included when constructing a
PortSettings object
PortDomainObjectTests
---------------------
Ensures that all required members are included when constructing a
Port domain object
RouterConfigUnitTests
---------------------
Ensures that all required members are included when constructing a
RouterConfig object
RouterSettingsUnitTests
-----------------------
Ensures that all required members are included when constructing a
deprecated RouterSettings object
RouterDomainObjectTests
-----------------------
Ensures that all required members are included when constructing a
Router domain object
InterfaceRouterDomainObjectTests
--------------------------------
Ensures that all required members are included when constructing a
InterfaceRouter domain object
StackConfigUnitTests
--------------------
Ensures that all required members are included when constructing a
StackConfig object
StackSettingsUnitTests
----------------------
Ensures that all required members are included when constructing a
deprecated StackSettings object
StackDomainObjectTests
----------------------
Ensures that all required members are included when constructing a
Stack domain object (for Heat)
ResourceDomainObjectTests
-------------------------
Ensures that all required members are included when constructing a
Resource domain object (for Heat)
OutputDomainObjectTests
-----------------------
Ensures that all required members are included when constructing a
Output domain object (for Heat)
VolumeConfigUnitTests
---------------------
Ensures that all required members are included when constructing a
VolumeConfig object
VolumeSettingsUnitTests
-----------------------
Ensures that all required members are included when constructing a
deprecated VolumeSettings object
VolumeDomainObjectTests
-----------------------
Ensures that all required members are included when constructing a
Volume domain object (for Cinder)
VolumeTypeConfigUnitTests
-------------------------
Ensures that all required members are included when constructing a
VolumeTypeConfig object
VolumeTypeSettingsUnitTests
---------------------------
Ensures that all required members are included when constructing a
deprecated VolumeTypeSettings object
VolumeTypeDomainObjectTests
---------------------------
Ensures that all required members are included when constructing a
VolumeType domain object (for Cinder)
VolumeTypeEncryptionObjectTests
-------------------------------
Ensures that all required members are included when constructing a
VolumeTypeEncryption domain object (for Cinder)
QoSConfigUnitTests
------------------
Ensures that all required members are included when constructing a
QoSConfig object
QoSSettingsUnitTests
--------------------
Ensures that all required members are included when constructing a
deprecated QoSSettings object
QoSSpecDomainObjectTests
------------------------
Ensures that all required members are included when constructing a
QoSSpec domain object (for Cinder)
VolumeDomainObjectTests
-----------------------
Ensures that all required members are included when constructing a
Volume domain object (for Cinder)
FloatingIpSettingsUnitTests
---------------------------
Ensures that all required members are included when constructing a
FloatingIpSettings object
FloatingIpDomainObjectTests
---------------------------
Ensures that all required members are included when constructing a
FloatingIp domain object
VmInstanceSettingsUnitTests
---------------------------
Ensures that all required members are included when constructing a
VmInstanceSettings object
VmInstDomainObjectTests
-----------------------
Ensures that all required members are included when constructing a
VmInst domain object
SettingsUtilsUnitTests
----------------------
Ensures that the settings_utils.py#create_volume_config() function properly
maps a snaps.domain.Volume object correctly to a
snaps.config.volume.VolumeConfig object as well as a
snaps.domain.VolumeType object to a
snaps.config.volume.VolumeConfig object
Ensures that the settings_utils.py#create_flavor_config() function properly
maps a snaps.domain.Flavor object correctly to a
snaps.config.flavor.FlavorConfig object
|