Add some unit tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
d7ea80a657
commit
ac29af6eff
6 changed files with 232 additions and 16 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue