support 'admin update' for hotfix versions (#15308)

hotfixed versions are rejected as invalid,
allow `mc admin update` from hotfix repos.
This commit is contained in:
Harshavardhana
2022-07-15 16:00:34 -07:00
committed by GitHub
parent 1cd6713e24
commit 5ac6d91525
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -72,6 +72,14 @@ func TestReleaseTagToNFromTimeConversion(t *testing.T) {
time.Now().UTC(), "DEVELOPMENT.GOGET",
"DEVELOPMENT.GOGET is not a valid release tag",
},
{
time.Date(2017, time.August, 5, 0, 0, 53, 0, utcLoc),
"RELEASE.2017-08-05T00-00-53Z.hotfix", "",
},
{
time.Date(2017, time.August, 5, 0, 0, 53, 0, utcLoc),
"RELEASE.2017-08-05T00-00-53Z.hotfix.aaaa", "",
},
}
for i, testCase := range testCases {
if testCase.errStr != "" {