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:
parent
76fca28faa
commit
4dd4b721ac
|
@ -2809,7 +2809,7 @@ func TestContext2Apply_moduleOrphanInheritAlias(t *testing.T) {
|
|||
Primary: &InstanceState{
|
||||
ID: "bar",
|
||||
},
|
||||
Provider: "aws.eu",
|
||||
Provider: "provider.aws.eu",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -2839,7 +2839,7 @@ func TestContext2Apply_moduleOrphanInheritAlias(t *testing.T) {
|
|||
t.Fatal("must call configure")
|
||||
}
|
||||
|
||||
checkStateString(t, state, "")
|
||||
checkStateString(t, state, "<no state>")
|
||||
}
|
||||
|
||||
func TestContext2Apply_moduleOrphanProvider(t *testing.T) {
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
provider "aws" {
|
||||
root = 1
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
child = "eu"
|
||||
alias = "eu"
|
||||
alias = "eu"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue