df28420760
The amount of DB and compute service stubbing in these functional tests is pretty gross and makes it harder to maintain/extend them for new microversions which makes it harder for new contributors to work with these kinds of tests. This removes the stubs and uses the CinderFixture. The only new stub is dealing with detaching a volume with a device tag since the fake driver does not track device metadata on instances. The API reference doc samples are regenerated using: tox -e api-samples VolumeAttachmentsSample Change-Id: I04bca162c3a1d4fed7056385dfdca72c07bab9a5
10 lines
299 B
JSON
10 lines
299 B
JSON
{
|
|
"volumeAttachment": {
|
|
"delete_on_termination": true,
|
|
"device": "/dev/sdb",
|
|
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
|
|
"serverId": "2aad99d3-7aa4-41e9-b4e6-3f960b115d68",
|
|
"tag": "foo",
|
|
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
|
|
}
|
|
} |