udpate test graph outputs

Some of the test graph outputs have changes now that implicit providers
are no longer added in the config.
This commit is contained in:
James Bardin 2017-11-02 15:25:18 -04:00
parent 838ffafc18
commit 05ef30be2c
3 changed files with 12 additions and 24 deletions

View File

@ -497,16 +497,13 @@ meta.count-boundary (count boundary fixup)
aws_instance.other aws_instance.other
module.child.aws_instance.create module.child.aws_instance.create
module.child.aws_instance.other module.child.aws_instance.other
module.child.provider.aws
module.child.provisioner.exec module.child.provisioner.exec
provider.aws provider.aws
module.child.aws_instance.create module.child.aws_instance.create
module.child.provider.aws
module.child.provisioner.exec module.child.provisioner.exec
provider.aws
module.child.aws_instance.other module.child.aws_instance.other
module.child.aws_instance.create module.child.aws_instance.create
module.child.provider.aws
module.child.provider.aws
provider.aws provider.aws
module.child.provisioner.exec module.child.provisioner.exec
provider.aws provider.aws
@ -515,7 +512,6 @@ provider.aws (close)
aws_instance.other aws_instance.other
module.child.aws_instance.create module.child.aws_instance.create
module.child.aws_instance.other module.child.aws_instance.other
module.child.provider.aws
provider.aws provider.aws
provisioner.exec (close) provisioner.exec (close)
module.child.aws_instance.create module.child.aws_instance.create

View File

@ -73,8 +73,7 @@ func TestModuleTreeDependencies(t *testing.T) {
Providers: moduledeps.Providers{ Providers: moduledeps.Providers{
"foo": moduledeps.ProviderDependency{ "foo": moduledeps.ProviderDependency{
Constraints: discovery.AllVersions, Constraints: discovery.AllVersions,
//Reason: moduledeps.ProviderDependencyImplicit, Reason: moduledeps.ProviderDependencyImplicit,
Reason: moduledeps.ProviderDependencyExplicit,
}, },
"foo.baz": moduledeps.ProviderDependency{ "foo.baz": moduledeps.ProviderDependency{
Constraints: discovery.AllVersions, Constraints: discovery.AllVersions,
@ -119,28 +118,25 @@ func TestModuleTreeDependencies(t *testing.T) {
Providers: moduledeps.Providers{ Providers: moduledeps.Providers{
"foo": moduledeps.ProviderDependency{ "foo": moduledeps.ProviderDependency{
Constraints: discovery.AllVersions, Constraints: discovery.AllVersions,
//Reason: moduledeps.ProviderDependencyInherited, Reason: moduledeps.ProviderDependencyInherited,
Reason: moduledeps.ProviderDependencyExplicit,
}, },
"baz": moduledeps.ProviderDependency{ "baz": moduledeps.ProviderDependency{
Constraints: discovery.AllVersions, Constraints: discovery.AllVersions,
//Reason: moduledeps.ProviderDependencyImplicit, Reason: moduledeps.ProviderDependencyImplicit,
Reason: moduledeps.ProviderDependencyExplicit,
}, },
}, },
Children: []*moduledeps.Module{ Children: []*moduledeps.Module{
{ {
Name: "grandchild", Name: "grandchild",
Providers: moduledeps.Providers{ Providers: moduledeps.Providers{
"bar": moduledeps.ProviderDependency{
Constraints: discovery.AllVersions,
Reason: moduledeps.ProviderDependencyInherited,
},
"foo": moduledeps.ProviderDependency{ "foo": moduledeps.ProviderDependency{
Constraints: discovery.AllVersions, Constraints: discovery.AllVersions,
Reason: moduledeps.ProviderDependencyExplicit, Reason: moduledeps.ProviderDependencyExplicit,
}, },
"bar": moduledeps.ProviderDependency{
Constraints: discovery.AllVersions,
//Reason: moduledeps.ProviderDependencyInherited,
Reason: moduledeps.ProviderDependencyExplicit,
},
}, },
}, },
}, },

View File

@ -477,16 +477,12 @@ provider.foo (close)
const testTransformMissingGrandchildProviderStr = ` const testTransformMissingGrandchildProviderStr = `
module.sub.module.subsub.bar_instance.two module.sub.module.subsub.bar_instance.two
module.sub.module.subsub.provider.bar provider.bar
module.sub.module.subsub.foo_instance.one module.sub.module.subsub.foo_instance.one
module.sub.module.subsub.provider.foo module.sub.provider.foo
module.sub.module.subsub.provider.bar module.sub.provider.foo
provider.bar (disabled)
module.sub.module.subsub.provider.foo
provider.foo (disabled) provider.foo (disabled)
module.sub.provider.foo (disabled) provider.bar
provider.foo (disabled)
provider.bar (disabled)
provider.foo (disabled) provider.foo (disabled)
` `