Remove port 9000 for play.min.io (#2817)

Most corporate environments block port 9000,
since we already allow access from port 80 and
port 443 just default to https port instead.
This commit is contained in:
Harshavardhana
2019-07-10 21:16:45 +01:00
committed by kannappanr
parent df9320134b
commit aa3c9f58df
13 changed files with 58 additions and 60 deletions
+2 -2
View File
@@ -210,7 +210,7 @@ func (c *configV7) loadDefaults() {
// MinIO anonymous server for demo.
c.setHost("play", hostConfigV7{
URL: "https://play.min.io:9000",
URL: "https://play.min.io",
AccessKey: "",
SecretKey: "",
API: "S3v4",
@@ -297,7 +297,7 @@ func (c *configV8) loadDefaults() {
// MinIO anonymous server for demo.
c.setHost("play", hostConfigV8{
URL: "https://play.min.io:9000",
URL: "https://play.min.io",
AccessKey: "Q3AM3UQ867SPQQA43P2F",
SecretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",
API: "S3v4",
+1 -1
View File
@@ -96,7 +96,7 @@ func (c *configV9) loadDefaults() {
// MinIO anonymous server for demo.
c.setHost("play", hostConfigV9{
URL: "https://play.min.io:9000",
URL: "https://play.min.io",
AccessKey: "Q3AM3UQ867SPQQA43P2F",
SecretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",
API: "S3v4",
-2
View File
@@ -17,7 +17,6 @@
package cmd
import (
"fmt"
"strings"
"testing"
)
@@ -122,7 +121,6 @@ func TestParseSerializationOpts(t *testing.T) {
for i, test := range testParseSerializationCases {
optsMap, err := parseSerializationOpts(test.inp, test.validKeys, test.validAbbrKeys)
gerr := err.ToGoError()
fmt.Println(i+1, optsMap, gerr)
if gerr != nil && gerr.Error() != test.errMsg {
// match partial error message
if !strings.Contains(gerr.Error(), test.errMsg) {
+3 -3
View File
@@ -30,13 +30,13 @@ func (s *TestSuite) TestParseStat(c *C) {
content clientContent
targetAlias string
}{
{clientContent{URL: *newClientURL("https://play.min.io:9000/abc"), Size: 0, Time: localTime, Type: os.ModeDir, ETag: "blahblah", Metadata: map[string]string{"cusom-key": "custom-value"}, EncryptionHeaders: map[string]string{}, Expires: time.Now()},
{clientContent{URL: *newClientURL("https://play.min.io/abc"), Size: 0, Time: localTime, Type: os.ModeDir, ETag: "blahblah", Metadata: map[string]string{"cusom-key": "custom-value"}, EncryptionHeaders: map[string]string{}, Expires: time.Now()},
"play"},
{clientContent{URL: *newClientURL("https://play.min.io:9000/testbucket"), Size: 500, Time: localTime, Type: os.ModeDir, ETag: "blahblah", Metadata: map[string]string{"cusom-key": "custom-value"}, EncryptionHeaders: map[string]string{}, Expires: time.Unix(0, 0).UTC()},
{clientContent{URL: *newClientURL("https://play.min.io/testbucket"), Size: 500, Time: localTime, Type: os.ModeDir, ETag: "blahblah", Metadata: map[string]string{"cusom-key": "custom-value"}, EncryptionHeaders: map[string]string{}, Expires: time.Unix(0, 0).UTC()},
"play"},
{clientContent{URL: *newClientURL("https://s3.amazonaws.com/yrdy"), Size: 0, Time: localTime, Type: 0644, ETag: "abcdefasaas", Metadata: map[string]string{}, EncryptionHeaders: map[string]string{}},
"s3"},
{clientContent{URL: *newClientURL("https://play.min.io:9000/yrdy"), Size: 10000, Time: localTime, Type: 0644, ETag: "blahblah", Metadata: map[string]string{"cusom-key": "custom-value"}, EncryptionHeaders: map[string]string{"X-Amz-Iv": "test", "X-Amz-Matdesc": "abcd"}},
{clientContent{URL: *newClientURL("https://play.min.io/yrdy"), Size: 10000, Time: localTime, Type: 0644, ETag: "blahblah", Metadata: map[string]string{"cusom-key": "custom-value"}, EncryptionHeaders: map[string]string{"X-Amz-Iv": "test", "X-Amz-Matdesc": "abcd"}},
"play"},
}
for _, testCase := range testCases {
+7 -7
View File
@@ -32,19 +32,19 @@ func TestParseURLEnv(t *testing.T) {
success bool
}{
{
envURL: "https://username:password@play.min.io:9000/",
expectedURL: "https://play.min.io:9000/",
envURL: "https://username:password@play.min.io/",
expectedURL: "https://play.min.io/",
expectedAccess: "username",
expectedSecret: "password",
success: true,
},
{
envURL: "https://play.min.io:9000/",
expectedURL: "https://play.min.io:9000/",
envURL: "https://play.min.io/",
expectedURL: "https://play.min.io/",
success: true,
},
{
envURL: "ftp://play.min.io:9000/",
envURL: "ftp://play.min.io/",
success: false,
},
{
@@ -52,11 +52,11 @@ func TestParseURLEnv(t *testing.T) {
success: false,
},
{
envURL: "https://play.min.io:9000/path",
envURL: "https://play.min.io/path",
success: false,
},
{
envURL: "https://play.min.io:9000/?path=value",
envURL: "https://play.min.io/?path=value",
success: false,
},
}