Implemented tests for api_acl.go file

This commit is contained in:
Kelvin Clement Mwinuka
2024-05-27 15:50:25 +08:00
parent ef04bae730
commit 30b8b205a7
5 changed files with 560 additions and 433 deletions

View File

@@ -15,6 +15,13 @@ func createEchoVault() *EchoVault {
return ev
}
func createEchoVaultWithConfig(conf config.Config) *EchoVault {
ev, _ := NewEchoVault(
WithConfig(conf),
)
return ev
}
func presetValue(server *EchoVault, ctx context.Context, key string, value interface{}) error {
if err := server.setValues(ctx, map[string]interface{}{key: value}); err != nil {
return err