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
小 白蛋
Vault
Commits
111c1d86
Unverified
Commit
111c1d86
authored
3 years ago
by
Lars Lehtonen
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
command: fix dropped errors (#14609)
parent
4eb47813
Branches unavailable
api/v1.5.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
command/kv_test.go
+6
-0
command/kv_test.go
with
6 additions
and
0 deletions
+6
-0
command/kv_test.go
+
6
-
0
View file @
111c1d86
...
...
@@ -971,6 +971,9 @@ func TestKVPatchCommand_CAS(t *testing.T) {
}
secret
,
err
:=
kvClient
.
Logical
()
.
Read
(
"kv/data/foo"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
bar
:=
secret
.
Data
[
"data"
]
.
(
map
[
string
]
interface
{})[
"bar"
]
if
bar
!=
tc
.
expected
{
t
.
Fatalf
(
"expected bar to be %q but it was %q"
,
tc
.
expected
,
bar
)
...
...
@@ -1041,6 +1044,9 @@ func TestKVPatchCommand_Methods(t *testing.T) {
}
secret
,
err
:=
kvClient
.
Logical
()
.
Read
(
"kv/data/foo"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
bar
:=
secret
.
Data
[
"data"
]
.
(
map
[
string
]
interface
{})[
"bar"
]
if
bar
!=
tc
.
expected
{
t
.
Fatalf
(
"expected bar to be %q but it was %q"
,
tc
.
expected
,
bar
)
...
...
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