mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +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,
|
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{
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user