config: happy case test for multiple providers

This commit is contained in:
Mitchell Hashimoto 2015-04-20 14:27:44 -07:00
parent a599d5f224
commit 8ee18e2e14
2 changed files with 14 additions and 0 deletions

View File

@ -210,6 +210,13 @@ func TestConfigValidate_providerMulti(t *testing.T) {
} }
} }
func TestConfigValidate_providerMultiGood(t *testing.T) {
c := testConfig(t, "validate-provider-multi-good")
if err := c.Validate(); err != nil {
t.Fatalf("should be valid: %s", err)
}
}
func TestConfigValidate_provConnSplatOther(t *testing.T) { func TestConfigValidate_provConnSplatOther(t *testing.T) {
c := testConfig(t, "validate-prov-conn-splat-other") c := testConfig(t, "validate-prov-conn-splat-other")
if err := c.Validate(); err != nil { if err := c.Validate(); err != nil {

View File

@ -0,0 +1,7 @@
provider "aws" {
alias = "bar"
}
provider "aws" {
alias = "foo"
}