Add context-aware functions to vault/api (#14388)

This commit is contained in:
Anton Averchenkov
2022-03-23 17:47:43 -04:00
committed by GitHub
parent fea828993c
commit 8234a663e7
130 changed files with 2114 additions and 1463 deletions

View File

@@ -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 {