mirror of
https://github.com/pgsty/minio.git
synced 2026-08-05 07:02:04 +03:00
update: Change update notifier for new style banner. (#3289)
For binary releases and operating systems it would be All operating systems. ``` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Minio is 25 days 12 hours 30 minutes old ┃ ┃ Update: https://dl.minio.io/server/minio/release/linux-amd64/minio ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ``` On docker. ``` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Minio is 25 days 12 hours 32 minutes old ┃ ┃ Update: docker pull minio/minio ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ```
This commit is contained in:
@@ -47,9 +47,9 @@ func TestReleaseUpdateVersion(t *testing.T) {
|
||||
{
|
||||
updateURL: ts.URL,
|
||||
updateMsg: updateMessage{
|
||||
Download: ts.URL + "/" + runtime.GOOS + "-" + runtime.GOARCH + "/minio.exe",
|
||||
Version: "2016-10-06T00:08:32Z",
|
||||
Update: true,
|
||||
Download: ts.URL + "/" + runtime.GOOS + "-" + runtime.GOARCH + "/minio.exe",
|
||||
Update: true,
|
||||
NewerThan: 90487000000000,
|
||||
},
|
||||
errMsg: "",
|
||||
shouldPass: true,
|
||||
@@ -87,9 +87,8 @@ func TestReleaseUpdate(t *testing.T) {
|
||||
updateURL: ts.URL,
|
||||
updateMsg: updateMessage{
|
||||
Download: ts.URL + "/" + runtime.GOOS + "-" + runtime.GOARCH + "/minio.exe",
|
||||
Version: "DEVELOPMENT.GOGET",
|
||||
},
|
||||
errMsg: "Unable to parse version string as time.",
|
||||
errMsg: "Failed to retrieve update notice. Please try again later. Please report this issue at https://github.com/minio/minio/issues",
|
||||
shouldPass: false,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user