github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/extendedserverattributes/testing/fixtures.go (about) 1 package testing 2 3 // ServerWithAttributesExtResult represents a raw server response from the 4 // Compute API with OS-EXT-SRV-ATTR data. 5 // Most of the actual fields were deleted from the response. 6 const ServerWithAttributesExtResult = ` 7 { 8 "server": { 9 "OS-EXT-SRV-ATTR:user_data": "", 10 "OS-EXT-SRV-ATTR:instance_name": "instance-00000001", 11 "OS-EXT-SRV-ATTR:root_device_name": "/dev/sda", 12 "OS-EXT-SRV-ATTR:hostname": "test00", 13 "OS-EXT-SRV-ATTR:reservation_id": "r-ky9gim1l", 14 "OS-EXT-SRV-ATTR:ramdisk_id": "", 15 "OS-EXT-SRV-ATTR:host": "compute01", 16 "OS-EXT-SRV-ATTR:kernel_id": "", 17 "OS-EXT-SRV-ATTR:hypervisor_hostname": "compute01", 18 "OS-EXT-SRV-ATTR:launch_index": 0, 19 "created": "2018-07-27T09:15:48Z", 20 "updated": "2018-07-27T09:15:55Z", 21 "id": "d650a0ce-17c3-497d-961a-43c4af80998a", 22 "name": "test_instance", 23 "status": "ACTIVE", 24 "user_id": "0f2f3822679e4b3ea073e5d1c6ed5f02", 25 "tenant_id": "424e7cf0243c468ca61732ba45973b3e" 26 } 27 } 28 `