-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from ait-aecid/development
Development
- Loading branch information
Showing
215 changed files
with
21,653 additions
and
9,210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version = 1 | ||
|
||
[[analyzers]] | ||
name = "python" | ||
enabled = true | ||
|
||
[analyzers.meta] | ||
runtime_version = "3.x.x" | ||
max_line_length = 140 | ||
|
||
[[analyzers]] | ||
name = "test-coverage" | ||
enabled = true | ||
|
||
exclude_patterns = [ | ||
"aecid-testsuite/system/performance-tests/results/*/*/*.py" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.pyc | ||
# ignore ansible-roles | ||
roles/ | ||
playbook.yml | ||
playbook.retry |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# aminer-ansible: https://github.com/ait-aecid/aminer-ansible.git | ||
- hosts: localhost | ||
vars: | ||
aminer_gitrepo: False | ||
# MODIFY THIS PATH | ||
aminer_repopath: "{{SOURCEDIR}}" | ||
roles: | ||
- aminer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
language: python | ||
python: | ||
- '3.7' | ||
dist: bionic | ||
|
||
before_install: | ||
- sudo apt-get update -y | ||
- sudo apt-get install -y exim4 procps cpulimit ansible mailutils python3-pip python3-kafka | ||
- git clone https://github.com/ait-aecid/aminer-ansible.git roles/aminer | ||
- cp $PWD/source/root/etc/aminer/conf-available/generic/ApacheAccessModel.py $PWD/source/root/etc/aminer/conf-enabled/ApacheAccessModel.py | ||
- ln -s $PWD/source/root/usr/lib/logdata-anomaly-miner/aminer $PWD/aecid-testsuite/aminer | ||
- ln -s $PWD/source/root/etc/aminer/template_config.py $PWD/aecid-testsuite/demo/AMiner/template_config.py | ||
- sed -e "s+{{SOURCEDIR}}+$PWD+g" .playbook.yml > playbook.yml | ||
|
||
install: | ||
- sudo -H -u root pip3 install coverage | ||
- sudo ansible-playbook playbook.yml | ||
- sudo ln -s /usr/lib/python3/dist-packages/kafka /etc/aminer/conf-enabled/kafka | ||
- cd aecid-testsuite | ||
- sudo chmod +x runUnittests.sh | ||
- sudo chmod +x runAMinerDemo.sh | ||
- sudo chmod +x runAMinerIntegrationTest.sh | ||
- sudo chmod +x runCoverageTests.sh | ||
|
||
script: | ||
- ./runUnittests.sh | ||
- ./runAMinerDemo.sh demo/AMiner/demo-config.py | ||
- ./runAMinerDemo.sh demo/AMiner/jsonConverterHandler-demo-config.py | ||
- ./runAMinerDemo.sh demo/AMiner/template_config.py | ||
- ./runAMinerIntegrationTest.sh aminerIntegrationTest.sh config.py | ||
- ./runAMinerIntegrationTest.sh aminerIntegrationTest2.sh config21.py config22.py | ||
- ./runCoverageTests.sh | ||
|
||
after_script: | ||
- cd .. | ||
- rm $PWD/aecid-testsuite/aminer | ||
- rm $PWD/source/root/usr/lib/logdata-anomaly-miner/ApacheAccessModel.py | ||
- rm $PWD/aecid-testsuite/demo/AMiner/template_config.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.