Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Local Path Provisioner
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Local Path Provisioner
Commits
4d5f92d8
Commit
4d5f92d8
authored
Aug 30, 2022
by
AnthonyEnr1quez
Committed by
Derek Su
Sep 24, 2022
Browse files
Options
Downloads
Patches
Plain Diff
remove debug print and handle error
parent
0b781318
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/pod_test.go
+4
-2
4 additions, 2 deletions
test/pod_test.go
with
4 additions
and
2 deletions
test/pod_test.go
+
4
−
2
View file @
4d5f92d8
...
...
@@ -164,8 +164,10 @@ func runTest(p *PodTestSuite, images []string, waitCondition, volumeType string)
typeCheckCmd
:=
fmt
.
Sprintf
(
"kubectl get pv $(%s) -o jsonpath='{.spec.%s}'"
,
"kubectl get pv -o jsonpath='{.items[0].metadata.name}'"
,
volumeType
)
c
:=
createCmd
(
p
.
T
(),
typeCheckCmd
,
kustomizeDir
,
p
.
config
.
envs
(),
nil
)
typeCheckOutput
,
_
:=
c
.
CombinedOutput
()
fmt
.
Println
(
string
(
typeCheckOutput
))
typeCheckOutput
,
err
:=
c
.
CombinedOutput
()
if
err
!=
nil
{
p
.
FailNow
(
""
,
"failed to check volume type: %v"
,
err
)
}
if
len
(
typeCheckOutput
)
==
0
||
!
strings
.
Contains
(
string
(
typeCheckOutput
),
"path"
)
{
p
.
FailNow
(
"volume Type not correct"
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment