From b83428d1cdb18f4d18f45412d9ca917f452c7f9e Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Wed, 22 Jun 2022 16:02:19 +0200 Subject: [PATCH] added fixmes --- config.yaml | 5 ++++- pyinfra/visitor/strategies/response/response.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index 975fa98..600f721 100755 --- a/config.yaml +++ b/config.yaml @@ -4,7 +4,7 @@ service: response_file_extension: $RESPONSE_FILE_EXTENSION|"json.gz" # Extension for response files to upload to storage # In case a service is not supposed to place response files under the root folder `dossierId/fileId` and requests do # not specify an operation, this parameter can specify an output folder - response_folder: $RESPONSE_FOLDER|null + response_folder: $RESPONSE_FOLDER|null # FIXME: covered by operation mapping? # Specifies, how to handle the `page` key of a request. "multi" will download all pages matching the list of pages # specified in the request download_strategy: $DOWNLOAD_STRATEGY|single @@ -14,6 +14,9 @@ service: input: subdir: "" extension: IN.gz + output: # FIXME + subdir: "" + extension: out.gz probing_webserver: host: $PROBING_WEBSERVER_HOST|"0.0.0.0" # Probe webserver address diff --git a/pyinfra/visitor/strategies/response/response.py b/pyinfra/visitor/strategies/response/response.py index 001207a..bdc0ca2 100644 --- a/pyinfra/visitor/strategies/response/response.py +++ b/pyinfra/visitor/strategies/response/response.py @@ -20,6 +20,7 @@ class ResponseStrategy(abc.ABC): @staticmethod def get_response_object_name(body): + # FIXME: rewrite with config.service.operations if "pages" not in body: body["pages"] = []