Skip to content

Commit ace67c9

Browse files
author
Aaron Weaver
committed
Update API to support Dojo changes and CI/CD example
1 parent c44ff88 commit ace67c9

File tree

12 files changed

+680
-87
lines changed

12 files changed

+680
-87
lines changed

.gitignore

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
73+
# pyenv
74+
.python-version
75+
76+
# celery beat schedule file
77+
celerybeat-schedule
78+
79+
# SageMath parsed files
80+
*.sage.py
81+
82+
# dotenv
83+
.env
84+
85+
# virtualenv
86+
.venv
87+
venv/
88+
ENV/
89+
90+
# Spyder project settings
91+
.spyderproject
92+
.spyproject
93+
94+
# Rope project settings
95+
.ropeproject
96+
97+
# mkdocs documentation
98+
/site
99+
100+
# mypy
101+
.mypy_cache/
102+
103+
# Config file
104+
config/config.json
105+
106+
test.py

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Several quick start options are available:
1313
- Install with pip (recommended): :code:`pip install defectdojo_api`
1414
- `Download the latest release <https://github.com/aaronweaver/defectdojo_api/releases/latest>`_
1515
- Clone the repository: :code:`git clone https://github.com/aaronweaver/defectdojo_api`
16+
- If you are testing the api locally make sure to set the PYTHONPATH. export PYTHONPATH=/path/totheapi/defectdojo_api:$PYTHONPATH
1617

1718
Example
1819
-------

defectdojo_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.2'
1+
__version__ = '1.0.0'

defectdojo_api/__init__.pyc

145 Bytes
Binary file not shown.

defectdojo_api/defectdojo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ def get_engagement(self, engagement_id):
153153
"""
154154
return self._request('GET', 'engagements/' + str(engagement_id) + '/')
155155

156-
def create_engagement(self, name, product_id, lead_id, status, target_start, target_end, active='true',
157-
pen_test='false', check_list='false', threat_model='false', risk_path="", test_strategy="", progress="",
158-
done_testing=""):
156+
def create_engagement(self, name, product_id, lead_id, status, target_start, target_end, active='True',
157+
pen_test='False', check_list='False', threat_model='False', risk_path="", test_strategy="", progress="",
158+
done_testing='False'):
159159
"""Creates an engagement with the given properties.
160160
161161
:param name: Engagement name.

defectdojo_api/defectdojo.pyc

28.1 KB
Binary file not shown.

examples/.DS_Store

8 KB
Binary file not shown.

0 commit comments

Comments
 (0)