forked from p15670423/monkey
Rename blackbox endpoint classes to match filenames
This commit is contained in:
parent
c10f2f690a
commit
025cb7851c
|
@ -13,9 +13,11 @@ from monkey_island.cc.resources.attack.attack_report import AttackReport
|
|||
from monkey_island.cc.resources.auth.auth import Authenticate, init_jwt
|
||||
from monkey_island.cc.resources.auth.registration import Registration
|
||||
from monkey_island.cc.resources.blackbox.clear_caches import ClearCaches
|
||||
from monkey_island.cc.resources.blackbox.log_blackbox_endpoint import LogTestEndpoint
|
||||
from monkey_island.cc.resources.blackbox.monkey_blackbox_endpoint import MonkeyTestEndpoint
|
||||
from monkey_island.cc.resources.blackbox.telemetry_blackbox_endpoint import TelemetryTestEndpoint
|
||||
from monkey_island.cc.resources.blackbox.log_blackbox_endpoint import LogBlackboxEndpoint
|
||||
from monkey_island.cc.resources.blackbox.monkey_blackbox_endpoint import MonkeyBlackboxEndpoint
|
||||
from monkey_island.cc.resources.blackbox.telemetry_blackbox_endpoint import (
|
||||
TelemetryBlackboxEndpoint,
|
||||
)
|
||||
from monkey_island.cc.resources.bootloader import Bootloader
|
||||
from monkey_island.cc.resources.client_run import ClientRun
|
||||
from monkey_island.cc.resources.edge import Edge
|
||||
|
@ -165,10 +167,10 @@ def init_api_resources(api):
|
|||
api.add_resource(AWSKeys, "/api/aws_keys")
|
||||
|
||||
# Resources used by black box tests
|
||||
api.add_resource(MonkeyTestEndpoint, "/api/test/monkey")
|
||||
api.add_resource(MonkeyBlackboxEndpoint, "/api/test/monkey")
|
||||
api.add_resource(ClearCaches, "/api/test/clear_caches")
|
||||
api.add_resource(LogTestEndpoint, "/api/test/log")
|
||||
api.add_resource(TelemetryTestEndpoint, "/api/test/telemetry")
|
||||
api.add_resource(LogBlackboxEndpoint, "/api/test/log")
|
||||
api.add_resource(TelemetryBlackboxEndpoint, "/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 LogTestEndpoint(flask_restful.Resource):
|
||||
class LogBlackboxEndpoint(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 MonkeyTestEndpoint(flask_restful.Resource):
|
||||
class MonkeyBlackboxEndpoint(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 TelemetryTestEndpoint(flask_restful.Resource):
|
||||
class TelemetryBlackboxEndpoint(flask_restful.Resource):
|
||||
@jwt_required
|
||||
def get(self, **kw):
|
||||
find_query = json_util.loads(request.args.get("find_query"))
|
||||
|
|
Loading…
Reference in New Issue