Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common_analysis_oms
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
common_analysis_oms
Commits
437c549b
Commit
437c549b
authored
Aug 31, 2017
by
Peter Weidenbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor cleanups; pytest and travis support added
parent
657c2abc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
13 deletions
+24
-13
.travis.yml
.travis.yml
+12
-0
__init__.py
common_analysis_oms/__init__.py
+1
-4
oms.py
common_analysis_oms/oms.py
+1
-1
pytest.ini
pytest.ini
+4
-0
setup.py
setup.py
+6
-4
test_oms.py
tests/test_oms.py
+0
-4
No files found.
.travis.yml
0 → 100644
View file @
437c549b
language
:
python
python
:
-
"
3.5"
-
"
3.6"
# command to install dependencies
install
:
-
"
apt-get
install
clamdscan"
-
"
python
setup.py
-q
install"
-
"
pip
install
pytest-pep8"
# command to run tests
script
:
pytest
common_analysis_oms/__init__.py
View file @
437c549b
from
.oms
import
CommonAnalysisOMS
,
plugin_version
__version__
=
plugin_version
from
.oms
import
CommonAnalysisOMS
__all__
=
[
'CommonAnalysisOMS'
,
'__version__'
]
analysis_class
=
CommonAnalysisOMS
common_analysis_oms/oms.py
View file @
437c549b
...
...
@@ -9,7 +9,7 @@ from re import findall
from
subprocess
import
Popen
,
PIPE
from
time
import
time
plugin_version
=
"0.2.
5
"
plugin_version
=
"0.2.
6
"
system_version
=
plugin_version
...
...
pytest.ini
0 → 100644
View file @
437c549b
[pytest]
addopts
=
--pep8 -v
pep8ignore
=
*.py E501
setup.py
View file @
437c549b
from
setuptools
import
setup
from
common_analysis_oms
import
__version__
VERSION
=
'0.2.6'
setup
(
name
=
"common_analysis_oms"
,
version
=
__version__
,
version
=
VERSION
,
packages
=
[
'common_analysis_oms'
],
package_dir
=
{
'common_analysis_oms'
:
'common_analysis_oms'
},
package_data
=
{
'common_analysis_oms'
:
[
'plugins/*'
]},
...
...
@@ -18,10 +20,10 @@ setup(
'common_analysis_oms/plugins/F-Secure.json'
,
'common_analysis_oms/plugins/McAfee.json'
])],
install_requires
=
[
'common_analysis_base'
,
'common_analysis_base
>= 0.1
'
,
],
dependency_links
=
[
'
git+https://github.com/mass-project/common_analysis_base.git#common_analysis_base
'
'
https://github.com/mass-project/common_analysis_base/tarball/master#egg=common_analysis_base-0.1
'
],
author
=
"Fraunhofer FKIE"
,
author_email
=
"peter.weidenbach@fkie.fraunhofer.de"
,
...
...
tests/test_oms.py
View file @
437c549b
...
...
@@ -42,7 +42,3 @@ class Test(unittest.TestCase):
self
.
assertIn
(
'scans'
,
result
,
"scans not in result"
)
self
.
assertIn
(
'plugin_version'
,
result
,
"plugin_version not in results"
)
self
.
assertAlmostEqual
(
result
[
'analysis_date'
],
time
(),
msg
=
"Time not correct. This test might fail, if you installed many AVs"
,
delta
=
120
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment