summaryrefslogtreecommitdiff
path: root/doc/api_samples
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2019-09-11 17:42:33 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2019-09-11 17:44:36 -0400
commit6f3c2a567207d5bcabe049cb948c6f4821f55d83 (patch)
treecf4c91b200a033c3cabc9b6e11a3dfad1520bcad /doc/api_samples
parentdf28420760c606285da704b82ffdd1dd5c317e6c (diff)
downloadnova-6f3c2a567207d5bcabe049cb948c6f4821f55d83.tar.gz
Use multiple attachments in test_list_volume_attachments
This is a follow up to I04bca162c3a1d4fed7056385dfdca72c07bab9a5 to make test_list_volume_attachments use two attachments for the list response output and to update the API reference samples. Change-Id: I6d7cee16e1eed6fa4fdb6389c6d3ff670ac5a7c3
Diffstat (limited to 'doc/api_samples')
-rw-r--r--doc/api_samples/os-volumes/list-volume-attachments-resp.json8
-rw-r--r--doc/api_samples/os-volumes/v2.49/list-volume-attachments-resp.json8
-rw-r--r--doc/api_samples/os-volumes/v2.70/list-volume-attachments-resp.json9
-rw-r--r--doc/api_samples/os-volumes/v2.79/list-volume-attachments-resp.json10
4 files changed, 31 insertions, 4 deletions
diff --git a/doc/api_samples/os-volumes/list-volume-attachments-resp.json b/doc/api_samples/os-volumes/list-volume-attachments-resp.json
index 68411d9c95..3ad77cf7de 100644
--- a/doc/api_samples/os-volumes/list-volume-attachments-resp.json
+++ b/doc/api_samples/os-volumes/list-volume-attachments-resp.json
@@ -1,9 +1,15 @@
{
"volumeAttachments": [
{
+ "device": "/dev/sdc",
+ "id": "227cc671-f30b-4488-96fd-7d0bf13648d8",
+ "serverId": "4b293d31-ebd5-4a7f-be03-874b90021e54",
+ "volumeId": "227cc671-f30b-4488-96fd-7d0bf13648d8"
+ },
+ {
"device": "/dev/sdb",
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
- "serverId": "fd5bb1c4-de31-4071-8472-9410bc9155ec",
+ "serverId": "4b293d31-ebd5-4a7f-be03-874b90021e54",
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
}
]
diff --git a/doc/api_samples/os-volumes/v2.49/list-volume-attachments-resp.json b/doc/api_samples/os-volumes/v2.49/list-volume-attachments-resp.json
index 4e696e9f06..18a5aad803 100644
--- a/doc/api_samples/os-volumes/v2.49/list-volume-attachments-resp.json
+++ b/doc/api_samples/os-volumes/v2.49/list-volume-attachments-resp.json
@@ -1,9 +1,15 @@
{
"volumeAttachments": [
{
+ "device": "/dev/sdc",
+ "id": "227cc671-f30b-4488-96fd-7d0bf13648d8",
+ "serverId": "1453a6a8-10ec-4797-9b9e-da3c703579d5",
+ "volumeId": "227cc671-f30b-4488-96fd-7d0bf13648d8"
+ },
+ {
"device": "/dev/sdb",
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
- "serverId": "1b92ff87-0116-40f5-9087-f4b907aeeaf1",
+ "serverId": "1453a6a8-10ec-4797-9b9e-da3c703579d5",
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
}
]
diff --git a/doc/api_samples/os-volumes/v2.70/list-volume-attachments-resp.json b/doc/api_samples/os-volumes/v2.70/list-volume-attachments-resp.json
index 0b803c6d6b..f17cc8e2d8 100644
--- a/doc/api_samples/os-volumes/v2.70/list-volume-attachments-resp.json
+++ b/doc/api_samples/os-volumes/v2.70/list-volume-attachments-resp.json
@@ -1,9 +1,16 @@
{
"volumeAttachments": [
{
+ "device": "/dev/sdc",
+ "id": "227cc671-f30b-4488-96fd-7d0bf13648d8",
+ "serverId": "68426b0f-511b-4cb3-8169-bba2e7a8bc89",
+ "tag": null,
+ "volumeId": "227cc671-f30b-4488-96fd-7d0bf13648d8"
+ },
+ {
"device": "/dev/sdb",
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
- "serverId": "297155de-f7f2-4e87-82d0-ccc7d225d491",
+ "serverId": "68426b0f-511b-4cb3-8169-bba2e7a8bc89",
"tag": "foo",
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
}
diff --git a/doc/api_samples/os-volumes/v2.79/list-volume-attachments-resp.json b/doc/api_samples/os-volumes/v2.79/list-volume-attachments-resp.json
index 26ea4ee7b4..ffe7c0baf1 100644
--- a/doc/api_samples/os-volumes/v2.79/list-volume-attachments-resp.json
+++ b/doc/api_samples/os-volumes/v2.79/list-volume-attachments-resp.json
@@ -1,10 +1,18 @@
{
"volumeAttachments": [
{
+ "delete_on_termination": false,
+ "device": "/dev/sdc",
+ "id": "227cc671-f30b-4488-96fd-7d0bf13648d8",
+ "serverId": "d5e4ae35-ac0e-4311-a8c5-0ee863e951d9",
+ "tag": null,
+ "volumeId": "227cc671-f30b-4488-96fd-7d0bf13648d8"
+ },
+ {
"delete_on_termination": true,
"device": "/dev/sdb",
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
- "serverId": "09b3b9d1-b8c5-48e1-841d-62c3ef967a88",
+ "serverId": "d5e4ae35-ac0e-4311-a8c5-0ee863e951d9",
"tag": "foo",
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
}