aws: test timeout when no credenrtials are set
This commit is contained in:
parent
4f1ed08f19
commit
5cfc1a52cd
|
@ -68,3 +68,14 @@ func TestAccessConfigPrepare_RegionRestricted(t *testing.T) {
|
|||
t.Fatal("We should be in gov region.")
|
||||
}
|
||||
}
|
||||
|
||||
func TestAccessConfig_NoCredentialsFailsQuickly(t *testing.T) {
|
||||
c := &AccessConfig{
|
||||
RawRegion: "not-empty",
|
||||
}
|
||||
_, err := c.Session()
|
||||
if err == nil {
|
||||
t.Errorf("AccessConfig.Session() error is nil")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue