Testcase: Write Testcases for Nova extension - security group /rules

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

Bug Description

1) https://servers.api.openstack.com/v1.1//{tenantId}/os-security-groups
 GET List security group
2) https://servers.api.openstack.com/v1.1//{tenantId}/os-security-groups
 POST Create SecurityGroup
3) https://servers.api.openstack.com/v1.1//{tenantId}/os-security-groups/{securityGroupId}
 GET Get security group
 DELETE Delete a security group
5) https://servers.api.openstack.com/v1.1//{tenantId}/os-security-groups/{securityGroupId}/os-security-group-rules
 POST Create SecurityGroup Rule
6) https://servers.api.openstack.com/v1.1//{tenantId}/os-security-groups/{securityGroupId}/os-security-group-rules
DELETE Delete a security group rule
7) Boundary & Invalid input ,null value tests , security groups and rules for non-existant tenants for 2,3, 4,5,6
8) Validation for http return code

reference document:

Nachi Ueno (nati-ueno)
tags: added: compute
tags: added: test-needed
removed: testcase
Changed in tempest:
assignee: nobody → Sapan Kona (sapan-kona)
importance: Undecided → Medium
status: New → Triaged
Changed in tempest:
status: Triaged → In Progress
assignee: Sapan Kona (sapan-kona) → Rajalakshmi Ganesan (rajalakshmi-ganesan)
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/3794

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:

rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/tests$ nosetests -svx test_security_groups.py
Negative test:Deletion of a nonexistant Security Group should Fail ... ok
Security Group should be created, verified and deleted ... ok
Security Group should be created, fetched and deleted ... ok
Negative test:Security Group with duplicate name should not be created ... ok
Negative test:Security Group should not be created with description as ... ok
Negative test: Security Group should not be created with group name as ... ok
Negative test:Should not be able to GET the details ... ok
Positive test:Should return the list of Security Groups ... ok

Ran 8 tests in 44.426s

rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/tests$ nosetests -svx test_security_group_rules.py
Positive test: Creation of Security Group rule should be successfull ... ok
Positive test: Deletion of Security Group rule should be successfull ... ok
Negative test: Creation of Security Group rule should FAIL ... ok
Positive test: Creation of Security Group rule with optional arguments ... ok
Negative test: Deletion of Security Group rule should be FAIL ... ok

Ran 5 tests in 52.960s


Pep8 log:

rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/services/nova/json$ pep8 security_groups_client.py
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/services/nova/json$ cd ../../../tests/
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/tests$ pep8 test_security_groups.py
rajalakshmi_ganesan@pshys0183:~/Desktop/latest-tempest/tempest/tempest/tests$ pep8 test_security_group_rules.py

Submitting the code for review.

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

Reviewed: https://review.openstack.org/3794
Committed: http://github.com/openstack/tempest/commit/37b32b6971dc519e745c958f6af3393502434545
Submitter: Jenkins
Branch: master

commit 37b32b6971dc519e745c958f6af3393502434545
Author: rajalakshmi-ganesan <email address hidden>
Date: Mon Feb 6 17:21:20 2012 +0530

    Fixes bug 902352 – New tests for security groups

    Change-Id: Id74c968afcac1546c90e9abceb7bbaade2d11d4e

Changed in tempest:
status: In Progress → Fix Committed
Jay Pipes (jaypipes)
Changed in tempest:
status: Fix Committed → Fix Released
Sean Dague (sdague)
Changed in tempest:
milestone: none → havana-3
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.