Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Wksctl
Commits
7540e9dc
Commit
7540e9dc
authored
5 years ago
by
Dann Church
Browse files
Options
Download
Email Patches
Plain Diff
check verbose from json output
parent
53f69b03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/integration/test/apply_test.go
+2
-3
test/integration/test/apply_test.go
with
2 additions
and
3 deletions
+2
-3
test/integration/test/apply_test.go
+
2
-
3
View file @
7540e9dc
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help