Skip to content

WIP! feat: log resource replacements when claiming a prebuilt workspace #17571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
chore: appease linter
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
  • Loading branch information
dannykopping committed Apr 25, 2025
commit 148c1d73a6f0e2d31372a469f2dc9a5a76039cd5
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
)

func TestFindResourceReplacements(t *testing.T) {
t.Parallel()

cases := []struct {
name string
plan *tfjson.Plan
Expand All @@ -17,8 +19,8 @@ func TestFindResourceReplacements(t *testing.T) {
name: "nil plan",
},
{
name: "no resource changes",
plan: &tfjson.Plan{},
name: "no resource changes",
plan: &tfjson.Plan{},
},
{
name: "resource change with nil change",
Expand Down Expand Up @@ -166,6 +168,8 @@ func TestFindResourceReplacements(t *testing.T) {

for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

require.EqualValues(t, tc.expected, findResourceReplacements(tc.plan))
})
}
Expand Down
Loading