mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	Run a more strict formatter over the code (#11312)
* Update tooling * Run gofumpt * go mod vendor
This commit is contained in:
		| @@ -263,7 +263,6 @@ func (p *PostgreSQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) ( | ||||
| 	tx, err := db.BeginTx(ctx, nil) | ||||
| 	if err != nil { | ||||
| 		return dbplugin.NewUserResponse{}, fmt.Errorf("unable to start transaction: %w", err) | ||||
|  | ||||
| 	} | ||||
| 	defer tx.Rollback() | ||||
|  | ||||
|   | ||||
| @@ -92,7 +92,8 @@ func TestPostgreSQL_NewUser(t *testing.T) { | ||||
| 					RoleName:    "test", | ||||
| 				}, | ||||
| 				Statements: dbplugin.Statements{ | ||||
| 					Commands: []string{` | ||||
| 					Commands: []string{ | ||||
| 						` | ||||
| 						CREATE ROLE "{{name}}" WITH | ||||
| 						  LOGIN | ||||
| 						  PASSWORD '{{password}}' | ||||
| @@ -116,7 +117,8 @@ func TestPostgreSQL_NewUser(t *testing.T) { | ||||
| 					RoleName:    "test", | ||||
| 				}, | ||||
| 				Statements: dbplugin.Statements{ | ||||
| 					Commands: []string{` | ||||
| 					Commands: []string{ | ||||
| 						` | ||||
| 						CREATE ROLE "{{username}}" WITH | ||||
| 						  LOGIN | ||||
| 						  PASSWORD '{{password}}' | ||||
| @@ -140,7 +142,8 @@ func TestPostgreSQL_NewUser(t *testing.T) { | ||||
| 					RoleName:    "test", | ||||
| 				}, | ||||
| 				Statements: dbplugin.Statements{ | ||||
| 					Commands: []string{` | ||||
| 					Commands: []string{ | ||||
| 						` | ||||
| 						CREATE ROLE "{{name}}" WITH | ||||
| 						  LOGIN | ||||
| 						  PASSWORD '{{password}}' | ||||
| @@ -165,7 +168,8 @@ func TestPostgreSQL_NewUser(t *testing.T) { | ||||
| 					RoleName:    "test", | ||||
| 				}, | ||||
| 				Statements: dbplugin.Statements{ | ||||
| 					Commands: []string{` | ||||
| 					Commands: []string{ | ||||
| 						` | ||||
| 						CREATE ROLE "{{username}}" WITH | ||||
| 						  LOGIN | ||||
| 						  PASSWORD '{{password}}' | ||||
| @@ -936,7 +940,8 @@ func TestNewUser_CustomUsername(t *testing.T) { | ||||
| 			newUserReq := dbplugin.NewUserRequest{ | ||||
| 				UsernameConfig: test.newUserData, | ||||
| 				Statements: dbplugin.Statements{ | ||||
| 					Commands: []string{` | ||||
| 					Commands: []string{ | ||||
| 						` | ||||
| 						CREATE ROLE "{{name}}" WITH | ||||
| 						  LOGIN | ||||
| 						  PASSWORD '{{password}}' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Brian Kassouf
					Brian Kassouf