You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Volumes

 

 

 

Attaching Volumes

1.navigate to Storage-volumes
2.select the detached data disk
3.click on "Actions" and select "Attach Disk" to attach to a particular instace
4. select the instance and click "Ok" button  to attach the disk to selected instance in the "Attach Disk" pop-up window

1.shows list of volumes
3."Attach Disk" pop-up box will display with list of  instances
4. disk should be  attached to instance successfully and both UI and database(volumes table) should reflect the changes( i.e attached disk details should be updated with  attached vm_instance ID and device id )

Detaching Volumes

1.navigate to Storage-volumes
2. selected the data disk which is attached to instance
3.click "Actions" and select the "Detach Disk"

data disk should be detached from instance and detached data disk details should be updated properly(i.e Instance Name -detached and Device ID is null)

 

Download volumes

1.navigate to Storage-volumes
2. selected the data disk which is attached to instance
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="775e1389-c104-4cfc-8034-4f14da89f746"><ac:plain-text-body><![CDATA[ [some fundamental steps here are missing. in each os after attaching disk, you need to format and mount it before writing to it. downloading a blank volume would probably fail]
]]></ac:plain-text-body></ac:structured-macro>
3.perform download volume
4.select another data disk with is not attahced instance
5.perform "download volume "

3. download volume will fail with proper error message "Failed - Invalid state of the volume with ID: . It should be either detached or the VM should be in stopped state"
.
5. able to download the volume when its not attached to instace

 

Delete Volumes

case 1
1.navigate to Storage-volumes
2. selected the data disk
3.click on 'Actions" menu and select the "Delete volume"

case 2
4.select another data disk with is  attahced instance
5.clcik on "Actions" menu and check for "Delete Volume"

case 1:
volume should be deleted successfully and listVolume should not contain the deleted volume details.

Case 2:
"Delete Volume" menu item not shown under "Actions" menu.
(UI should not allow  to delete the volume when it is attahced to instance by hiding the menu Item)

Create Volume

1. Perform "Add volume" by provinding name, availability zone and disk offering details.(i.e go to Storage-Volumes-)
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5e8c50d0-faa7-45e5-95f6-74bde0014f08"><ac:plain-text-body><![CDATA[ [we shoudl execute this against every storage size, sanity check against that but also a few custom sized disk offerings]

volume should be created successfully and listVolumes should  contain the created volumes. Database should reflects with new created volume details(volumes table)

 

]]></ac:plain-text-body></ac:structured-macro>

Test Case ID

Test Case Name

Steps to be performed to test

Verification Steps

Priority

Test Case Type

1

Upload a data disk

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visor

Upload volume is successful

P1

 

2

upload volume when disk type is not compatible with hyper visor type

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visor
    Such that URL contains Xen compatible data disk but hyper visor mentioned is KVM/VMWare

Error should be reported

P2

 

 

 

3

Upload a Volume when maximum volume for the account is reached

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visor

Error saying max limit is reached should be reported

P1

 

 

 

4

upload a volume having size greater than max allowable size

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visor

Error saying size exceeded should be reported

P2

 

 

 

5

upload a volume with same name as one already existing

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visor
    give name as abc

    call the same api again with the same name
    call the same api with same name and different zone id


Volume is created successfully

P3

 

 

 

6

upload a volume with the name that's  already deleted

upload a volume
delete this volume
upload another volume with the same name as the one in step 1

upload should be successful

P3

 

 

 

7

upload data disk with different format for xenserver

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visordisk types are :
    zip file format
    tar format
    tar gzip format
    tar bzip format.

 Upload volume should be successful for all the formats

P1

 

 

 

8

upload data disk with different format for VMware

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visordisk types are :
    OVA

 Upload volume should be successful for all the formats

P1

 

 

 

9

upload data disk with different format for KVM

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visordisk types are :


 Upload volume should be successful for all the formats

P1

 

 

 

 

upload data disk with different format for OVM

call upload volume API with following parameters

  • HTTP URL of the data disk,
  • Zone ID,
  • Name,
  • Description,
  • Hyper visordisk types are :
    RAW


 Upload volume should be successful for all the formats

P1

 

 

 

10

Attach a uploaded data disk

call attach volume api with following parameter

  • Volumeid
  • VM
  • Verify Attach Volume API will move (and not Copy) the volume from secondary storage to primary storage and attach to the vm.

P1

 

 

 

11

Attach the uploaded data disk with different format for xenserver

call attach volume api with following parameter

  • Volumeid
  • VM id
    disk types are :
    zip file format
    tar format
    tar gzip format
    tar bzip format.

Verify Attach Volume API will move (and not Copy) the volume from secondary storage to primary storage and attach to the vm for the disk format.

P1

 

 

 

12

Attach the uploaded data disk with different format for VMware

call attach volume api with following parameter

  • Volumeid
  • VM id
    disk types are :
    OVM


Verify Attach Volume API will move (and not Copy) the volume from secondary storage to primary storage and attach to the vm for the disk format.

P1

 

 

 

13

Attach the uploaded data data disk with different format for KVM

call attach volume api with following parameter

  • Volumeid
  • VM iddisk types are :
    QCOW2


Verify Attach Volume API will move (and not Copy) the volume from secondary storage to primary storage and attach to the vm for the disk format.

P1

 

 

 

 

Attach the uploaded data data disk with different format for OVM

call attach volume api with following parameter

  • Volumeid
  • VM iddisk types are :
    RAW


Verify Attach Volume API will move (and not Copy) the volume from secondary storage to primary storage and attach to the vm for the disk format.

P1

 

 

 

14

List volume showing states of volumes

call list volumes api

Verify the response shows different states of the volumes likeNOT_DOWNLOADED, DOWNLOAD_IN_PROGRESS, DOWNLOADED

P1

 

 

 

15

list volumes showing volume residing on secondary or primary

call list volumes api

Verify the response shows where the volume is residing

P1

 

 

 

16

delete volume residing in secondary storage

call delete volume api with volume id

volume should be deleted

P1

 

  • No labels