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.
Update snapshot api microversion docs and tests
Our docs and tests are not up to date with the changes introduced to the snapshot details introduced by the different microversion. This patch updates the docs, samples, and tests. Change-Id: I46fa6e1f7a5d6ad0147f17c2bafbf4fb8fa89eb8
- Loading branch information
Showing
19 changed files
with
351 additions
and
33 deletions.
There are no files selected for viewing
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
16 changes: 16 additions & 0 deletions
16
api-ref/source/v3/samples/snapshots/v3.14/snapshot-create-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,16 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "2019-03-11T16:24:34.469003", | ||
"description": "Daily backup", | ||
"id": "b36476e5-d18b-47f9-ac69-4818cb43ee21", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "d291b81c-6e40-4525-8231-90aa1588121e", | ||
"group_snapshot_id": null | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
api-ref/source/v3/samples/snapshots/v3.14/snapshot-show-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,18 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "2019-03-12T04:42:00.809352", | ||
"description": "Daily backup", | ||
"id": "4a584cae-e4ce-429b-9154-d4c9eb8fda4c", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "89afd400-b646-4bbc-b12b-c0a4d63e5bd3", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "b72c48f1-64b7-4cd8-9745-b12e0be82d37", | ||
"group_snapshot_id": null | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
api-ref/source/v3/samples/snapshots/v3.14/snapshot-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,16 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "2019-03-12T04:53:53.426591", | ||
"description": "This is yet, another snapshot.", | ||
"id": "43666194-8e72-451a-b7bb-54fef763b2b8", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-002", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "070c942d-9909-42e9-a467-7a781f150c58", | ||
"group_snapshot_id": null | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
api-ref/source/v3/samples/snapshots/v3.14/snapshots-list-detailed-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,20 @@ | ||
{ | ||
"snapshots": [ | ||
{ | ||
"created_at": "2019-03-11T16:24:36.464445", | ||
"description": "Daily backup", | ||
"id": "d0083dc5-8795-4c1a-bc9c-74f70006c205", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "89afd400-b646-4bbc-b12b-c0a4d63e5bd3", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "7acd675e-4e06-4653-af9f-2ecd546342d6", | ||
"group_snapshot_id": null | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
api-ref/source/v3/samples/snapshots/v3.41/snapshot-create-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,17 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "2019-03-11T16:24:34.469003", | ||
"description": "Daily backup", | ||
"id": "b36476e5-d18b-47f9-ac69-4818cb43ee21", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "d291b81c-6e40-4525-8231-90aa1588121e", | ||
"group_snapshot_id": null, | ||
"user_id": "c853ca26-e8ea-4797-8a52-ee124a013d0e" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
api-ref/source/v3/samples/snapshots/v3.41/snapshot-show-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,19 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "2019-03-12T04:42:00.809352", | ||
"description": "Daily backup", | ||
"id": "4a584cae-e4ce-429b-9154-d4c9eb8fda4c", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "89afd400-b646-4bbc-b12b-c0a4d63e5bd3", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "b72c48f1-64b7-4cd8-9745-b12e0be82d37", | ||
"group_snapshot_id": null, | ||
"user_id": "c853ca26-e8ea-4797-8a52-ee124a013d0e" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
api-ref/source/v3/samples/snapshots/v3.41/snapshot-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,17 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "2019-03-12T04:53:53.426591", | ||
"description": "This is yet, another snapshot.", | ||
"id": "43666194-8e72-451a-b7bb-54fef763b2b8", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-002", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "070c942d-9909-42e9-a467-7a781f150c58", | ||
"group_snapshot_id": null, | ||
"user_id": "c853ca26-e8ea-4797-8a52-ee124a013d0e" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
api-ref/source/v3/samples/snapshots/v3.41/snapshots-list-detailed-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,21 @@ | ||
{ | ||
"snapshots": [ | ||
{ | ||
"created_at": "2019-03-11T16:24:36.464445", | ||
"description": "Daily backup", | ||
"id": "d0083dc5-8795-4c1a-bc9c-74f70006c205", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "89afd400-b646-4bbc-b12b-c0a4d63e5bd3", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "7acd675e-4e06-4653-af9f-2ecd546342d6", | ||
"group_snapshot_id": null, | ||
"user_id": "c853ca26-e8ea-4797-8a52-ee124a013d0e" | ||
} | ||
] | ||
} |
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
16 changes: 16 additions & 0 deletions
16
...sts/functional/api_sample_tests/samples/snapshots/v3.14/snapshot-create-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,16 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "%(strtime)s", | ||
"description": "Daily backup", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...tests/functional/api_sample_tests/samples/snapshots/v3.14/snapshot-show-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,18 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "%(strtime)s", | ||
"description": "Daily backup", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "%(uuid)s", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...sts/functional/api_sample_tests/samples/snapshots/v3.14/snapshot-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,16 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "%(strtime)s", | ||
"description": "This is yet, another snapshot.", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-002", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...tional/api_sample_tests/samples/snapshots/v3.14/snapshots-list-detailed-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,20 @@ | ||
{ | ||
"snapshots": [ | ||
{ | ||
"created_at": "%(strtime)s", | ||
"description": "Daily backup", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "%(uuid)s", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
...sts/functional/api_sample_tests/samples/snapshots/v3.41/snapshot-create-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,17 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "%(strtime)s", | ||
"description": "Daily backup", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null, | ||
"user_id": "%(uuid)s" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...tests/functional/api_sample_tests/samples/snapshots/v3.41/snapshot-show-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,19 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "%(strtime)s", | ||
"description": "Daily backup", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "%(uuid)s", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null, | ||
"user_id": "%(uuid)s" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...sts/functional/api_sample_tests/samples/snapshots/v3.41/snapshot-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,17 @@ | ||
{ | ||
"snapshot": { | ||
"created_at": "%(strtime)s", | ||
"description": "This is yet, another snapshot.", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-002", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null, | ||
"user_id": "%(uuid)s" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...tional/api_sample_tests/samples/snapshots/v3.41/snapshots-list-detailed-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,21 @@ | ||
{ | ||
"snapshots": [ | ||
{ | ||
"created_at": "%(strtime)s", | ||
"description": "Daily backup", | ||
"id": "%(uuid)s", | ||
"metadata": { | ||
"key": "v3" | ||
}, | ||
"name": "snap-001", | ||
"os-extended-snapshot-attributes:progress": "0%", | ||
"os-extended-snapshot-attributes:project_id": "%(uuid)s", | ||
"size": 10, | ||
"status": "creating", | ||
"updated_at": null, | ||
"volume_id": "%(uuid)s", | ||
"group_snapshot_id": null, | ||
"user_id": "%(uuid)s" | ||
} | ||
] | ||
} |
Oops, something went wrong.