Write Testcases for Volume attachments

Bug #903875 reported by Ravikumar Venkatesan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Won't Fix
Medium
Rajalakshmi Ganesan

Bug Description

Write Testcases for Volume Attachments
1)https://servers.api.openstack.com/v1.1//{tenantId}/servers/{serverId}/os-volume_attachments
GET list of volumes
2)https://servers.api.openstack.com/v1.1//{tenantId}/servers/{serverId}/os-volume_attachments
POST Create a volume
3)https://servers.api.openstack.com/v1.1//{tenantId}/servers/{serverId}/os-volume_attachments/detail
GET list of detailed volumes
4)https://servers.api.openstack.com/v1.1//{tenantId}/servers/{serverId}/os-volume_attachments/{volume_attachment_id}
GET Get a volume attachment
5)https://servers.api.openstack.com/v1.1//{tenantId}/servers/{serverId}/os-volume_attachments/{volume_attachment_id}
DELETE Delete a volume attachment

tags: added: compute test-needed
removed: testcase
Nachi Ueno (nati-ueno)
Changed in tempest:
importance: Undecided → Medium
Changed in tempest:
assignee: nobody → Rajalakshmi Ganesan (rajalakshmi-ganesan)
status: New → Confirmed
Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :

Does anyone know where the API documentation for os-volumes_attachments is documented?

Revision history for this message
Jay Pipes (jaypipes) wrote : Re: [Bug 903875] Re: Write Testcases for Volume attachments

On 02/10/2012 05:23 AM, Rajalakshmi Ganesan wrote:
> Does anyone know where the API documentation for os-volumes_attachments
> is documented?

When all else fails, try the OpenStack mailing list :)

I've sent a post to the mailing list asking for help...

-jay

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/4345

Changed in tempest:
status: Confirmed → In Progress
Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :

The test ran successfully on the local environment. Please find the nosetests and pep8 logs below:

Nosetests log:

muralik@openstack27:~/tempest_raj/tempest/tempest/tests$ nosetests -sv test_volume_attachments.py
Volume should be Attached, Verified and Deleted ... ok
Volume should be Attached, Fetched and Deleted ... ok
Volume Attached should be available in response list ... ok
Negative Test: Should not be able to Attach ... ok
Negative Test: Should not be able to Attach ... ok
Negative Test: Should not be able to Attach ... ok
Should not be able to delete nonexistant Volume Attachment ... ok
Should not be able to GET details of nonexistant Attachment ... ok

----------------------------------------------------------------------
Ran 8 tests in 198.936s

OK

Pep8 log:

muralik@openstack27:~/tempest_raj/tempest/tempest/services/nova/json$ pep8 volumes_attachments_client.py
muralik@openstack27:~/tempest_raj/tempest/tempest/services/nova/json$ cd ../../../
muralik@openstack27:~/tempest_raj/tempest/tempest$ pep8 openstack.py
muralik@openstack27:~/tempest_raj/tempest/tempest$ cd tests/
muralik@openstack27:~/tempest_raj/tempest/tempest/tests$ pep8 test_volume_attachments.py
muralik@openstack27:~/tempest_raj/tempest/tempest/tests$

Submitting the code for review.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/6145

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/6267

Changed in tempest:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.