mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 06:10:54 +03:00
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:
@@ -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{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user