mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Automation of CCP Objects Verification after external changes made to the original setup Purpose of this code:
Generate CCP Objects (VMs, Volumes, Snapshots, VPC, etc..) and CCP Use Cases (Networking, Data Content,etc) before an external action on the CCP Setup and verify the integrity of the CCP Objects and the Use Cases after the external action on the CCP Setup. The integrity of the CCP Objects is verified by performing operations that test the Usability of the objects. This validates the intactness of the setup after an external action. The submitted patch covers only few major use cases. It proves that similar code can be added in future to address similar goals in verifying the integrity of CCP objects belonging to different components of the product.
The code format can be followed to verify validity of real time business use cases while any code changes (CCP,hypervisor,external devices code, etc…) happen over a period of time.
The following are the scenarios that the code format can be used for:
1.Upgrade Validity Verification
a. CCP Upgrade
b. Hypervisors Upgrade
c. External Devices Upgrade
d. System VM Template Changes.
2.Patch Validity Verification
Code can be used as one of the primary Components to validity Upgrades. It will facilitate the automation of Upgrade Test Verification completely.
How to use the code:
*Kindly make the corresponding substitutions in the commands listed below.
Execute:
nosetests --with-marvin --marvin-config=$CONFIG $BASEDIR/integration/component/ test_minimal_ug_check.py --load -a tags=preupgrade
After Upgrade or any Changes done to the Setup, Verify that the existing CCP objects are not affected due to the external changes.
Execute:
nosetests --with-marvin --marvin-config=$CONFIG $BASEDIR/integration/component/ test_minimal_ug_check.py --load -a tags=postupgrade
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
7e75f339bc
commit
7461297f3e
1271
test/integration/component/test_minimal_ug_check.py
Normal file
1271
test/integration/component/test_minimal_ug_check.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -150,6 +150,57 @@ test_data = {
|
||||
"hosttags": "vmsync",
|
||||
},
|
||||
},
|
||||
"service_offering_h1": {
|
||||
"name": "Tiny Instance H1",
|
||||
"displaytext": "Tiny Instance H1",
|
||||
"cpunumber": 1,
|
||||
"cpuspeed": 100,
|
||||
"memory": 128,
|
||||
"hosttags": "h1"
|
||||
},
|
||||
"service_offering_h2": {
|
||||
"name": "Tiny Instance H2",
|
||||
"displaytext": "Tiny Instance H2",
|
||||
"cpunumber": 1,
|
||||
"cpuspeed": 100,
|
||||
"memory": 128,
|
||||
"hosttags": "h2"
|
||||
},
|
||||
"disk_offering_shared_5GB": {
|
||||
"name": "5GB",
|
||||
"displaytext": "5GB",
|
||||
"disksize": 5,
|
||||
"storagetype": "shared"
|
||||
},
|
||||
"windows_2008_R2_iso":{
|
||||
"name":"Windows2008R2ISO1",
|
||||
"displaytext":"Windows2008R2ISO1",
|
||||
"ostype":"Windows Server 2008 R2 (64-bit)",
|
||||
"url":"http://nfs1.lab.vmops.com/isos_64bit/Windows-Server-2008/en_windows_server_2008_r2_standard_enterprise_datacenter_web_vl_build_x64_dvd_x15-59754.iso",
|
||||
"isfeatured":"True",
|
||||
"ispublic":"True",
|
||||
"isextractable":"True"
|
||||
},
|
||||
"disk_offering_shared_15GB": {
|
||||
"name": "15GB",
|
||||
"displaytext": "15GB",
|
||||
"disksize": 15,
|
||||
"storagetype": "shared"
|
||||
},
|
||||
"zone": {
|
||||
"name" : "Adv-Xen-Zone1"
|
||||
},
|
||||
"template_from_root_volume": {
|
||||
"name": "Template_From_Root_Volume",
|
||||
"displaytext": "Template_From_Root_Volume",
|
||||
"format": "VHD",
|
||||
"ostype": "CentOS 5.6 (64-bit)",
|
||||
"isfeatured": "True",
|
||||
"ispublic": "True",
|
||||
"isextractable": "True"
|
||||
},
|
||||
"ug_stp_obj_file":"/usr/lib/python2.7/site-packages/marvin/config/ug_file.json",
|
||||
"write_obj_file":"/usr/lib/python2.7/site-packages/marvin/config/write.json",
|
||||
"disk_offering": {
|
||||
"name": "Disk offering",
|
||||
"displaytext": "Disk offering",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user