Skip to content

Commit

Permalink
Ratul Basak [email protected] updated actions_test and updated c…
Browse files Browse the repository at this point in the history
…li_test

Signed-off-by: ratulbasak <[email protected]>
  • Loading branch information
ratulbasak committed Oct 20, 2024
1 parent 790e2eb commit 2fae205
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util/lua/custom_actions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,16 @@ func TestLuaResourceActionsScript(t *testing.T) {
}
}

// Log the parameters
t.Logf("Parameters: %+v", params)

require.NoError(t, err)
impactedResources, err := vm.ExecuteResourceAction(sourceObj, action.ActionLua, params)
require.NoError(t, err)

// Log the impacted resources
t.Logf("Impacted resources: %+v", impactedResources)

// Treat the Lua expected output as a list
expectedObjects := getExpectedObjectList(t, filepath.Join(dir, test.ExpectedOutputPath))

Expand Down

0 comments on commit 2fae205

Please sign in to comment.