Skip to content

Commit fcaa912

Browse files
committed
hs-test: fix envoy access log collection filename
Type: test Change-Id: I34a13bf599073bb7edfea312a31f6ca9619756b1 Signed-off-by: Florin Coras <fcoras@cisco.com>
1 parent 3b4917b commit fcaa912

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/hs-test/infra/utils.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ CollectNginxLogs save access and error logs to the test execution directory.
233233
Nginx logging need to be set following way:
234234
235235
- error_log <default-work-dir>/{{.LogPrefix}}-error.log;
236-
- access_log <default-work-dir>/{{.LogPrefix}}-accesLog;
236+
- access_log <default-work-dir>/{{.LogPrefix}}-access.log;
237237
238238
where LogPrefix is set to nginxContainer.Name
239239
*/
@@ -251,13 +251,14 @@ func CollectNginxLogs(nginxContainer *Container) {
251251
/*
252252
CollectEnvoyLogs save access logs to the test execution directory.
253253
Envoy access log path need to be set following way:
254-
<default-work-dir>/{{.LogPrefix}}-accesLog
254+
<default-work-dir>/{{.LogPrefix}}-access.log
255255
where LogPrefix is set to envoyContainer.Name
256256
*/
257257
func CollectEnvoyLogs(envoyContainer *Container) {
258258
targetDir := envoyContainer.Suite.getLogDirPath()
259259
source := envoyContainer.GetHostWorkDir() + "/" + envoyContainer.Name + "-"
260-
cmd := exec.Command("cp", "-t", targetDir, source+"accesLog")
260+
// keep in sync with envoy/proxy.yaml access_log
261+
cmd := exec.Command("cp", "-t", targetDir, source+"access.log")
261262
Log(cmd.String())
262263
err := cmd.Run()
263264
if err != nil {

0 commit comments

Comments
 (0)