Fix flaky test case

ensure the user filter is set on the rule so notification triggers
only when expected.

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2025-09-21 18:28:25 +02:00
parent 5c3aa8278b
commit cdaefbf04a

View File

@@ -7397,6 +7397,9 @@ func TestEventRuleEmailField(t *testing.T) {
Trigger: dataprovider.EventTriggerProviderEvent, Trigger: dataprovider.EventTriggerProviderEvent,
Conditions: dataprovider.EventConditions{ Conditions: dataprovider.EventConditions{
ProviderEvents: []string{"add"}, ProviderEvents: []string{"add"},
Options: dataprovider.ConditionOptions{
ProviderObjects: []string{"user"},
},
}, },
Actions: []dataprovider.EventAction{ Actions: []dataprovider.EventAction{
{ {