Skip to content

Commit 8f1ee5b

Browse files
Fix: Update field trigger unit test to validate on state type. (#3982)
## Summary Field triggers apply to the state type, since they are applied after `PrepareState`. They do not apply on the input config schema. This was not a problem until now because both state and config were the same. That's not the case, however, for secret scopes. Created a separate PR because of the prompt in: #3886 (comment) --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent c938e46 commit 8f1ee5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundle/direct/dresources/all_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,10 @@ func TestFieldTriggers(t *testing.T) {
568568
require.NoError(t, err)
569569

570570
t.Run(resourceName+"_local", func(t *testing.T) {
571-
validateFields(t, adapter.InputConfigType(), adapter.fieldTriggersLocal)
571+
validateFields(t, adapter.StateType(), adapter.fieldTriggersLocal)
572572
})
573573
t.Run(resourceName+"_remote", func(t *testing.T) {
574-
validateFields(t, adapter.InputConfigType(), adapter.fieldTriggersRemote)
574+
validateFields(t, adapter.StateType(), adapter.fieldTriggersRemote)
575575
})
576576
}
577577
}

0 commit comments

Comments
 (0)