Skip to content

Commit 7804686

Browse files
author
Prasanna Santhanam
committed
uniting the READMEs
Many READMEs spread over the integration and marvin test related information can now be found in the single top-level directory
1 parent d1e2600 commit 7804686

6 files changed

Lines changed: 78 additions & 103 deletions

File tree

test/integration/README

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,69 @@ details about your cloudstack deployment. For more help on how to write the
66
config file and run tests check the tutorial at :
77

88
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Testing+with+Python
9+
10+
==========================
11+
Build Verification Testing (BVT) Cases
12+
--------------------------------------
13+
These test cases are the core functionality tests that ensure the application is stable and can be tested thoroughly.
14+
These BVT cases definitions are located at : https://docs.google.com/a/cloud.com/spreadsheet/ccc?key=0Ak8acbfxQG8ndEppOGZSLV9mUF9idjVkTkZkajhTZkE&invite=CPij0K0L
15+
16+
Guidelines
17+
----------
18+
BVT test cases are being developed using Python's unittests2. Following are certain guidelines being followed
19+
1. Tests exercised for the same resource should ideally be present under a single suite or file.
20+
21+
2. Time-consuming operations that create new cloud resources like server creation, volume creation etc
22+
should not necessarily be exercised per unit test. The resources can be shared by creating them at
23+
the class-level using setUpClass and shared across all instances during a single run.
24+
25+
3. Certain tests pertaining to NAT, Firewall and Load Balancing warrant fresh resources per test. Hence a call should be
26+
taken by the stakeholders regarding sharing resources.
27+
28+
4. Ensure that the tearDown/tearDownClass functions clean up all the resources created during the test run.
29+
30+
For more information about unittests: http://docs.python.org/library/unittest.html
31+
32+
BVT Tests
33+
----------
34+
The following files contain these BVT cases:
35+
36+
1. test_vm_life_cycle.py - VM Life Cycle tests
37+
2. test_volumes.py - Volumes related tests
38+
3. test_snapshots.py - Snapshots related tests
39+
4. test_disk_offerings.py - Disk Offerings related tests
40+
5. test_service_offerings.py - Service Offerings related tests
41+
6. test_hosts.py - Hosts and Clusters related tests
42+
7. test_iso.py - ISO related tests
43+
8. test_network.py - Network related tests
44+
9. test_primary_storage.py - Primary storage related tests
45+
10. test_secondary_storage.py - Secondary storage related tests
46+
11. test_ssvm.py - SSVM & CPVM related tests
47+
12. test_templates.py - Templates related tests
48+
13. test_routers.py - Router related tests
49+
50+
==========================
51+
52+
P1 Cases
53+
--------------------------------------
54+
These test cases are the core functionality tests that ensure the application is stable and can be tested thoroughly.
55+
These P1 cases definitions are located at : https://docs.google.com/a/clogeny.com/spreadsheet/ccc?key=0Aq5M2ldK6eyedDJBa0EzM0RPNmdVNVZOWnFnOVJJcHc&hl=en_US
56+
57+
P1 Tests
58+
----------
59+
The following files contain these P1 cases:
60+
61+
1. test_snapshots.py - Snapshots related tests
62+
2. test_routers.py - Router related tests
63+
3. test_usage.py - Usage realted tests
64+
4. test_account.py - Account related tests
65+
5. test_resource_limits.py - Resource limits tests
66+
6. test_security_groups.py - Security groups related tests
67+
7. test_templates.py - templates related tests
68+
8. test_volumes.py - Volumes related tests
69+
9. test_blocker_bugs.py - Blocker bugs tests
70+
10. test_project_configs.py - Project global configuration related tests
71+
11. test_project_limits.py - Project resource limits related tests
72+
12. test_project_resources.py - Project resource creation related tests
73+
13. test_project_usage.py - Project usage related tests
74+
14. test_projects - Projects functionality tests

test/integration/component/README

Lines changed: 0 additions & 41 deletions
This file was deleted.

test/integration/smoke/README

Lines changed: 0 additions & 41 deletions
This file was deleted.

tools/marvin/README

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ unittests and functional tests with Marvin makes testing with cloudstack easier
1212
3. remote ssh login/execute command
1313
4. mysql query
1414

15-
3. sample code is under sandbox
15+
3. sample code is under sandbox. To generate the config for a deployment.
16+
17+
Alter the .properties file in the sandbox. For example the
18+
simualtordemo.properties after modification can generate the config file as
19+
shown below
20+
21+
$ python simulator_setup.py -i simulatordemo.properties -o simulatordemo.cfg
22+
23+
To deploy the environment and run the tests
24+
25+
$ python -m marvin.deployAndRun -c simulatordemo.cfg -t /tmp/t.log -r /tmp/r.log -d testcase
1626

1727
4. WIKI page
1828
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Testing+with+Python
29+

tools/marvin/marvin/sandbox/demo/live/README

Lines changed: 0 additions & 8 deletions
This file was deleted.

tools/marvin/marvin/sandbox/demo/simulator/README

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)