terraform: cleanup and failing test for CBD

This commit is contained in:
Mitchell Hashimoto 2016-09-21 13:54:19 -07:00
parent 6e632ec2ba
commit 046faf247a
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 3 additions and 4 deletions

View File

@ -51,7 +51,6 @@ func (t *CBDEdgeTransformer) Transform(g *Graph) error {
// Find the destroy edge. There should only be one.
for _, e := range g.EdgesTo(v) {
log.Printf("WHAT: %#v", e)
// Not a destroy edge, ignore it
de, ok := e.(*DestroyEdge)
if !ok {

View File

@ -8,8 +8,8 @@ import (
func TestCBDEdgeTransformer(t *testing.T) {
g := Graph{Path: RootModulePath}
g.Add(&graphNodeCreatorTest{AddrString: "test.A"})
g.Add(&graphNodeCreatorTest{AddrString: "test.B"})
g.Add(&graphNodeDestroyerTest{AddrString: "test.A", CBD: true})
g.Add(&graphNodeDestroyerTest{AddrString: "test.B"})
{
tf := &DestroyEdgeTransformer{
@ -38,6 +38,6 @@ const testTransformCBDEdgeBasicStr = `
test.A
test.A (destroy)
test.A
test.B (destroy)
test.B (destroy)
test.B
test.B
`