@@ -2,6 +2,7 @@ package schema_test
2
2
3
3
import (
4
4
"bytes"
5
+
5
6
"code.cloudfoundry.org/gorouter/accesslog/schema"
6
7
"code.cloudfoundry.org/gorouter/config"
7
8
"code.cloudfoundry.org/gorouter/handlers"
@@ -68,7 +69,7 @@ var _ = Describe("AccessLogRecord", func() {
68
69
Eventually (r ).Should (Say (`x_forwarded_proto:"FakeOriginalRequestProto" ` ))
69
70
Eventually (r ).Should (Say (`vcap_request_id:"abc-123-xyz-pdq" response_time:60.000000 gorouter_time:10.000000 app_id:"FakeApplicationId" ` ))
70
71
Eventually (r ).Should (Say (`app_index:"3"` ))
71
- Eventually (r ).Should (Say (`x_cf_routererror:"some-router-error"\n ` ))
72
+ Eventually (r ).Should (Say (`x_cf_routererror:"some-router-error"` ))
72
73
})
73
74
74
75
Context ("when DisableSourceIPLogging is specified" , func () {
@@ -153,7 +154,7 @@ var _ = Describe("AccessLogRecord", func() {
153
154
Eventually (r ).Should (Say (`x_forwarded_proto:"FooOriginalRequestProto" ` ))
154
155
Eventually (r ).Should (Say (`vcap_request_id:"abc-123-xyz-pdq" response_time:60.000000 gorouter_time:10.000000 app_id:"FakeApplicationId" ` ))
155
156
Eventually (r ).Should (Say (`app_index:"3"` ))
156
- Eventually (r ).Should (Say (`x_cf_routererror:"some-router-error"\n ` ))
157
+ Eventually (r ).Should (Say (`x_cf_routererror:"some-router-error"` ))
157
158
})
158
159
})
159
160
@@ -181,7 +182,7 @@ var _ = Describe("AccessLogRecord", func() {
181
182
Eventually (r ).Should (Say (`x_forwarded_proto:"-" ` ))
182
183
Eventually (r ).Should (Say (`vcap_request_id:"-" response_time:"-" gorouter_time:"-" app_id:"FakeApplicationId" ` ))
183
184
Eventually (r ).Should (Say (`app_index:"-"` ))
184
- Eventually (r ).Should (Say (`x_cf_routererror:"-"\n ` ))
185
+ Eventually (r ).Should (Say (`x_cf_routererror:"-"` ))
185
186
})
186
187
})
187
188
@@ -212,7 +213,7 @@ var _ = Describe("AccessLogRecord", func() {
212
213
Eventually (r ).Should (Say (`x_forwarded_proto:"FakeOriginalRequestProto" ` ))
213
214
Eventually (r ).Should (Say (`vcap_request_id:"abc-123-xyz-pdq" response_time:60.000000 gorouter_time:10.000000 app_id:"FakeApplicationId" ` ))
214
215
Eventually (r ).Should (Say (`app_index:"3" x_cf_routererror:"some-router-error" cache_control:"no-cache" accept_encoding:"gzip, deflate" ` ))
215
- Eventually (r ).Should (Say (`if_match:"737060cd8c284d8af7ad3082f209582d" doesnt_exist:"-"\n ` ))
216
+ Eventually (r ).Should (Say (`if_match:"737060cd8c284d8af7ad3082f209582d" doesnt_exist:"-"` ))
216
217
})
217
218
})
218
219
@@ -254,7 +255,7 @@ var _ = Describe("AccessLogRecord", func() {
254
255
Eventually (r ).Should (Say (`x_forwarded_proto:"FakeOriginalRequestProto" ` ))
255
256
Eventually (r ).Should (Say (`vcap_request_id:"abc-123-xyz-pdq" response_time:60.000000 gorouter_time:10.000000 app_id:"FakeApplicationId" ` ))
256
257
Eventually (r ).Should (Say (`app_index:"3"` ))
257
- Eventually (r ).Should (Say (`x_cf_routererror:"-"\n ` ))
258
+ Eventually (r ).Should (Say (`x_cf_routererror:"-"` ))
258
259
})
259
260
})
260
261
})
0 commit comments