Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
aphralG committed Oct 23, 2024
1 parent 0c312e1 commit 30f2d76
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GOBIN ?= $$(go env GOPATH)/bin
# | redhatenterprise | 7, 8, 9 | |
# | rockylinux | 8, 9 | |
# | almalinux | 8, 9 | |
# | alpine | 3.16, 3.17, 3.18, 3.19 | |
# | alpine | 3.17, 3.18, 3.19, 3.20 | |
# | oraclelinux | 7, 8, 9 | |
# | suse | sles12sp5, sle15 | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down
26 changes: 14 additions & 12 deletions internal/resource/nginx_log_tailer_operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,22 @@ func TestLogOperator_Tail(t *testing.T) {
expected: errors.Join(fmt.Errorf("%s", warningLogLine)),
},
{
name: "Test 4: ignore error log: usage report ",
out: bytes.NewBufferString(""),
errorLogs: errorLogFile.Name(),
errorLogContents: "2025/06/25 15:08:04 [error] 123456#123456: certificate verify error: (10:certificate has expired) during usage report",
err: nil,
expected: nil,
name: "Test 4: ignore error log: usage report ",
out: bytes.NewBufferString(""),
errorLogs: errorLogFile.Name(),
errorLogContents: "2025/06/25 15:08:04 [error] 123456#123456: certificate verify error: " +
"(10:certificate has expired) during usage report",
err: nil,
expected: nil,
},
{
name: "Test 5: ignore error log: license expired ",
out: bytes.NewBufferString(""),
errorLogs: errorLogFile.Name(),
errorLogContents: "2025/06/25 15:07:24 [alert] 123456#123456: license expired; the grace period will end in 71 days",
err: nil,
expected: nil,
name: "Test 5: ignore error log: license expired ",
out: bytes.NewBufferString(""),
errorLogs: errorLogFile.Name(),
errorLogContents: "2025/06/25 15:07:24 [alert] 123456#123456: license expired; the grace period " +
"will end in 71 days",
err: nil,
expected: nil,
},
{
name: "Test 6: ignore error log: license expired ",
Expand Down

0 comments on commit 30f2d76

Please sign in to comment.