Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Elasticsearch queries #69

Open
Lorygold opened this issue Sep 28, 2023 · 0 comments
Open

Test Elasticsearch queries #69

Lorygold opened this issue Sep 28, 2023 · 0 comments
Labels
backend Generic backend operations (ie: tasks, queries, etc) effort:medium Supposed medium effort feature Something new to be added

Comments

@Lorygold
Copy link
Collaborator

Lorygold commented Sep 28, 2023

Add the tests for the Elasticsearch queries, so for the tasks.exec_process_logs and tasks.process_user functions.

Test also with some logs where the user.name and/or the source.ip fields don't exist (the .query("exists", field="[...]") filter should exclude them.

REMEMBER: After the tests you have to tearDown the Elastic data with:

def tearDown(self):
        ElasticQuery.objects.all().delete()
@Lorygold Lorygold added backend Generic backend operations (ie: tasks, queries, etc) effort:medium Supposed medium effort feature Something new to be added labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Generic backend operations (ie: tasks, queries, etc) effort:medium Supposed medium effort feature Something new to be added
Projects
None yet
Development

No branches or pull requests

1 participant