mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
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:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user