-----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$
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
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- unnimaya/ MYTempest/ VOLUMES/ tempest/ tempest/ tests/test_ volumes. py", line 136, in test_volume_ create_ delete assertEqual( 204, resp.status)
FAIL: Volume should be created, verified and deleted
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: 204 != 202
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- unnimaya/ MYTempest/ VOLUMES/ tempest/ tempest/ tests/test_ volumes. py", line 159, in test_volume_ list_filter_ by_name assertEqual( len(fetched_ volumes) , 1)
FAIL: Positive: Should return the details of volume by the name
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: 5 != 1
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- unnimaya/ MYTempest/ VOLUMES/ tempest/ tempest/ tests/test_ volumes. py", line 188, in test_volume_ list_filter_ by_size assertTrue( volume1 not in fetched_volumes)
FAIL: Positive: Should return the details of volume by the size
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: False is not True
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 8 tests in 98.633s
FAILED (failures=3)
Pep8 log: ganesan@ pshys0183: ~/Desktop/ latest- tempest/ tempest/ tempest/ tests$ pep8 test_volumes.py ganesan@ pshys0183: ~/Desktop/ latest- tempest/ tempest/ tempest/ tests$ cd ../services/ nova/json/ ganesan@ pshys0183: ~/Desktop/ latest- tempest/ tempest/ tempest/ services/ nova/json$ pep8 volumes_client.py ganesan@ pshys0183: ~/Desktop/ latest- tempest/ tempest/ tempest/ services/ nova/json$ cd ../../.. ganesan@ pshys0183: ~/Desktop/ latest- tempest/ tempest/ tempest$ pep8 openstack.py ganesan@ pshys0183: ~/Desktop/ latest- tempest/ tempest/ tempest$
rajalakshmi_
rajalakshmi_
rajalakshmi_
rajalakshmi_
rajalakshmi_
rajalakshmi_
-- /bugs.launchpad .net/bugs/ 902374
You received this bug notification because you are subscribed to the bug
report.
https:/
Title:
Testcase: Write Testcases for Volumes
Status in Tempest:
In Progress
Bug description: /servers. api.openstack. com/v1. 1//{tenantId} /os-volumes /servers. api.openstack. com/v1. 1//{tenantId} /os-volumes /servers. api.openstack. com/v1. 1//{tenantId} /os-volumes/ {volume_ id} /servers. api.openstack. com/v1. 1//{tenantId} /os-volumes/ {volume_ id} /servers. api.openstack. com/v1. 1//{tenantId} /os-volumes/ detail /servers. api.openstack. com/v1. 1//{tenantId} /os-volumes_ boot
Write Testcases for Volumes
1)https:/
GET list of volumes
2)https:/
POST Create a volume
3)https:/
GET Get a volume
4)https:/
DELETE Delete a volume
5)https:/
GET list of detailed volumes
6)https:/
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: /bugs.launchpad .net/tempest/ +bug/902374/ +subscriptions
https:/