forked from p15670423/monkey
Rename files having endpoints for blackbox tests
This commit is contained in:
parent
a39cfd21fb
commit
26684bbb4e
|
@ -37,9 +37,9 @@ from monkey_island.cc.resources.T1216_pba_file_download import T1216PBAFileDownl
|
|||
from monkey_island.cc.resources.telemetry import Telemetry
|
||||
from monkey_island.cc.resources.telemetry_feed import TelemetryFeed
|
||||
from monkey_island.cc.resources.test.clear_caches import ClearCaches
|
||||
from monkey_island.cc.resources.test.log_test import LogTest
|
||||
from monkey_island.cc.resources.test.monkey_test import MonkeyTest
|
||||
from monkey_island.cc.resources.test.telemetry_test import TelemetryTest
|
||||
from monkey_island.cc.resources.test.log_test_endpoint import LogTestEndpoint
|
||||
from monkey_island.cc.resources.test.monkey_test_endpoint import MonkeyTestEndpoint
|
||||
from monkey_island.cc.resources.test.telemetry_test_endpoint import TelemetryTestEndpoint
|
||||
from monkey_island.cc.resources.version_update import VersionUpdate
|
||||
from monkey_island.cc.resources.zero_trust.finding_event import ZeroTrustFindingEvent
|
||||
from monkey_island.cc.resources.zero_trust.scoutsuite_auth.aws_keys import AWSKeys
|
||||
|
@ -165,10 +165,10 @@ def init_api_resources(api):
|
|||
api.add_resource(AWSKeys, "/api/aws_keys")
|
||||
|
||||
# Resources used by black box tests
|
||||
api.add_resource(MonkeyTest, "/api/test/monkey")
|
||||
api.add_resource(MonkeyTestEndpoint, "/api/test/monkey")
|
||||
api.add_resource(ClearCaches, "/api/test/clear_caches")
|
||||
api.add_resource(LogTest, "/api/test/log")
|
||||
api.add_resource(TelemetryTest, "/api/test/telemetry")
|
||||
api.add_resource(LogTestEndpoint, "/api/test/log")
|
||||
api.add_resource(TelemetryTestEndpoint, "/api/test/telemetry")
|
||||
|
||||
|
||||
def init_app(mongo_url):
|
||||
|
|
|
@ -6,7 +6,7 @@ from monkey_island.cc.database import database, mongo
|
|||
from monkey_island.cc.resources.auth.auth import jwt_required
|
||||
|
||||
|
||||
class TestLog(flask_restful.Resource):
|
||||
class LogTestEndpoint(flask_restful.Resource):
|
||||
@jwt_required
|
||||
def get(self):
|
||||
find_query = json_util.loads(request.args.get("find_query"))
|
|
@ -6,7 +6,7 @@ from monkey_island.cc.database import mongo
|
|||
from monkey_island.cc.resources.auth.auth import jwt_required
|
||||
|
||||
|
||||
class TestMonkey(flask_restful.Resource):
|
||||
class MonkeyTestEndpoint(flask_restful.Resource):
|
||||
@jwt_required
|
||||
def get(self, **kw):
|
||||
find_query = json_util.loads(request.args.get("find_query"))
|
|
@ -6,7 +6,7 @@ from monkey_island.cc.database import mongo
|
|||
from monkey_island.cc.resources.auth.auth import jwt_required
|
||||
|
||||
|
||||
class TestTelemetry(flask_restful.Resource):
|
||||
class TelemetryTestEndpoint(flask_restful.Resource):
|
||||
@jwt_required
|
||||
def get(self, **kw):
|
||||
find_query = json_util.loads(request.args.get("find_query"))
|
Loading…
Reference in New Issue