mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-04 14:25:35 -04:00
fix failing region test
This commit is contained in:
parent
94cefffe08
commit
d5f333005a
1 changed files with 6 additions and 0 deletions
|
|
@ -110,6 +110,12 @@ func TestGetOrDefaultRegion_ConfigFileUnfound(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestGetOrDefaultRegion_EC2InstanceMetadataPreferredFourth(t *testing.T) {
|
||||
if !shouldTestFiles {
|
||||
// In some test environments, like a CI environment, we may not have the
|
||||
// permissions to write to the ~/.aws/config file. Thus, this test is off
|
||||
// by default but can be set to on for local development.
|
||||
t.SkipNow()
|
||||
}
|
||||
configuredRegion := ""
|
||||
|
||||
cleanupEnv := setEnvRegion(t, "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue