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

SecurityGroupRuleSettingsUnitTests
----------------------------------

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

SecurityGroupSettingsUnitTests
------------------------------

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

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

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

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

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

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

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

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

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

NetworkSettingsUnitTests
------------------------

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

SubnetSettingsUnitTests
-----------------------

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

PortSettingsUnitTests
---------------------

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

FloatingIpSettingsUnitTests
---------------------------

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

VmInstanceSettingsUnitTests
---------------------------

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