server: Integrate version validation logic into tests

This commit is contained in:
Marek Siarkowicz
2021-10-05 17:21:20 +02:00
parent 620832a4a5
commit f92b4f9a28
5 changed files with 27 additions and 22 deletions

View File

@ -44,7 +44,7 @@ func (m *Manager) DowngradeValidate(ctx context.Context, targetVersion *semver.V
return err
}
cv := m.s.GetClusterVersion()
allowedTargetVersion := AllowedDowngradeVersion(cv)
allowedTargetVersion := allowedDowngradeVersion(cv)
if !targetVersion.Equal(*allowedTargetVersion) {
return ErrInvalidDowngradeTargetVersion
}