mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Add context-aware functions to vault/api (#14388)
This commit is contained in:
committed by
GitHub
parent
fea828993c
commit
8234a663e7
@@ -2,6 +2,7 @@ package command
|
||||
|
||||
import (
|
||||
"archive/tar"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
@@ -640,7 +641,7 @@ func TestDebugCommand_PartialPermissions(t *testing.T) {
|
||||
defer closer()
|
||||
|
||||
// Create a new token with default policy
|
||||
resp, err := client.Logical().Write("auth/token/create", map[string]interface{}{
|
||||
resp, err := client.Logical().WriteWithContext(context.Background(), "auth/token/create", map[string]interface{}{
|
||||
"policies": "default",
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user