blob: 7672e4de18e3a7e6d91790b8b3dca9502969f7c5 (
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
|
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. (c) Ericsson AB
===========================================
Tempest Volume test specification
===========================================
Scope
=====
This test area evaluates the ability of a system under test to manage volumes.
The test area specifically validates the creation, the deletion and
the attachment/detach volume operations.
tests.
References
==========
N/A
System Under Test (SUT)
=======================
The system under test is assumed to be the NFVi and VIM in operation on a
Pharos compliant infrastructure.
Test Area Structure
===================
The test area is structured in individual tests as listed below.
For detailed information on the individual steps and assertions performed
by the tests, review the Python source code accessible via the following links:
All these test cases are included in the test case dovetail.tempest.volume of
OVP test suite.
----------------------------------------------
Test Case 1 - Attach Detach Volume to Instance
----------------------------------------------
Test case specification
-----------------------
Implementation: `Attach Detach Volume to Instance <https://github.com/openstack/tempest/blob/17.1.0/tempest/api/volume/test_volumes_actions.py>`_
* tempest.api.volume.test_volumes_actions.VolumesActionsTest.test_attach_detach_volume_to_instance
Test preconditions
------------------
* Volume extension API
Basic test flow execution description and pass/fail criteria
------------------------------------------------------------
Test execution
''''''''''''''
* Test action 1: Create a server VM1
* Test action 2: Attach a provided VOL1 to VM1
* **Test assertion 1:** Verify VOL1 is in 'in-use' status
* Test action 3: Detach VOL1 from VM1
* **Test assertion 2:** Verify detach volume VOL1 successfully and VOL1 is in 'available' status
Pass / fail criteria
''''''''''''''''''''
This test evaluates the volume API ability of attaching a volume to a server
and detaching a volume from a server. Specifically, the test verifies that:
* Volumes can be attached and detached from servers.
In order to pass this test, all test assertions listed in the test execution above need to pass.
Post conditions
---------------
N/A
--------------------------------------
Test Case 2 - Volume Boot Pattern test
--------------------------------------
Test case specification
-----------------------
Implementation: `Volume Boot Pattern test <https://github.com/openstack/tempest/blob/17.1.0/tempest/scenario/test_volume_boot_pattern.py>`_
* tempest.scenario.test_volume_boot_pattern.TestVolumeBootPattern.test_volume_boot_pattern
Test preconditions
------------------
* Volume extension API
Basic test flow execution description and pass/fail criteria
------------------------------------------------------------
Test execution
''''''''''''''
* Test action 1:Create in Cinder some bootable volume VOL1 importing a Glance image
* Test action 2:Boot an instance VM1 from the bootable volume VOL1
* Test action 3:Write content to the VOL1
* Test action 4:Delete VM1 and Boot a new instance VM2 from the volume VOL1
* Test action 5:Check written content in the instance
* **Test assertion 1:** Verify the content of written file in action 3
* Test action 6:Create a volume snapshot VOL2 while the instance VM2 is running
* Test action 7:Boot an additional instance VM3 from the new snapshot based volume VOL2
* Test action 8:Check written content in the instance booted from snapshot
* **Test assertion 2:** Verify the content of written file in action 3
Pass / fail criteria
''''''''''''''''''''
This test evaluates the volume storage consistency. Specifically, the test verifies that:
* The content of written file in the volume.
In order to pass this test, all test assertions listed in the test execution above need to pass.
Post conditions
---------------
N/A
|