forked from openstack/cinder
-
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.
[api-ref]Fix response example file of update_type
The response sample of "Update a volume type" interface refers to that of "Show volume type detail", which is not the same. So this is to add a functional test to generate the update volume type response sample of "Update a volume type" own. https://docs.openstack.org/api-ref/block-storage/v3/index.html#update-a-volume-type Change-Id: I4e5bc87c6ab20ef6b85e0511d3965e7b1f4893ca partially-implements: blueprint volume-response-schema-validation
- Loading branch information
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
api-ref/source/v3/samples/volume_type/volume-type-update-response.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,11 @@ | ||
{ | ||
"volume_type": { | ||
"id": "6685584b-1eac-4da6-b5c3-555430cf68ff", | ||
"name": "vol-type-001", | ||
"description": "volume type 0001", | ||
"is_public": true, | ||
"extra_specs": { | ||
"capabilities": "gpu" | ||
} | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
...tests/functional/api_sample_tests/samples/volume_type/volume-type-update-request.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,7 @@ | ||
{ | ||
"volume_type": { | ||
"name": "%(name)s", | ||
"description": "%(description)s", | ||
"is_public": "%(bool)s" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ests/functional/api_sample_tests/samples/volume_type/volume-type-update-response.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,11 @@ | ||
{ | ||
"volume_type": { | ||
"id": "%(uuid)s", | ||
"name": "vol-type-001", | ||
"description": "volume type 0001", | ||
"is_public": true, | ||
"extra_specs": { | ||
"capabilities": "gpu" | ||
} | ||
} | ||
} |
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