forked from openstack/nova
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use plain routes list for os-security-group-rules instead of stevedore
This patch adds os-security-group-rules related routes by a plain list, instead of using stevedore. After all the Nova API endpoints moves to the plain routes list, the usage of stevedore for API loading will be removed from Nova. The API sample tests are missed for os-security-group-rules API, this patch adds them to ensure the route working correctly. Partial-implement-blueprint api-no-more-extensions-pike Change-Id: I2d3ac79fdb0314014f4b8b69a9c5f27a922d9046
- Loading branch information
Showing
8 changed files
with
94 additions
and
18 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
doc/api_samples/os-security-groups/security-group-rules-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,9 @@ | ||
{ | ||
"security_group_rule": { | ||
"parent_group_id": "21111111-1111-1111-1111-111111111112", | ||
"ip_protocol": "tcp", | ||
"from_port": 22, | ||
"to_port": 22, | ||
"cidr": "10.0.0.0/24" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
doc/api_samples/os-security-groups/security-group-rules-post-resp.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,13 @@ | ||
{ | ||
"security_group_rule": { | ||
"from_port": 22, | ||
"group": {}, | ||
"id": "00000000-0000-0000-0000-000000000000", | ||
"ip_protocol": "tcp", | ||
"ip_range": { | ||
"cidr": "10.0.0.0/24" | ||
}, | ||
"parent_group_id": "11111111-1111-1111-1111-111111111111", | ||
"to_port": 22 | ||
} | ||
} |
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
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
9 changes: 9 additions & 0 deletions
9
...al/api_sample_tests/api_samples/os-security-groups/security-group-rules-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,9 @@ | ||
{ | ||
"security_group_rule": { | ||
"parent_group_id": "21111111-1111-1111-1111-111111111112", | ||
"ip_protocol": "tcp", | ||
"from_port": 22, | ||
"to_port": 22, | ||
"cidr": "10.0.0.0/24" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...l/api_sample_tests/api_samples/os-security-groups/security-group-rules-post-resp.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,13 @@ | ||
{ | ||
"security_group_rule": { | ||
"from_port": 22, | ||
"group": {}, | ||
"ip_protocol": "tcp", | ||
"to_port": 22, | ||
"parent_group_id": "11111111-1111-1111-1111-111111111111", | ||
"ip_range": { | ||
"cidr": "10.0.0.0/24" | ||
}, | ||
"id": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} |
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
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