Comment 10 for bug 902374

Revision history for this message
Ravikumar Venkatesan (ravikumar-venkatesan) wrote : RE: [Bug 902374] Re: Testcase: Write Testcases for Volumes

Rajalakshmi,

 We need to have our tests run successful.

Regards,

Ravi

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Rajalakshmi Ganesan
Sent: Wednesday, February 15, 2012 1:14 AM
To: Venkatesan, Ravikumar
Subject: [Bug 902374] Re: Testcase: Write Testcases for Volumes

Out of the 8 tests written, 5 tests ran successfully and 3 failed on the
local environment. Please find the nosetests and pep8 logs below:

Nosetests log:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Volume should be created, verified and deleted ... FAIL
Should return the details of a Volume ... ok
Should return the list of Volumes ... ok
Negative: Should not be able to delete nonexistant Volume ... ok
Negative: Should not be able to get details of nonexistant volume ... ok
Positive: Should return the details of volume by the name ... FAIL
Positive: Should return the details of volume by the size ... FAIL
Should return the list of Volumes with details ... ok

======================================================================
FAIL: Volume should be created, verified and deleted
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/unnimaya/MYTempest/VOLUMES/tempest/tempest/tests/test_volumes.py", line 136, in test_volume_create_delete
    self.assertEqual(204, resp.status)
AssertionError: 204 != 202

======================================================================
FAIL: Positive: Should return the details of volume by the name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/unnimaya/MYTempest/VOLUMES/tempest/tempest/tests/test_volumes.py", line 159, in test_volume_list_filter_by_name
    self.assertEqual(len(fetched_volumes), 1)
AssertionError: 5 != 1

======================================================================
FAIL: Positive: Should return the details of volume by the size
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/unnimaya/MYTempest/VOLUMES/tempest/tempest/tests/test_volumes.py", line 188, in test_volume_list_filter_by_size
    self.assertTrue(volume1 not in fetched_volumes)
AssertionError: False is not True

----------------------------------------------------------------------
Ran 8 tests in 98.633s

FAILED (failures=3)

Pep8 log:
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/tests$ pep8 test_volumes.py
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/tests$ cd ../services/nova/json/
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/services/nova/json$ pep8 volumes_client.py
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/services/nova/json$ cd ../../..
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest$ pep8 openstack.py
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest$

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/902374

Title:
  Testcase: Write Testcases for Volumes

Status in Tempest:
  In Progress

Bug description:
  Write Testcases for Volumes
  1)https://servers.api.openstack.com/v1.1//{tenantId}/os-volumes
  GET list of volumes
  2)https://servers.api.openstack.com/v1.1//{tenantId}/os-volumes
  POST Create a volume
  3)https://servers.api.openstack.com/v1.1//{tenantId}/os-volumes/{volume_id}
  GET Get a volume
  4)https://servers.api.openstack.com/v1.1//{tenantId}/os-volumes/{volume_id}
  DELETE Delete a volume
  5)https://servers.api.openstack.com/v1.1//{tenantId}/os-volumes/detail
  GET list of detailed volumes
  6)https://servers.api.openstack.com/v1.1//{tenantId}/os-volumes_boot
  POST Boot from volume
  7) Boundary & Invalid input ,null value tests , security groups and rules for non-existant tenants and negative tests for 2,3,4
  8) Validation for http return code

To manage notifications about this bug go to:
https://bugs.launchpad.net/tempest/+bug/902374/+subscriptions