File: fixtures.go

package info (click to toggle)
golang-github-gophercloud-gophercloud 0.0~git20180917.45f1c769-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,768 kB
  • sloc: sh: 98; makefile: 14
file content (28 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package testing

// ServerWithAttributesExtResult represents a raw server response from the
// Compute API with OS-EXT-SRV-ATTR data.
// Most of the actual fields were deleted from the response.
const ServerWithAttributesExtResult = `
{
    "server": {
        "OS-EXT-SRV-ATTR:user_data": "",
        "OS-EXT-SRV-ATTR:instance_name": "instance-00000001",
        "OS-EXT-SRV-ATTR:root_device_name": "/dev/sda",
        "OS-EXT-SRV-ATTR:hostname": "test00",
        "OS-EXT-SRV-ATTR:reservation_id": "r-ky9gim1l",
        "OS-EXT-SRV-ATTR:ramdisk_id": "",
        "OS-EXT-SRV-ATTR:host": "compute01",
        "OS-EXT-SRV-ATTR:kernel_id": "",
        "OS-EXT-SRV-ATTR:hypervisor_hostname": "compute01",
        "OS-EXT-SRV-ATTR:launch_index": 0,
        "created": "2018-07-27T09:15:48Z",
        "updated": "2018-07-27T09:15:55Z",
        "id": "d650a0ce-17c3-497d-961a-43c4af80998a",
        "name": "test_instance",
        "status": "ACTIVE",
        "user_id": "0f2f3822679e4b3ea073e5d1c6ed5f02",
        "tenant_id": "424e7cf0243c468ca61732ba45973b3e"
    }
}
`