|
27 | 27 | let(:route_in_org_json) do |
28 | 28 | { |
29 | 29 | guid: route_in_org.guid, |
| 30 | + protocol: route_in_org.domain.protocols[0], |
30 | 31 | host: route_in_org.host, |
31 | 32 | path: route_in_org.path, |
32 | 33 | url: "#{route_in_org.host}.#{route_in_org.domain.name}#{route_in_org.path}", |
|
80 | 81 | let(:route_in_other_org_json) do |
81 | 82 | { |
82 | 83 | guid: route_in_other_org.guid, |
| 84 | + protocol: route_in_other_org.domain.protocols[0], |
83 | 85 | host: route_in_other_org.host, |
84 | 86 | path: route_in_other_org.path, |
85 | 87 | url: "#{route_in_other_org.host}.#{route_in_other_org.domain.name}#{route_in_other_org.path}", |
|
245 | 247 | let(:route1_domain1_json) do |
246 | 248 | { |
247 | 249 | guid: route1_domain1.guid, |
| 250 | + protocol: route1_domain1.domain.protocols[0], |
248 | 251 | created_at: iso8601, |
249 | 252 | updated_at: iso8601, |
250 | 253 | host: route1_domain1.host, |
|
307 | 310 | let(:route_without_host_and_with_path_json) do |
308 | 311 | { |
309 | 312 | guid: 'route-without-host', |
| 313 | + protocol: domain.protocols[0], |
310 | 314 | created_at: iso8601, |
311 | 315 | updated_at: iso8601, |
312 | 316 | destinations: [], |
|
340 | 344 | let(:route_without_host_and_with_path2_json) do |
341 | 345 | { |
342 | 346 | guid: 'route-without-host2', |
| 347 | + protocol: domain.protocols[0], |
343 | 348 | created_at: iso8601, |
344 | 349 | updated_at: iso8601, |
345 | 350 | destinations: [], |
|
376 | 381 | let(:route_without_path_and_with_host_json) do |
377 | 382 | { |
378 | 383 | guid: 'route-without-path', |
| 384 | + protocol: domain.protocols[0], |
379 | 385 | created_at: iso8601, |
380 | 386 | updated_at: iso8601, |
381 | 387 | destinations: [], |
|
809 | 815 | let(:route_json) do |
810 | 816 | { |
811 | 817 | guid: route.guid, |
| 818 | + protocol: route.domain.protocols[0], |
812 | 819 | host: route.host, |
813 | 820 | path: route.path, |
814 | 821 | url: "#{route.host}.#{route.domain.name}#{route.path}", |
|
892 | 899 | let(:route_json) do |
893 | 900 | { |
894 | 901 | guid: route.guid, |
| 902 | + protocol: route.domain.protocols[0], |
895 | 903 | host: route.host, |
896 | 904 | path: route.path, |
897 | 905 | url: "#{route.host}.#{route.domain.name}#{route.path}", |
|
950 | 958 | let(:route_json) do |
951 | 959 | { |
952 | 960 | guid: UUID_REGEX, |
| 961 | + protocol: domain.protocols[0], |
953 | 962 | host: '', |
954 | 963 | path: '', |
955 | 964 | url: domain.name, |
|
1022 | 1031 | let(:route_json) do |
1023 | 1032 | { |
1024 | 1033 | guid: UUID_REGEX, |
| 1034 | + protocol: domain.protocols[0], |
1025 | 1035 | host: 'some-host', |
1026 | 1036 | path: '/some-path', |
1027 | 1037 | url: "some-host.#{domain.name}/some-path", |
|
1101 | 1111 | let(:route_json) do |
1102 | 1112 | { |
1103 | 1113 | guid: UUID_REGEX, |
| 1114 | + protocol: domain.protocols[0], |
1104 | 1115 | host: '*', |
1105 | 1116 | path: '', |
1106 | 1117 | url: "*.#{domain.name}", |
|
1193 | 1204 | let(:route_json) do |
1194 | 1205 | { |
1195 | 1206 | guid: UUID_REGEX, |
| 1207 | + protocol: domain.protocols[0], |
1196 | 1208 | host: 'some-host', |
1197 | 1209 | path: '', |
1198 | 1210 | url: "some-host.#{domain.name}", |
|
1260 | 1272 | let(:route_json) do |
1261 | 1273 | { |
1262 | 1274 | guid: UUID_REGEX, |
| 1275 | + protocol: domain.protocols[0], |
1263 | 1276 | host: '*', |
1264 | 1277 | path: '', |
1265 | 1278 | url: "*.#{domain.name}", |
|
1334 | 1347 | let(:route_json) do |
1335 | 1348 | { |
1336 | 1349 | guid: UUID_REGEX, |
| 1350 | + protocol: domain.protocols[0], |
1337 | 1351 | host: 'some-host', |
1338 | 1352 | path: '', |
1339 | 1353 | url: "some-host.#{domain.name}", |
|
1450 | 1464 | let(:route_json) do |
1451 | 1465 | { |
1452 | 1466 | guid: UUID_REGEX, |
| 1467 | + protocol: domain.protocols[0], |
1453 | 1468 | host: 'some-host', |
1454 | 1469 | path: '', |
1455 | 1470 | url: "some-host.#{domain.name}", |
|
1677 | 1692 | let(:route_json) do |
1678 | 1693 | { |
1679 | 1694 | guid: UUID_REGEX, |
| 1695 | + protocol: domain.protocols[0], |
1680 | 1696 | host: params[:host], |
1681 | 1697 | path: '', |
1682 | 1698 | url: "#{params[:host]}.#{domain.name}", |
|
1902 | 1918 | let(:route_json) do |
1903 | 1919 | { |
1904 | 1920 | guid: UUID_REGEX, |
| 1921 | + protocol: domain.protocols[0], |
1905 | 1922 | host: '', |
1906 | 1923 | path: '', |
1907 | 1924 | url: domain.name, |
|
1959 | 1976 | let(:route_json) do |
1960 | 1977 | { |
1961 | 1978 | guid: UUID_REGEX, |
| 1979 | + protocol: domain.protocols[0], |
1962 | 1980 | host: '', |
1963 | 1981 | path: '', |
1964 | 1982 | url: domain.name, |
|
2130 | 2148 | let(:route1_json) do |
2131 | 2149 | { |
2132 | 2150 | guid: route1.guid, |
| 2151 | + protocol: route1.domain.protocols[0], |
2133 | 2152 | host: route1.host, |
2134 | 2153 | path: route1.path, |
2135 | 2154 | url: "#{route1.host}.#{route1.domain.name}#{route1.path}", |
|
2172 | 2191 | let(:route2_json) do |
2173 | 2192 | { |
2174 | 2193 | guid: route2.guid, |
| 2194 | + protocol: route2.domain.protocols[0], |
2175 | 2195 | host: route2.host, |
2176 | 2196 | path: route2.path, |
2177 | 2197 | url: "#{route2.host}.#{route2.domain.name}#{route2.path}", |
|
0 commit comments