|
|
|
|
@ -96,10 +96,6 @@ func TestPlan_plan(t *testing.T) {
|
|
|
|
|
if code := c.Run(args); code != 1 {
|
|
|
|
|
t.Fatalf("wrong exit status %d; want 1\nstderr: %s", code, ui.ErrorWriter.String())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if p.ReadResourceCalled {
|
|
|
|
|
t.Fatal("ReadResource should not have been called")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func TestPlan_destroy(t *testing.T) {
|
|
|
|
|
@ -142,10 +138,6 @@ func TestPlan_destroy(t *testing.T) {
|
|
|
|
|
t.Fatalf("bad: %d\n\n%s", code, ui.ErrorWriter.String())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if !p.ReadResourceCalled {
|
|
|
|
|
t.Fatal("ReadResource should have been called")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
plan := testReadPlan(t, outPath)
|
|
|
|
|
for _, rc := range plan.Changes.Resources {
|
|
|
|
|
if got, want := rc.Action, plans.Delete; got != want {
|
|
|
|
|
|