Skip to content

Commit

Permalink
fix: adapt regex for log tracing format
Browse files Browse the repository at this point in the history
* Necessary after the test was fixed so that the regex no longer slurps both [] pairs.
  • Loading branch information
swalchemist committed Aug 17, 2023
1 parent 4ce898e commit 3c67be4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/acceptance_tests/uaa-release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
)
Expand Down Expand Up @@ -140,7 +139,7 @@ var _ = Describe("UaaRelease", func() {

})

logLineWithoutTimestampRegex := ` uaa.* - \d+ \[([^]]+)\] .... (DEBUG|\sINFO|\sWARN) --- .+: .+`
logLineWithoutTimestampRegex := ` uaa.* - \d+ \[([^]]+)\] - \[[^]]+\] .... (DEBUG|\sINFO|\sWARN) --- .+: .+`

DescribeTable("UAA log format", func(uaaLogFormat string, optFiles ...string) {
deployUAA(optFiles...)
Expand Down

0 comments on commit 3c67be4

Please sign in to comment.