mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Run a more strict formatter over the code (#11312)
* Update tooling * Run gofumpt * go mod vendor
This commit is contained in:
@@ -247,7 +247,7 @@ func testLoadConfigFile_json2(t *testing.T, entropy *configutil.Entropy) {
|
||||
}
|
||||
|
||||
func testParseEntropy(t *testing.T, oss bool) {
|
||||
var tests = []struct {
|
||||
tests := []struct {
|
||||
inConfig string
|
||||
outErr error
|
||||
outEntropy configutil.Entropy
|
||||
@@ -627,7 +627,8 @@ func testConfig_Sanitized(t *testing.T) {
|
||||
"cluster_addr": "top_level_cluster_addr",
|
||||
"disable_clustering": true,
|
||||
"redirect_addr": "top_level_api_addr",
|
||||
"type": "consul"},
|
||||
"type": "consul",
|
||||
},
|
||||
"listeners": []interface{}{
|
||||
map[string]interface{}{
|
||||
"config": map[string]interface{}{
|
||||
@@ -771,7 +772,7 @@ func testParseSeals(t *testing.T) {
|
||||
},
|
||||
},
|
||||
Seals: []*configutil.KMS{
|
||||
&configutil.KMS{
|
||||
{
|
||||
Type: "pkcs11",
|
||||
Purpose: []string{"many", "purposes"},
|
||||
Config: map[string]string{
|
||||
@@ -786,7 +787,7 @@ func testParseSeals(t *testing.T) {
|
||||
"generate_key": "true",
|
||||
},
|
||||
},
|
||||
&configutil.KMS{
|
||||
{
|
||||
Type: "pkcs11",
|
||||
Purpose: []string{"single"},
|
||||
Disabled: true,
|
||||
|
||||
Reference in New Issue
Block a user