github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/layer3/floatingips/testing/fixtures.go (about) 1 package testing 2 3 import ( 4 "fmt" 5 ) 6 7 const FipDNS = `{ 8 "floating_network_id": "6d67c30a-ddb4-49a1-bec3-a65b286b4170", 9 "router_id": null, 10 "fixed_ip_address": null, 11 "floating_ip_address": "192.0.0.4", 12 "tenant_id": "017d8de156df4177889f31a9bd6edc00", 13 "created_at": "2019-06-30T04:15:37", 14 "updated_at": "2019-06-30T05:18:49", 15 "status": "DOWN", 16 "port_id": null, 17 "id": "2f95fd2b-9f6a-4e8e-9e9a-2cbe286cbf9e", 18 "router_id": "1117c30a-ddb4-49a1-bec3-a65b286b4170", 19 "dns_domain": "local.", 20 "dns_name": "test-fip" 21 }` 22 23 const FipNoDNS = `{ 24 "floating_network_id": "90f742b1-6d17-487b-ba95-71881dbc0b64", 25 "router_id": "0a24cb83-faf5-4d7f-b723-3144ed8a2167", 26 "fixed_ip_address": "192.0.0.2", 27 "floating_ip_address": "10.0.0.3", 28 "tenant_id": "017d8de156df4177889f31a9bd6edc00", 29 "created_at": "2019-06-30T04:15:37Z", 30 "updated_at": "2019-06-30T05:18:49Z", 31 "status": "DOWN", 32 "port_id": "74a342ce-8e07-4e91-880c-9f834b68fa25", 33 "id": "ada25a95-f321-4f59-b0e0-f3a970dd3d63", 34 "router_id": "2227c30a-ddb4-49a1-bec3-a65b286b4170", 35 "dns_domain": "", 36 "dns_name": "" 37 }` 38 39 var ListResponse = fmt.Sprintf(` 40 { 41 "floatingips": [ 42 %s, 43 %s 44 ] 45 } 46 `, FipDNS, FipNoDNS) 47 48 var ListResponseDNS = fmt.Sprintf(` 49 { 50 "floatingips": [ 51 %s 52 ] 53 } 54 `, FipDNS)