Test Case Id |
Test Case Name |
Steps |
Expected Result |
Status(pass/fail) |
Comments |
1 |
create (Dynamic )compute
offering |
Create CO through API with following parameters
Static CO
1-provide values for cpu,# of cpu cores, memory.
Dynamic CO
2-provide no value for cpu, # of CPU Cores,memory and create SO
3-provide no value for cpu and create so
4-provide no vlaue for #cpu cores and create so
5-provide no value for mem and create so |
1-CO creation should be allowed in step 1 and 2
2-CO creation should be failed in other steps |
|
|
2 |
Deploy vm from admin account |
In deploy vm API salect following and deploy vm
(steps # refer steps 1st test case)
static CO
1-Deploy vm with co created in step 1
1a-provide value for cpu,# of cpu cores and mem.
Dynamic CO
2-Deploy vm with co created in step 2
2a-provide value for all params(cpu,#cpu,mem)
2b-provide value for any of them |
1-deploy vm should be successful in cases 1 and 2a
2-deploy vm should fail in cases ,1a,2b. |
|
|
3 |
Deploy vm from user account |
In deploy vm API salect following and deploy vm
(steps # refer steps 1st test case)
Static CO
1-Deploy vm with co created in step 1
1a-provide value for cpu,# of cpu cores and mem.
Dynamic CO
2-Deploy vm with co created in step 2
2a-provide value for all params(cpu,#cpu,mem)
2b-provide value for any of them |
1-deploy vm should be successful in cases 1 and 2a
2-deploy vm should fail in cases ,1a,2b. |
|
|
4 |
Change CO of stop VM
(repeat it for user and admin) |
Stop a vm and change to following CO using API
(steps # refer steps in 1st test case)
1-change to co created in step 1
1a-provide value for cpu,# of cpu cores and mem.
2-change co created in step 2
2a-provide value for all params(cpu,#cpu,mem)
2b-provide value for any of them
3-Change CO for vms
3a-from static to daynamic
3b-from dynamic to static
3c-from dynamic to dynamic b/w different
dynamic co
3d-from dynamic to dynamic b/w same dynamic co |
1-Change SO should be successful in c
ase of 1,2a,All 3.
2-Change CO chould be fail in case
1a,2b |
|
|
5 |
Change CO of running VM
(repeat it for user and admin) |
Stop a vm and change to following CO using API
(steps # refer steps in 1st test case, all the value should be
larger than current CO )
1-change to co created in step 1
1a-provide value for cpu,# of cpu cores and mem.
2-change co created in step 2
2a-provide value for all params(cpu,#cpu,mem)
2b-provide value for any of them
3-Change CO for vms
3a-from static to daynamic
3b-from dynamic to static
3c-from dynamic to dynamic b/w different
dynamic co
3d-from dynamic to dynamic b/w same dynamic co |
1-Change SO should be successful in c
ase of 1,2a,ALL 3.
2-Change CO chould be fail in case
1a,2b. |
|
|
6 |
Gloabal Min and Global Max
(repeat it for user and admin) |
1-set glabal min and global max.
2-create a custom co
3-provide values more that global max while deploying vm, changing co.
4-provide values less than global min while deploying vm,changing co.
5-provide any values b/w Glaobal min and Global min while deploying vm,changing co. |
1-step 2,3 and 4 should fail.
2-step 5 should be successful. |
|
|
7 |
max.account.cpus
max.account.memory
max.account.vcpus
(repeate it for user and admin) |
1-deploy vm and change co should honor these
parameters. |
1-Should be successful |
|
|
8 |
cluster.cpu.allocated.capacity.
Disablethreshold
cluster.mem.allocated.capacity.disablethreshold |
1-deploy vm and change co should honor these
parameters. |
1-Should be successful |
|
|
9 |
usage
(repeate it for user and admin) |
1-for vm createed using dynamic compute offering
there should be an entry in usage_detail table.
2-usage_vm_instance table should get updated with details in usage_detail and usage_vm_instance table should have new fields for cpu,ram and #cpu. |
1-dynamic offering should get updated in
usage_details table .
2-Usage server should update usage_vm
_instance table successfully |
|
|
10 |
upgrad testing |
pre upgrad steps
-Create some CO and vm.
Post upgrade steps
1-Create dynamic CO deploy vms using dynamic CO
2-perform following for vms created after and before upgrade
2a-Change CO of stop vm from dynamic to static CO and viceversa
2b-Change SO of running vm from dynamic to static CO and viceversa
3-check usage records are getting generated or not |
1-All steps should be successful. |
|
|