Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sample tests for adding and removing security groups Fixes bug 1157222 Change-Id: Ib8450fcd6334b720a2199d52e07ae00f78aa6df0
- Loading branch information
Giampaolo Lauria
committed
Apr 5, 2013
1 parent
aa81b75
commit 4274902
Showing
13 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
doc/api_samples/os-security-groups/security-group-add-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"addSecurityGroup" : { | ||
"name" : "test" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
doc/api_samples/os-security-groups/security-group-add-post-req.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<addSecurityGroup> | ||
<name>test</name> | ||
</addSecurityGroup> |
2 changes: 1 addition & 1 deletion
2
doc/api_samples/os-security-groups/security-group-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"security_group": { | ||
"name": "json-test", | ||
"name": "test", | ||
"description": "description" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<security_group name="xml-test"> | ||
<security_group name="test"> | ||
<description> | ||
description | ||
</description> | ||
|
5 changes: 5 additions & 0 deletions
5
doc/api_samples/os-security-groups/security-group-remove-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"removeSecurityGroup" : { | ||
"name" : "test" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
doc/api_samples/os-security-groups/security-group-remove-post-req.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<removeSecurityGroup> | ||
<name>test</name> | ||
</removeSecurityGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
doc/api_samples/os-security-groups/security-groups-create-resp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
nova/tests/integrated/api_samples/os-security-groups/security-group-add-post-req.json.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"addSecurityGroup" : { | ||
"name" : "%(group_name)s" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
nova/tests/integrated/api_samples/os-security-groups/security-group-add-post-req.xml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<addSecurityGroup> | ||
<name>%(group_name)s</name> | ||
</addSecurityGroup> |
5 changes: 5 additions & 0 deletions
5
nova/tests/integrated/api_samples/os-security-groups/security-group-remove-post-req.json.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"removeSecurityGroup" : { | ||
"name" : "%(group_name)s" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
nova/tests/integrated/api_samples/os-security-groups/security-group-remove-post-req.xml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<removeSecurityGroup> | ||
<name>%(group_name)s</name> | ||
</removeSecurityGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters