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

FIM System tests. 0210: Scheduled scan #553

Closed
7 tasks done
DFolchA opened this issue Feb 27, 2020 · 2 comments
Closed
7 tasks done

FIM System tests. 0210: Scheduled scan #553

DFolchA opened this issue Feb 27, 2020 · 2 comments
Assignees

Comments

@DFolchA
Copy link
Contributor

DFolchA commented Feb 27, 2020

Hello team,

This issue is related to #493 . It will contain the advances related to the creation of scenario 210.

Objectives

Implement scenario 210.

Tasks

  • Create ossec.conf
  • Create launch_scenario.yml
    • Wait for the scan.
    • Check that the scan was executed at the right time.
    • Create/Delete/modify the necessary files.
    • Check alerts in alerts.json.
    • Check alerts in Elasticsearch.

Regards,
Daniel Folch

@DFolchA
Copy link
Contributor Author

DFolchA commented Mar 2, 2020

Hello team,

I have created a python script that checks how much time has passed between scans and waits for the ongoing scans to finish.

I have also created new handlers to clean the osec.log file for convenience and created the launch_environment.yml playbook that:

  • Prepares the environment (common task)
  • Sets the scenario variables, eg frequency.
  • Restarts Wazuh and cleans the ossec.log of the agents (handlers).
  • Creates/modifies/deletes files (common tasks).
  • Checks if the scans are producing at the right time (check_scheduled_scan.py).
  • Waits for the ongoing scan to end (check_scheduled_scan.py).
  • Checks if the alerts are correct (common tasks)

Working branch:
https://github.com/wazuh/wazuh-qa/tree/feature-553-scenario-210

Remaining tasks:

  • Add logging to python script

Regards,
Daniel Folch

@alberpilot alberpilot added this to the Sprint 107 - CICD milestone Mar 3, 2020
@DFolchA
Copy link
Contributor Author

DFolchA commented Mar 3, 2020

Hello team,

I have added logging and error handling to the python script.

Regards,
Daniel Folch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants