Run a more strict formatter over the code (#11312)

* Update tooling

* Run gofumpt

* go mod vendor
This commit is contained in:
Brian Kassouf
2021-04-08 09:43:39 -07:00
committed by GitHub
parent 60f3ba99a4
commit a24653cc5c
658 changed files with 10961 additions and 3671 deletions

View File

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