Skip to content

Commit

Permalink
Test external removal of the procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-asawicki committed Dec 19, 2024
1 parent a16de3f commit 394ef58
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/resources/procedure_java_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@ func TestAcc_ProcedureJava_InlineBasic(t *testing.T) {
assert.Check(resource.TestCheckResourceAttr(procedureModel.ResourceReference(), "arguments.0.arg_default_value", "")),
),
},
// REMOVE EXTERNALLY (CHECK RECREATION)
{
PreConfig: func() {
acc.TestClient().Procedure.DropProcedureFunc(t, id)()
},
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectResourceAction(procedureModel.ResourceReference(), plancheck.ResourceActionCreate),
},
},
Config: config.FromModels(t, procedureModel),
Check: assert.AssertThat(t,
resourceassert.ProcedureJavaResource(t, procedureModel.ResourceReference()).
HasNameString(id.Name()),
),
},
// IMPORT
{
ResourceName: procedureModel.ResourceReference(),
Expand Down

0 comments on commit 394ef58

Please sign in to comment.