Skip to content

Commit

Permalink
tests(data-planes) fix access logs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xbauquet committed Jun 18, 2020
1 parent 1efbda2 commit 316ed0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/xds/envoy/listeners/http_access_log_configurer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ var _ = Describe("HttpAccessLogConfigurer", func() {
'@type': type.googleapis.com/envoy.config.accesslog.v2.FileAccessLog
format: |
[%START_TIME%] demo "%REQ(:method)% %REQ(x-envoy-original-path?:path)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(x-envoy-upstream-service-time)% "%REQ(x-forwarded-for)%" "%REQ(user-agent)%" "%REQ(x-request-id)%" "%REQ(:authority)%" "web" "backend" "192.168.0.1" "%UPSTREAM_HOST%"
path: /tmp/log
httpFilters:
- name: envoy.router
Expand Down Expand Up @@ -190,6 +191,7 @@ var _ = Describe("HttpAccessLogConfigurer", func() {
127.0.0.1:1234;[%START_TIME%] "%REQ(x-request-id)%" "%REQ(:authority)%" "%REQ(origin)%" "%REQ(content-type)%" "web" "backend" "192.168.0.1:0" "192.168.0.1" "%UPSTREAM_HOST%"
"%RESP(server):5%" "%TRAILER(grpc-message):7%" "DYNAMIC_METADATA(namespace:object:key):9" "FILTER_STATE(filter.state.key):12"
httpFilters:
- name: envoy.router
rds:
Expand Down
2 changes: 2 additions & 0 deletions pkg/xds/envoy/listeners/network_access_log_configurer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ var _ = Describe("NetworkAccessLogConfigurer", func() {
'@type': type.googleapis.com/envoy.config.accesslog.v2.FileAccessLog
format: |
[%START_TIME%] %RESPONSE_FLAGS% demo 192.168.0.1(backend)->%UPSTREAM_HOST%(db) took %DURATION%ms, sent %BYTES_SENT% bytes, received: %BYTES_RECEIVED% bytes
path: /tmp/log
cluster: db
statPrefix: db
Expand Down Expand Up @@ -181,6 +182,7 @@ var _ = Describe("NetworkAccessLogConfigurer", func() {
127.0.0.1:1234;[%START_TIME%] "%REQ(x-request-id)%" "%REQ(:authority)%" "%REQ(origin)%" "%REQ(content-type)%" "backend" "db" "192.168.0.1:0" "192.168.0.1" "%UPSTREAM_HOST%
"%RESP(server):5%" "%TRAILER(grpc-message):7%" "DYNAMIC_METADATA(namespace:object:key):9" "FILTER_STATE(filter.state.key):12"
cluster: db
statPrefix: db
`,
Expand Down

0 comments on commit 316ed0c

Please sign in to comment.