From 2239c5ebb3f9d618887f2f644b3bf1df5fe4f3a3 Mon Sep 17 00:00:00 2001 From: Daniel Font Date: Wed, 10 May 2023 10:55:11 +0200 Subject: [PATCH] [OPT-850] Modify MAX SIZE parameter to 1Mb. --- slp_cft/slp_cft/validate/cft_validator.py | 2 +- slp_cft/tests/unit/validate/test_cft_validator.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/slp_cft/slp_cft/validate/cft_validator.py b/slp_cft/slp_cft/validate/cft_validator.py index 01a26a0f..19fc2658 100644 --- a/slp_cft/slp_cft/validate/cft_validator.py +++ b/slp_cft/slp_cft/validate/cft_validator.py @@ -8,7 +8,7 @@ logger = logging.getLogger(__name__) -MAX_SIZE = 20 * 1024 * 1024 +MAX_SIZE = 1 * 1024 * 1024 MIN_SIZE = 13 diff --git a/slp_cft/tests/unit/validate/test_cft_validator.py b/slp_cft/tests/unit/validate/test_cft_validator.py index c5f01a18..96c4a35f 100644 --- a/slp_cft/tests/unit/validate/test_cft_validator.py +++ b/slp_cft/tests/unit/validate/test_cft_validator.py @@ -5,8 +5,8 @@ from slp_cft.slp_cft.validate.cft_validator import CloudformationValidator VALID_MIME = 'text/plain' -MIN_SIZE = 20 -MAX_SIZE = 20 * 1024 * 1024 +MIN_SIZE = 13 +MAX_SIZE = 1 * 1024 * 1024 def create_cloudformation_file_data(size: int) -> bytes: