mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
Refactor config and split them in packages (#8351)
This change is related to larger config migration PR change, this is a first stage change to move our configs to `cmd/config/` - divided into its subsystems
This commit is contained in:
committed by
kannappanr
parent
74008446fe
commit
589e32a4ed
@@ -21,6 +21,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/minio/minio/pkg/color"
|
||||
)
|
||||
|
||||
// Tests update notifier string builder.
|
||||
@@ -68,8 +70,8 @@ func TestPrepareUpdateMessage(t *testing.T) {
|
||||
|
||||
for i, testCase := range testCases {
|
||||
output := prepareUpdateMessage(testCase.dlURL, testCase.older)
|
||||
line1 := fmt.Sprintf("%s %s", plainMsg, colorYellowBold(testCase.expectedSubStr))
|
||||
line2 := fmt.Sprintf("Update: %s", colorCyanBold(testCase.dlURL))
|
||||
line1 := fmt.Sprintf("%s %s", plainMsg, color.YellowBold(testCase.expectedSubStr))
|
||||
line2 := fmt.Sprintf("Update: %s", color.CyanBold(testCase.dlURL))
|
||||
// Uncomment below to see message appearance:
|
||||
// fmt.Println(output)
|
||||
switch {
|
||||
|
||||
Reference in New Issue
Block a user