mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	Use WeakDecode to decode the initialize values (#2871)
This commit is contained in:
		| @@ -84,6 +84,17 @@ func TestMySQL_Initialize(t *testing.T) { | ||||
| 	if err != nil { | ||||
| 		t.Fatalf("err: %s", err) | ||||
| 	} | ||||
|  | ||||
| 	// Test decoding a string value for max_open_connections | ||||
| 	connectionDetails = map[string]interface{}{ | ||||
| 		"connection_url":       connURL, | ||||
| 		"max_open_connections": "5", | ||||
| 	} | ||||
|  | ||||
| 	err = db.Initialize(connectionDetails, true) | ||||
| 	if err != nil { | ||||
| 		t.Fatalf("err: %s", err) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func TestMySQL_CreateUser(t *testing.T) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Brian Kassouf
					Brian Kassouf