Skip to content

Commit 9dc81ce

Browse files
committed
removed unnecessary test
1 parent cc79894 commit 9dc81ce

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

bundle/deploy/terraform/tfdyn/convert_app_test.go

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -189,36 +189,3 @@ func TestConvertAppWithLifecycle(t *testing.T) {
189189
},
190190
}, out.App["my_app"])
191191
}
192-
193-
func TestConvertAppWithLifecycleFalse(t *testing.T) {
194-
src := resources.App{
195-
SourceCodePath: "./app",
196-
Config: map[string]any{
197-
"command": []string{"python", "app.py"},
198-
},
199-
App: apps.App{
200-
Name: "app_id",
201-
},
202-
Lifecycle: resources.Lifecycle{
203-
PreventDestroy: false,
204-
},
205-
}
206-
207-
vin, err := convert.FromTyped(src, dyn.NilValue)
208-
require.NoError(t, err)
209-
210-
ctx := context.Background()
211-
out := schema.NewResources()
212-
err = appConverter{}.Convert(ctx, "my_app", vin, out)
213-
require.NoError(t, err)
214-
215-
// Assert equality on the app
216-
assert.Equal(t, map[string]any{
217-
"name": "app_id",
218-
"description": "",
219-
"no_compute": true,
220-
"lifecycle": map[string]any{
221-
"prevent_destroy": false,
222-
},
223-
}, out.App["my_app"])
224-
}

0 commit comments

Comments
 (0)