Resolved linting issue
This commit is contained in:
@@ -798,7 +798,9 @@ func setupMockVaultServer(t *testing.T, kvVersion, keyID string, success bool) *
|
|||||||
"warnings": null,
|
"warnings": null,
|
||||||
"auth": null
|
"auth": null
|
||||||
}`, keyID)
|
}`, keyID)
|
||||||
w.Write([]byte(resp))
|
if _, err := w.Write([]byte(resp)); err != nil {
|
||||||
|
t.Fatalf("failed to write response: %v", err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
resp := fmt.Sprintf(`{
|
resp := fmt.Sprintf(`{
|
||||||
"request_id": "req-1234",
|
"request_id": "req-1234",
|
||||||
@@ -815,7 +817,9 @@ func setupMockVaultServer(t *testing.T, kvVersion, keyID string, success bool) *
|
|||||||
"warnings": null,
|
"warnings": null,
|
||||||
"auth": null
|
"auth": null
|
||||||
}`, keyID)
|
}`, keyID)
|
||||||
w.Write([]byte(resp))
|
if _, err := w.Write([]byte(resp)); err != nil {
|
||||||
|
t.Fatalf("failed to write response: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user