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
commit cdaefbf04a
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

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