Skip to content

Commit

Permalink
add missing err check to vault read test
Browse files Browse the repository at this point in the history
  • Loading branch information
thevilledev authored and eikenb committed Dec 5, 2022
1 parent 378ee4b commit f8888b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dependency/vault_read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ func TestVaultReadQuery_Fetch_NonSecrets(t *testing.T) {
map[string]interface{}{
"policy": `path "auth/approle/role/my-approle/role-id" { capabilities = ["read"] }`,
})
if err != nil {
t.Fatal(err)
}
secret, err := vc.Auth().Token().Create(&api.TokenCreateRequest{
Policies: []string{"operator"},
})
Expand Down

0 comments on commit f8888b0

Please sign in to comment.