Commit 7540e9dc authored by Dann Church's avatar Dann Church
Browse files

check verbose from json output

parent 53f69b03
Showing with 2 additions and 3 deletions
+2 -3
......@@ -275,13 +275,12 @@ func testDebugLogging(t *testing.T, kubeconfig string) {
exe := run.NewExecutor()
run, err := exe.RunV(kubectl,
fmt.Sprintf("--kugeconfig=%s", kubeconfig), "describe", "-l", "name=wks-controller")
fmt.Sprintf("--kugeconfig=%s", kubeconfig), "get", "-l", "name=wks-controller", "-o", "json")
assert.NoError(t, err)
assert.Equal(t, 0, run.ExitCode())
verbose := false
if run.Contains("verbose=true") || run.Contains("verbose true") ||
(run.Contains("--verbose") && !run.Contains("verbase=false") && !run.Contains("verbose false")) {
if run.Contains("\"verbose\":true") {
verbose = true
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment