Add some unit tests

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2024-03-15 14:35:05 +00:00
parent d7ea80a657
commit ac29af6eff
6 changed files with 232 additions and 16 deletions

View file

@ -20,10 +20,6 @@ func (r *Runner) CreateEnterprise(ctx context.Context, param params.CreateEnterp
return enterprise, runnerErrors.ErrUnauthorized
}
if param.PoolBalancerType == "" {
param.PoolBalancerType = params.PoolBalancerTypeRoundRobin
}
err = param.Validate()
if err != nil {
return params.Enterprise{}, errors.Wrap(err, "validating params")