mirror of
https://github.com/minio/minio.git
synced 2025-04-01 10:13:42 -04:00
Mint: Strip the default port from SERVER_ENDPOINT in aws-sdk-go tests (#11897)
Having the default port in there makes the test using a presigned request fail. Co-authored-by: Robert Lützner <robert.luetzner@iternity.com> Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
parent
9ffb5d5b0a
commit
57ae6edeac
@ -1069,6 +1069,12 @@ func main() {
|
|||||||
accessKey := os.Getenv("ACCESS_KEY")
|
accessKey := os.Getenv("ACCESS_KEY")
|
||||||
secretKey := os.Getenv("SECRET_KEY")
|
secretKey := os.Getenv("SECRET_KEY")
|
||||||
secure := os.Getenv("ENABLE_HTTPS")
|
secure := os.Getenv("ENABLE_HTTPS")
|
||||||
|
if strings.HasSuffix(endpoint, ":443") {
|
||||||
|
endpoint = strings.ReplaceAll(endpoint, ":443", "")
|
||||||
|
}
|
||||||
|
if strings.HasSuffix(endpoint, ":80") {
|
||||||
|
endpoint = strings.ReplaceAll(endpoint, ":80", "")
|
||||||
|
}
|
||||||
sdkEndpoint := "http://" + endpoint
|
sdkEndpoint := "http://" + endpoint
|
||||||
if secure == "1" {
|
if secure == "1" {
|
||||||
sdkEndpoint = "https://" + endpoint
|
sdkEndpoint = "https://" + endpoint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user