Skip to content

Commit

Permalink
Add additional unit test for expose log with TANZU_CLI_LOG_LEVEL (vmw…
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 authored Jul 31, 2023
1 parent 06f0c60 commit ce40415
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion log/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestLogger(t *testing.T) {
},
{
test: "when TANZU_CLI_LOG_LEVEL is set to 3",
logLevel: "",
logLevel: "3",
containStrings: []string{"log-default", "log-0", "log-1", "log-3"},
doesNotContainStrings: []string{"log-5", "log-8"},
},
Expand All @@ -38,6 +38,12 @@ func TestLogger(t *testing.T) {
containStrings: []string{"log-default", "log-0", "log-1", "log-3", "log-5"},
doesNotContainStrings: []string{"log-8"},
},
{
test: "when TANZU_CLI_LOG_LEVEL is set to 8",
logLevel: "8",
containStrings: []string{"log-default", "log-0", "log-1", "log-3", "log-5", "log-8"},
doesNotContainStrings: []string{},
},
{
test: "when TANZU_CLI_LOG_LEVEL is set to 9",
logLevel: "9",
Expand Down

0 comments on commit ce40415

Please sign in to comment.