-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sample tests to QuotaClasses API.
Partially implements blueprint nova-api-samples Fixes bug 1070171 Change-Id: I504a9120a0980a727bda21ca2ac76a5d06477e66
- Loading branch information
1 parent
e1c7b18
commit d9b6904
Showing
13 changed files
with
203 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
doc/api_samples/os-quota-class-sets/quota-classes-show-get-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,16 @@ | ||
{ | ||
"quota_class_set": { | ||
"cores": 20, | ||
"floating_ips": 10, | ||
"id": "test_class", | ||
"injected_file_content_bytes": 10240, | ||
"injected_file_path_bytes": 255, | ||
"injected_files": 5, | ||
"instances": 10, | ||
"key_pairs": 100, | ||
"metadata_items": 128, | ||
"ram": 51200, | ||
"security_group_rules": 20, | ||
"security_groups": 10 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
doc/api_samples/os-quota-class-sets/quota-classes-show-get-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<quota_class_set id="test_class"> | ||
<cores>20</cores> | ||
<floating_ips>10</floating_ips> | ||
<injected_file_content_bytes>10240</injected_file_content_bytes> | ||
<injected_file_path_bytes>255</injected_file_path_bytes> | ||
<injected_files>5</injected_files> | ||
<instances>10</instances> | ||
<key_pairs>100</key_pairs> | ||
<metadata_items>128</metadata_items> | ||
<ram>51200</ram> | ||
<security_group_rules>20</security_group_rules> | ||
<security_groups>10</security_groups> | ||
</quota_class_set> |
15 changes: 15 additions & 0 deletions
15
doc/api_samples/os-quota-class-sets/quota-classes-update-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,15 @@ | ||
{ | ||
"quota_class_set": { | ||
"instances": 50, | ||
"cores": 50, | ||
"ram": 51200, | ||
"floating_ips": 10, | ||
"metadata_items": 128, | ||
"injected_files": 5, | ||
"injected_file_content_bytes": 10240, | ||
"injected_file_path_bytes": 255, | ||
"security_groups": 10, | ||
"security_group_rules": 20, | ||
"key_pairs": 100 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
doc/api_samples/os-quota-class-sets/quota-classes-update-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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<quota_class_set> | ||
<cores>50</cores> | ||
<floating_ips>10</floating_ips> | ||
<injected_file_content_bytes>10240</injected_file_content_bytes> | ||
<injected_file_path_bytes>255</injected_file_path_bytes> | ||
<injected_files>5</injected_files> | ||
<instances>50</instances> | ||
<key_pairs>100</key_pairs> | ||
<metadata_items>128</metadata_items> | ||
<ram>51200</ram> | ||
<security_group_rules>20</security_group_rules> | ||
<security_groups>10</security_groups> | ||
</quota_class_set> |
15 changes: 15 additions & 0 deletions
15
doc/api_samples/os-quota-class-sets/quota-classes-update-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,15 @@ | ||
{ | ||
"quota_class_set": { | ||
"cores": 50, | ||
"floating_ips": 10, | ||
"injected_file_content_bytes": 10240, | ||
"injected_file_path_bytes": 255, | ||
"injected_files": 5, | ||
"instances": 50, | ||
"key_pairs": 100, | ||
"metadata_items": 128, | ||
"ram": 51200, | ||
"security_group_rules": 20, | ||
"security_groups": 10 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
doc/api_samples/os-quota-class-sets/quota-classes-update-post-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<quota_class_set> | ||
<cores>50</cores> | ||
<floating_ips>10</floating_ips> | ||
<injected_file_content_bytes>10240</injected_file_content_bytes> | ||
<injected_file_path_bytes>255</injected_file_path_bytes> | ||
<injected_files>5</injected_files> | ||
<instances>50</instances> | ||
<key_pairs>100</key_pairs> | ||
<metadata_items>128</metadata_items> | ||
<ram>51200</ram> | ||
<security_group_rules>20</security_group_rules> | ||
<security_groups>10</security_groups> | ||
</quota_class_set> |
16 changes: 16 additions & 0 deletions
16
nova/tests/integrated/api_samples/os-quota-class-sets/quota-classes-show-get-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,16 @@ | ||
{ | ||
"quota_class_set": { | ||
"cores": 20, | ||
"floating_ips": 10, | ||
"id": "%(set_id)s", | ||
"injected_file_content_bytes": 10240, | ||
"injected_file_path_bytes": 255, | ||
"injected_files": 5, | ||
"instances": 10, | ||
"key_pairs": 100, | ||
"metadata_items": 128, | ||
"ram": 51200, | ||
"security_group_rules": 20, | ||
"security_groups": 10 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
nova/tests/integrated/api_samples/os-quota-class-sets/quota-classes-show-get-resp.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,14 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<quota_class_set id="%(set_id)s"> | ||
<cores>20</cores> | ||
<floating_ips>10</floating_ips> | ||
<injected_file_content_bytes>10240</injected_file_content_bytes> | ||
<injected_file_path_bytes>255</injected_file_path_bytes> | ||
<injected_files>5</injected_files> | ||
<instances>10</instances> | ||
<key_pairs>100</key_pairs> | ||
<metadata_items>128</metadata_items> | ||
<ram>51200</ram> | ||
<security_group_rules>20</security_group_rules> | ||
<security_groups>10</security_groups> | ||
</quota_class_set> |
15 changes: 15 additions & 0 deletions
15
nova/tests/integrated/api_samples/os-quota-class-sets/quota-classes-update-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,15 @@ | ||
{ | ||
"quota_class_set": { | ||
"instances": 50, | ||
"cores": 50, | ||
"ram": 51200, | ||
"floating_ips": 10, | ||
"metadata_items": 128, | ||
"injected_files": 5, | ||
"injected_file_content_bytes": 10240, | ||
"injected_file_path_bytes": 255, | ||
"security_groups": 10, | ||
"security_group_rules": 20, | ||
"key_pairs": 100 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
nova/tests/integrated/api_samples/os-quota-class-sets/quota-classes-update-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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<quota_class_set> | ||
<cores>50</cores> | ||
<floating_ips>10</floating_ips> | ||
<injected_file_content_bytes>10240</injected_file_content_bytes> | ||
<injected_file_path_bytes>255</injected_file_path_bytes> | ||
<injected_files>5</injected_files> | ||
<instances>50</instances> | ||
<key_pairs>100</key_pairs> | ||
<metadata_items>128</metadata_items> | ||
<ram>51200</ram> | ||
<security_group_rules>20</security_group_rules> | ||
<security_groups>10</security_groups> | ||
</quota_class_set> |
15 changes: 15 additions & 0 deletions
15
.../tests/integrated/api_samples/os-quota-class-sets/quota-classes-update-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,15 @@ | ||
{ | ||
"quota_class_set": { | ||
"cores": 50, | ||
"floating_ips": 10, | ||
"injected_file_content_bytes": 10240, | ||
"injected_file_path_bytes": 255, | ||
"injected_files": 5, | ||
"instances": 50, | ||
"key_pairs": 100, | ||
"metadata_items": 128, | ||
"ram": 51200, | ||
"security_group_rules": 20, | ||
"security_groups": 10 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
nova/tests/integrated/api_samples/os-quota-class-sets/quota-classes-update-post-resp.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,14 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<quota_class_set> | ||
<cores>50</cores> | ||
<floating_ips>10</floating_ips> | ||
<injected_file_content_bytes>10240</injected_file_content_bytes> | ||
<injected_file_path_bytes>255</injected_file_path_bytes> | ||
<injected_files>5</injected_files> | ||
<instances>50</instances> | ||
<key_pairs>100</key_pairs> | ||
<metadata_items>128</metadata_items> | ||
<ram>51200</ram> | ||
<security_group_rules>20</security_group_rules> | ||
<security_groups>10</security_groups> | ||
</quota_class_set> |
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