mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01: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:
parent
5c3aa8278b
commit
cdaefbf04a
1 changed files with 3 additions and 0 deletions
|
|
@ -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{
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue