Skip to content

Commit 0537485

Browse files
authored
Merge pull request #76 from CiscoSecurity/release-2.0.3
Release 2.0.3
2 parents 0c84139 + 369affb commit 0537485

File tree

7 files changed

+1
-62
lines changed

7 files changed

+1
-62
lines changed

code/api/enrich.py

-6
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,6 @@ def format_docs(docs):
434434
return {'count': len(docs), 'docs': docs}
435435

436436

437-
@enrich_api.route('/deliberate/observables', methods=['POST'])
438-
def deliberate_observables():
439-
# Not implemented
440-
return jsonify_data({})
441-
442-
443437
@enrich_api.route('/observe/observables', methods=['POST'])
444438
def observe_observables():
445439
relay_input = get_observables()

code/api/respond.py

-17
This file was deleted.

code/app.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from api.enrich import enrich_api
44
from api.health import health_api
5-
from api.respond import respond_api
65
from api.watchdog import watchdog_api
76
from api.version import version_api
87

@@ -17,7 +16,6 @@
1716

1817
app.register_blueprint(health_api)
1918
app.register_blueprint(enrich_api)
20-
app.register_blueprint(respond_api)
2119
app.register_blueprint(watchdog_api)
2220
app.register_blueprint(version_api)
2321

code/container_settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"VERSION": "2.0.2",
2+
"VERSION": "2.0.3",
33
"NAME": "Pulsedive"
44
}

code/tests/unit/api/test_enrich.py

-4
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ def pd_api_response(ok, payload=None, reason=''):
6262
def expected_payload(any_route):
6363
payload = None
6464

65-
if any_route.startswith('/deliberate'):
66-
payload = {}
67-
6865
if any_route.startswith('/observe'):
6966
payload = EXPECTED_PAYLOAD_OBSERVE
7067

@@ -99,7 +96,6 @@ def test_enrich_call_without_jwt_failure(route,
9996

10097

10198
def all_routes():
102-
yield '/deliberate/observables'
10399
yield '/observe/observables'
104100
yield '/refer/observables'
105101

code/tests/unit/api/test_respond.py

-29
This file was deleted.

code/tests/unit/test_app.py

-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ def calls():
1616
yield Call('GET', '/health', HTTPStatus.METHOD_NOT_ALLOWED)
1717
yield Call('GET', '/version', HTTPStatus.METHOD_NOT_ALLOWED)
1818
yield Call('POST', '/watchdog', HTTPStatus.METHOD_NOT_ALLOWED)
19-
yield Call('GET', '/deliberate/observables', HTTPStatus.METHOD_NOT_ALLOWED)
2019
yield Call('GET', '/observe/observables', HTTPStatus.METHOD_NOT_ALLOWED)
2120
yield Call('GET', '/refer/observables', HTTPStatus.METHOD_NOT_ALLOWED)
22-
yield Call('GET', '/respond/observables', HTTPStatus.METHOD_NOT_ALLOWED)
23-
yield Call('GET', '/respond/trigger', HTTPStatus.METHOD_NOT_ALLOWED)
2421

2522

2623
@fixture(scope='module',

0 commit comments

Comments
 (0)