aws: test timeout when no credenrtials are set

pull/7215/head
Adrien Delorme 7 years ago
parent 993af36f2e
commit b8b3e64cff

@ -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…
Cancel
Save