Testcase: Some new tests to be added to test_security_groups.py

Bug #992167 reported by Ravikumar Venkatesan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Rajalakshmi Ganesan

Bug Description

The following testcases need to be added to test_security_groups.py
1) create sec_group in_other_user
2) GET security group using another user credentials
3) DELETE security group rule using another user credential
4) DELETE Security Group without passing id

Changed in tempest:
assignee: Ravikumar Venkatesan (ravikumar-venkatesan) → Rajalakshmi Ganesan (rajalakshmi-ganesan)
Changed in tempest:
assignee: Rajalakshmi Ganesan (rajalakshmi-ganesan) → Ravikumar Venkatesan (ravikumar-venkatesan)
Changed in tempest:
assignee: Ravikumar Venkatesan (ravikumar-venkatesan) → Rajalakshmi Ganesan (rajalakshmi-ganesan)
status: New → Invalid
status: Invalid → New
Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :

Also adding test cases of Bug #992179 along with this bug,

Hence testcases checked in as part of this bug are as follows:

In test_authorization.py
1) create sec_group in_other_user
2) GET security group using another user credentials
3) DELETE security group rule using another user credential
4) Create Security group rule using another user
5) DELETE security group rule using another user credential

In test_security_groups.py
6) DELETE Security Group without passing id

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/7576

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

Nosetests log:

[muralik@openstack27 ~/tempest_17may/tempest/tempest/tests]$nosetests -sv test_authorization.py
A change password request for another user's server should fail ... ok
A create image request for another user's server should fail ... ok
A create security group request should fail if the tenant id does not ... ok
A create security group rule request should fail if the tenant id ... ok
A create server request should fail if the tenant id does not match ... ok
Server creation with another user's image should fail ... ok
A DELETE request for another user's security group should fail ... ok
A DELETE request for another user's security group rule ... SKIP: Skipped until the Bug #1001118 is resolved
A DELETE request for another user's server should fail ... ok
A GET request for another user's security group should fail ... ok
A GET request for a server on another user's account should fail ... ok
A list address/network request for another user's server should fail ... ok
A list addresses request for another user's server should fail ... ok
A reboot request for another user's server should fail ... ok
A rebuild request for another user's server should fail ... ok
A resize request for another user's server should fail ... ok
An update server request for another user's server should fail ... ok
----------------------------------------------------------------------
Ran 17 tests in 33.279s

OK (SKIP=1)
[muralik@openstack27 ~/tempest_17may/tempest/tempest/tests]$nosetests -sv test_security_groups.py
Negative test:Deletion of a Security Group with out passing ID ... ok

----------------------------------------------------------------------
Ran 1 test in 0.103s

OK

PEP8 LOG:
[muralik@openstack27 ~/tempest_17may/tempest/tempest/tests]$pep8 test_authorization.py
[muralik@openstack27 ~/tempest_17may/tempest/tempest/tests]$pep8 test_security_groups.py
[muralik@openstack27 ~/tempest_17may/tempest/tempest/tests]$

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

Reviewed: https://review.openstack.org/7576
Committed: http://github.com/openstack/tempest/commit/184daadd285b465d0e9b03421451a5dffebbbe43
Submitter: Jenkins
Branch: master

commit 184daadd285b465d0e9b03421451a5dffebbbe43
Author: rajalakshmi-ganesan <email address hidden>
Date: Fri May 18 14:47:38 2012 +0530

    Fixes Bug 992167-Some new tests to be added to test_security_groups.py and test_authorization.py

    Change-Id: I6edc40ec44e1cc877f5d9d43e30fa7c4eb7e3d5b

Changed in tempest:
status: In Progress → Fix Committed
Jay Pipes (jaypipes)
Changed in tempest:
status: Fix Committed → Fix Released
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.