Skip to content

Commit

Permalink
exercise Apply during acceptance tests
Browse files Browse the repository at this point in the history
This ensures various tfmigrate acceptance tests exercise `apply`, as well as `plan`.
  • Loading branch information
mdb committed Sep 4, 2023
1 parent dfec615 commit a4cc29d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tfmigrate/multi_state_mv_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,9 @@ resource "null_resource" "qux" {}
if err != nil {
t.Fatalf("failed to run migrator plan: %s", err)
}

err = m.Apply(ctx)
if err != nil {
t.Fatalf("failed to run migrator apply: %s", err)
}
}
5 changes: 5 additions & 0 deletions tfmigrate/multi_state_xmv_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ resource "null_resource" "qux" {}
if err != nil {
t.Fatalf("failed to run migrator plan: %s", err)
}

err = m.Apply(ctx)
if err != nil {
t.Fatalf("failed to run migrator plan: %s", err)
}
}
5 changes: 5 additions & 0 deletions tfmigrate/state_mv_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,9 @@ resource "null_resource" "baz" {}
if err != nil {
t.Fatalf("failed to run migrator plan: %s", err)
}

err = m.Apply(ctx)
if err != nil {
t.Fatalf("failed to run migrator apply: %s", err)
}
}
5 changes: 5 additions & 0 deletions tfmigrate/state_xmv_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@ resource "null_resource" "bar2" {}
if err != nil {
t.Fatalf("failed to run migrator plan: %s", err)
}

err = m.Apply(ctx)
if err != nil {
t.Fatalf("failed to run migrator apply: %s", err)
}
}

0 comments on commit a4cc29d

Please sign in to comment.