diff --git a/x-pack/filebeat/input/entityanalytics/provider/azuread/conf_test.go b/x-pack/filebeat/input/entityanalytics/provider/azuread/conf_test.go index bd020fd4b19..611d60f427d 100644 --- a/x-pack/filebeat/input/entityanalytics/provider/azuread/conf_test.go +++ b/x-pack/filebeat/input/entityanalytics/provider/azuread/conf_test.go @@ -27,6 +27,14 @@ func TestConf_Validate(t *testing.T) { }, WantErr: "sync_interval must be longer than update_interval", }, + "err-invalid-dataset": { + In: conf{ + SyncInterval: defaultSyncInterval, + UpdateInterval: defaultUpdateInterval, + Dataset: "everything", + }, + WantErr: "dataset must be 'all', 'users', 'devices' or empty", + }, } for name, tc := range tests {