mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+12
@@ -0,0 +1,12 @@
|
||||
package shareddefaults
|
||||
|
||||
const (
|
||||
// ECSCredsProviderEnvVar is an environmental variable key used to
|
||||
// determine which path needs to be hit.
|
||||
ECSCredsProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"
|
||||
)
|
||||
|
||||
// ECSContainerCredentialsURI is the endpoint to retrieve container
|
||||
// credentials. This can be overridden to test to ensure the credential process
|
||||
// is behaving correctly.
|
||||
var ECSContainerCredentialsURI = "http://169.254.170.2"
|
||||
Generated
Vendored
+7
-5
@@ -1,3 +1,5 @@
|
||||
// +build !windows
|
||||
|
||||
package shareddefaults_test
|
||||
|
||||
import (
|
||||
@@ -5,13 +7,13 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/aws/aws-sdk-go/awstesting"
|
||||
"github.com/aws/aws-sdk-go/internal/sdktesting"
|
||||
"github.com/aws/aws-sdk-go/internal/shareddefaults"
|
||||
)
|
||||
|
||||
func TestSharedCredsFilename(t *testing.T) {
|
||||
env := awstesting.StashEnv()
|
||||
defer awstesting.PopEnv(env)
|
||||
restoreEnvFn := sdktesting.StashEnv()
|
||||
defer restoreEnvFn()
|
||||
|
||||
os.Setenv("HOME", "home_dir")
|
||||
os.Setenv("USERPROFILE", "profile_dir")
|
||||
@@ -25,8 +27,8 @@ func TestSharedCredsFilename(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSharedConfigFilename(t *testing.T) {
|
||||
env := awstesting.StashEnv()
|
||||
defer awstesting.PopEnv(env)
|
||||
restoreEnvFn := sdktesting.StashEnv()
|
||||
defer restoreEnvFn()
|
||||
|
||||
os.Setenv("HOME", "home_dir")
|
||||
os.Setenv("USERPROFILE", "profile_dir")
|
||||
|
||||
Generated
Vendored
+7
-5
@@ -1,3 +1,5 @@
|
||||
// +build windows
|
||||
|
||||
package shareddefaults_test
|
||||
|
||||
import (
|
||||
@@ -5,13 +7,13 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/aws/aws-sdk-go/awstesting"
|
||||
"github.com/aws/aws-sdk-go/internal/sdktesting"
|
||||
"github.com/aws/aws-sdk-go/internal/shareddefaults"
|
||||
)
|
||||
|
||||
func TestSharedCredsFilename(t *testing.T) {
|
||||
env := awstesting.StashEnv()
|
||||
defer awstesting.PopEnv(env)
|
||||
restoreEnvFn := sdktesting.StashEnv()
|
||||
defer restoreEnvFn()
|
||||
|
||||
os.Setenv("HOME", "home_dir")
|
||||
os.Setenv("USERPROFILE", "profile_dir")
|
||||
@@ -25,8 +27,8 @@ func TestSharedCredsFilename(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSharedConfigFilename(t *testing.T) {
|
||||
env := awstesting.StashEnv()
|
||||
defer awstesting.PopEnv(env)
|
||||
restoreEnvFn := sdktesting.StashEnv()
|
||||
defer restoreEnvFn()
|
||||
|
||||
os.Setenv("HOME", "home_dir")
|
||||
os.Setenv("USERPROFILE", "profile_dir")
|
||||
|
||||
Reference in New Issue
Block a user