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:
		| @@ -487,7 +487,8 @@ func TestMySQL_RotateRootCredentials(t *testing.T) { | ||||
| 			statements: []string{defaultMySQLRotateCredentialsSQL}, | ||||
| 		}, | ||||
| 		"default name": { | ||||
| 			statements: []string{` | ||||
| 			statements: []string{ | ||||
| 				` | ||||
| 				ALTER USER '{{username}}'@'%' IDENTIFIED BY '{{password}}';`, | ||||
| 			}, | ||||
| 		}, | ||||
| @@ -569,7 +570,8 @@ func TestMySQL_DeleteUser(t *testing.T) { | ||||
| 			revokeStmts: []string{defaultMysqlRevocationStmts}, | ||||
| 		}, | ||||
| 		"default username": { | ||||
| 			revokeStmts: []string{` | ||||
| 			revokeStmts: []string{ | ||||
| 				` | ||||
| 				REVOKE ALL PRIVILEGES, GRANT OPTION FROM '{{username}}'@'%';  | ||||
| 				DROP USER '{{username}}'@'%'`, | ||||
| 			}, | ||||
| @@ -609,7 +611,8 @@ func TestMySQL_DeleteUser(t *testing.T) { | ||||
| 					RoleName:    "test", | ||||
| 				}, | ||||
| 				Statements: dbplugin.Statements{ | ||||
| 					Commands: []string{` | ||||
| 					Commands: []string{ | ||||
| 						` | ||||
| 						CREATE USER '{{name}}'@'%' IDENTIFIED BY '{{password}}'; | ||||
| 						GRANT SELECT ON *.* TO '{{name}}'@'%';`, | ||||
| 					}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Brian Kassouf
					Brian Kassouf