@@ -48,8 +48,8 @@ class Protocol
4848
4949 it 'returns the mapped http routes associated with the app with protocol' do
5050 expected_http = [
51- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http2' } ,
52- { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' }
51+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http2' , 'options' => { } } ,
52+ { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } }
5353 ]
5454
5555 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -66,8 +66,8 @@ class Protocol
6666 context 'and app has no ports' do
6767 it 'returns the mapped http routes associated with the app with a default of port 8080' do
6868 expected_http = [
69- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http1' } ,
70- { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' }
69+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } } ,
70+ { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } }
7171 ]
7272
7373 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -80,8 +80,8 @@ class Protocol
8080
8181 it 'uses the first port available on the app' do
8282 expected_http = [
83- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 7890 , 'protocol' => 'http1' } ,
84- { 'hostname' => route_without_service . uri , 'port' => 7890 , 'protocol' => 'http1' }
83+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 7890 , 'protocol' => 'http1' , 'options' => { } } ,
84+ { 'hostname' => route_without_service . uri , 'port' => 7890 , 'protocol' => 'http1' , 'options' => { } }
8585 ]
8686
8787 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -113,8 +113,8 @@ class Protocol
113113
114114 it 'uses 8080 as a default' do
115115 expected_http = [
116- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http1' } ,
117- { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' }
116+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } } ,
117+ { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } }
118118 ]
119119
120120 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -127,8 +127,8 @@ class Protocol
127127
128128 it 'uses the first docker port available on the app' do
129129 expected_http = [
130- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 1024 , 'protocol' => 'http1' } ,
131- { 'hostname' => route_without_service . uri , 'port' => 1024 , 'protocol' => 'http1' }
130+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 1024 , 'protocol' => 'http1' , 'options' => { } } ,
131+ { 'hostname' => route_without_service . uri , 'port' => 1024 , 'protocol' => 'http1' , 'options' => { } }
132132 ]
133133
134134 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -154,7 +154,7 @@ class Protocol
154154
155155 it 'returns the app port in routing info' do
156156 expected_http = [
157- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' }
157+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' , 'options' => { } }
158158 ]
159159
160160 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -169,8 +169,8 @@ class Protocol
169169
170170 it 'returns the app port in routing info' do
171171 expected_http = [
172- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http1' } ,
173- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' }
172+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } } ,
173+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' , 'options' => { } }
174174 ]
175175
176176 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -185,8 +185,8 @@ class Protocol
185185
186186 it 'returns the app port in routing info' do
187187 expected_http = [
188- { 'hostname' => route_without_service . uri , 'port' => 9090 , 'protocol' => 'http1' } ,
189- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' }
188+ { 'hostname' => route_without_service . uri , 'port' => 9090 , 'protocol' => 'http1' , 'options' => { } } ,
189+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' , 'options' => { } }
190190 ]
191191
192192 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
@@ -201,8 +201,8 @@ class Protocol
201201
202202 it 'returns the app port in routing info' do
203203 expected_http = [
204- { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' } ,
205- { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' }
204+ { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } } ,
205+ { 'hostname' => route_with_service . uri , 'route_service_url' => route_with_service . route_service_url , 'port' => 9090 , 'protocol' => 'http1' , 'options' => { } }
206206 ]
207207 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
208208 expect ( ri [ 'http_routes' ] ) . to match_array expected_http
@@ -216,7 +216,7 @@ class Protocol
216216 let! ( :route_mapping2 ) { RouteMappingModel . make ( app : process2 . app , route : route_without_service ) }
217217
218218 it 'returns only one route without duplications' do
219- expected_http = { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' }
219+ expected_http = { 'hostname' => route_without_service . uri , 'port' => 8080 , 'protocol' => 'http1' , 'options' => { } }
220220
221221 expect ( ri . keys ) . to match_array %w[ http_routes internal_routes ]
222222 expect ( ri [ 'http_routes' ] ) . to contain_exactly expected_http
@@ -232,7 +232,7 @@ class Protocol
232232 it 'returns the router group guid in the http routing info' do
233233 expect ( ri . keys ) . to contain_exactly ( 'http_routes' , 'internal_routes' )
234234 hr = ri [ 'http_routes' ] [ 0 ]
235- expect ( hr . keys ) . to contain_exactly ( 'router_group_guid' , 'port' , 'hostname' , 'protocol' )
235+ expect ( hr . keys ) . to contain_exactly ( 'router_group_guid' , 'port' , 'hostname' , 'protocol' , 'options' )
236236 expect ( hr [ 'router_group_guid' ] ) . to eql ( domain . router_group_guid )
237237 expect ( hr [ 'port' ] ) . to eql ( http_route . port )
238238 expect ( hr [ 'hostname' ] ) . to match ( /host-[0-9]+\. #{ domain . name } / )
0 commit comments