core: Fix TestContext2Apply_moduleOrphanInheritAlias

The old-fashioned formatting of "Provider" on the shimmed state here was
causing the state upgrade code to treat it like a module-relative address,
rather than an absolute address as we now expect.
This commit is contained in:
Martin Atkins 2018-09-27 15:58:38 -07:00
parent 76fca28faa
commit 4dd4b721ac
2 changed files with 3 additions and 5 deletions

View File

@ -2809,7 +2809,7 @@ func TestContext2Apply_moduleOrphanInheritAlias(t *testing.T) {
Primary: &InstanceState{ Primary: &InstanceState{
ID: "bar", ID: "bar",
}, },
Provider: "aws.eu", Provider: "provider.aws.eu",
}, },
}, },
}, },
@ -2839,7 +2839,7 @@ func TestContext2Apply_moduleOrphanInheritAlias(t *testing.T) {
t.Fatal("must call configure") t.Fatal("must call configure")
} }
checkStateString(t, state, "") checkStateString(t, state, "<no state>")
} }
func TestContext2Apply_moduleOrphanProvider(t *testing.T) { func TestContext2Apply_moduleOrphanProvider(t *testing.T) {

View File

@ -1,8 +1,6 @@
provider "aws" { provider "aws" {
root = 1
} }
provider "aws" { provider "aws" {
child = "eu" alias = "eu"
alias = "eu"
} }