summaryrefslogtreecommitdiffstats
path: root/docs/how-to-use/UnitTests.rst
blob: ac42892566e73d2158503cc9d966c411b20013f9 (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
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

ImageSettingsUnitTests
----------------------

Ensures that all required members are included when constructing a
ImageSettings object

ImageDomainObjectTests
----------------------

Ensures that all required members are included when constructing a
Image domain object

FlavorSettingsUnitTests
-----------------------

Ensures that all required members are included when constructing a
FlavorSettings object

FlavorDomainObjectTests
-----------------------

Ensures that all required members are included when constructing a
Flavor domain object

KeypairSettingsUnitTests
------------------------

Ensures that all required members are included when constructing a
KeypairSettings object

KeypairDomainObjectTests
------------------------

Ensures that all required members are included when constructing a
Keypair domain object

UserSettingsUnitTests
---------------------

Ensures that all required members are included when constructing a
UserSettings object

UserDomainObjectTests
---------------------

Ensures that all required members are included when constructing a
User domain object

ProjectSettingsUnitTests
------------------------

Ensures that all required members are included when constructing a
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

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

RouterSettingsUnitTests
-----------------------

Ensures that all required members are included when constructing a
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

StackSettingsUnitTests
----------------------

Ensures that all required members are included when constructing a
StackSettings object

StackDomainObjectTests
----------------------

Ensures that all required members are included when constructing a
Stack domain object

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