github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/layer3/addressscopes/testing/fixtures_test.go (about) 1 package testing 2 3 import "github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/layer3/addressscopes" 4 5 // AddressScopesListResult represents raw response for the List request. 6 const AddressScopesListResult = ` 7 { 8 "address_scopes": [ 9 { 10 "name": "scopev4", 11 "tenant_id": "4a9807b773404e979b19633f38370643", 12 "ip_version": 4, 13 "shared": false, 14 "project_id": "4a9807b773404e979b19633f38370643", 15 "id": "9cc35860-522a-4d35-974d-51d4b011801e" 16 }, 17 { 18 "name": "scopev6", 19 "tenant_id": "4a9807b773404e979b19633f38370643", 20 "ip_version": 6, 21 "shared": true, 22 "project_id": "4a9807b773404e979b19633f38370643", 23 "id": "be992b82-bf42-4ab7-bf7b-6baa8759d388" 24 } 25 ] 26 } 27 ` 28 29 // AddressScope1 represents first unmarshalled address scope from the 30 // AddressScopesListResult. 31 var AddressScope1 = addressscopes.AddressScope{ 32 ID: "9cc35860-522a-4d35-974d-51d4b011801e", 33 Name: "scopev4", 34 TenantID: "4a9807b773404e979b19633f38370643", 35 ProjectID: "4a9807b773404e979b19633f38370643", 36 IPVersion: 4, 37 Shared: false, 38 } 39 40 // AddressScope2 represents second unmarshalled address scope from the 41 // AddressScopesListResult. 42 var AddressScope2 = addressscopes.AddressScope{ 43 ID: "be992b82-bf42-4ab7-bf7b-6baa8759d388", 44 Name: "scopev6", 45 TenantID: "4a9807b773404e979b19633f38370643", 46 ProjectID: "4a9807b773404e979b19633f38370643", 47 IPVersion: 6, 48 Shared: true, 49 } 50 51 // AddressScopesGetResult represents raw response for the Get request. 52 const AddressScopesGetResult = ` 53 { 54 "address_scope": { 55 "name": "scopev4", 56 "tenant_id": "4a9807b773404e979b19633f38370643", 57 "ip_version": 4, 58 "shared": false, 59 "project_id": "4a9807b773404e979b19633f38370643", 60 "id": "9cc35860-522a-4d35-974d-51d4b011801e" 61 } 62 } 63 ` 64 65 // AddressScopeCreateRequest represents raw Create request. 66 const AddressScopeCreateRequest = ` 67 { 68 "address_scope": { 69 "ip_version": 4, 70 "shared": true, 71 "name": "test0" 72 } 73 } 74 ` 75 76 // AddressScopeCreateResult represents raw Create response. 77 const AddressScopeCreateResult = ` 78 { 79 "address_scope": { 80 "name": "test0", 81 "tenant_id": "4a9807b773404e979b19633f38370643", 82 "ip_version": 4, 83 "shared": true, 84 "project_id": "4a9807b773404e979b19633f38370643", 85 "id": "9cc35860-522a-4d35-974d-51d4b011801e" 86 } 87 } 88 ` 89 90 // AddressScopeUpdateRequest represents raw Update request. 91 const AddressScopeUpdateRequest = ` 92 { 93 "address_scope": { 94 "name": "test1", 95 "shared": true 96 } 97 } 98 ` 99 100 // AddressScopeUpdateResult represents raw Update response. 101 const AddressScopeUpdateResult = ` 102 { 103 "address_scope": { 104 "name": "test1", 105 "tenant_id": "4a9807b773404e979b19633f38370643", 106 "ip_version": 4, 107 "shared": true, 108 "project_id": "4a9807b773404e979b19633f38370643", 109 "id": "9cc35860-522a-4d35-974d-51d4b011801e" 110 } 111 } 112 `