Started by upstream project "PIPELINE-FULL-CD" build number 11 originally caused by: Started by an SCM change 04:14:18 Connecting to https://api.github.com using silviaalejandra/****** (token git) Obtained pipelines/Jenkinsfile from 414f5c43dae4f7ff220b0179513ec6220f58bf9f [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/ipeline_deploy_parameter_develop [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential Jenkins_silgonza_token_git Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://github.com/silviaalejandra/todo-list-aws.git > git init /var/lib/jenkins/workspace/ipeline_deploy_parameter_develop # timeout=10 Fetching upstream changes from https://github.com/silviaalejandra/todo-list-aws.git > git --version # timeout=10 > git --version # 'git version 2.17.1' using GIT_ASKPASS to set credentials token git > git fetch --no-tags --progress -- https://github.com/silviaalejandra/todo-list-aws.git +refs/heads/develop:refs/remotes/origin/develop # timeout=10 > git config remote.origin.url https://github.com/silviaalejandra/todo-list-aws.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/develop:refs/remotes/origin/develop # timeout=10 Avoid second fetch Checking out Revision 414f5c43dae4f7ff220b0179513ec6220f58bf9f (develop) > git config core.sparsecheckout # timeout=10 > git checkout -f 414f5c43dae4f7ff220b0179513ec6220f58bf9f # timeout=10 Commit message: "se eliminan seteo de variables innecesarias en staging" > git rev-list --no-walk 7359fa2ce567a8cfed891caf973f983d28d3a090 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Control Environment) [Pipeline] script [Pipeline] { [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (SetUp) [Pipeline] echo Setup Virtualenv for testing [Pipeline] sh + bash pipelines/PIPELINE-FULL-staging/setup.sh + python3.7 -m venv todo-list-aws + source todo-list-aws/bin/activate ++ deactivate nondestructive ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin ++ PATH=/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin ++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ '[' 'x(todo-list-aws) ' '!=' x ']' ++ PS1='(todo-list-aws) ' ++ export PS1 ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r + python -m pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl Installing collected packages: pip Found existing installation: pip 9.0.1 Uninstalling pip-9.0.1: Successfully uninstalled pip-9.0.1 Successfully installed pip-21.3.1 + python -m pip install radon Collecting radon Using cached radon-5.1.0-py2.py3-none-any.whl (52 kB) Collecting colorama>=0.4.1 Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Collecting future Using cached future-0.18.2.tar.gz (829 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting mando<0.7,>=0.6 Using cached mando-0.6.4-py2.py3-none-any.whl (29 kB) Collecting six Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Using legacy 'setup.py install' for future, since package 'wheel' is not installed. Installing collected packages: six, mando, future, colorama, radon Running setup.py install for future: started Running setup.py install for future: finished with status 'done' Successfully installed colorama-0.4.4 future-0.18.2 mando-0.6.4 radon-5.1.0 six-1.16.0 + python -m pip install flake8 Collecting flake8 Using cached flake8-4.0.1-py2.py3-none-any.whl (64 kB) Collecting mccabe<0.7.0,>=0.6.0 Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB) Collecting pycodestyle<2.9.0,>=2.8.0 Using cached pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB) Collecting importlib-metadata<4.3 Using cached importlib_metadata-4.2.0-py3-none-any.whl (16 kB) Collecting pyflakes<2.5.0,>=2.4.0 Using cached pyflakes-2.4.0-py2.py3-none-any.whl (69 kB) Collecting typing-extensions>=3.6.4 Using cached typing_extensions-4.0.1-py3-none-any.whl (22 kB) Collecting zipp>=0.5 Using cached zipp-3.7.0-py3-none-any.whl (5.3 kB) Installing collected packages: zipp, typing-extensions, pyflakes, pycodestyle, mccabe, importlib-metadata, flake8 Successfully installed flake8-4.0.1 importlib-metadata-4.2.0 mccabe-0.6.1 pycodestyle-2.8.0 pyflakes-2.4.0 typing-extensions-4.0.1 zipp-3.7.0 + python -m pip install flake8-polyfill Collecting flake8-polyfill Using cached flake8_polyfill-1.0.2-py2.py3-none-any.whl (7.3 kB) Requirement already satisfied: flake8 in ./todo-list-aws/lib/python3.7/site-packages (from flake8-polyfill) (4.0.1) Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in ./todo-list-aws/lib/python3.7/site-packages (from flake8->flake8-polyfill) (0.6.1) Requirement already satisfied: importlib-metadata<4.3 in ./todo-list-aws/lib/python3.7/site-packages (from flake8->flake8-polyfill) (4.2.0) Requirement already satisfied: pyflakes<2.5.0,>=2.4.0 in ./todo-list-aws/lib/python3.7/site-packages (from flake8->flake8-polyfill) (2.4.0) Requirement already satisfied: pycodestyle<2.9.0,>=2.8.0 in ./todo-list-aws/lib/python3.7/site-packages (from flake8->flake8-polyfill) (2.8.0) Requirement already satisfied: typing-extensions>=3.6.4 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata<4.3->flake8->flake8-polyfill) (4.0.1) Requirement already satisfied: zipp>=0.5 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata<4.3->flake8->flake8-polyfill) (3.7.0) Installing collected packages: flake8-polyfill Successfully installed flake8-polyfill-1.0.2 + python -m pip install bandit Collecting bandit Using cached bandit-1.7.2-py3-none-any.whl (113 kB) Collecting GitPython>=1.0.1 Using cached GitPython-3.1.26-py3-none-any.whl (180 kB) Collecting PyYAML>=5.3.1 Using cached PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB) Collecting stevedore>=1.20.0 Using cached stevedore-3.5.0-py3-none-any.whl (49 kB) Collecting gitdb<5,>=4.0.1 Using cached gitdb-4.0.9-py3-none-any.whl (63 kB) Requirement already satisfied: typing-extensions>=3.7.4.3 in ./todo-list-aws/lib/python3.7/site-packages (from GitPython>=1.0.1->bandit) (4.0.1) Collecting pbr!=2.1.0,>=2.0.0 Using cached pbr-5.8.0-py2.py3-none-any.whl (112 kB) Requirement already satisfied: importlib-metadata>=1.7.0 in ./todo-list-aws/lib/python3.7/site-packages (from stevedore>=1.20.0->bandit) (4.2.0) Collecting smmap<6,>=3.0.1 Using cached smmap-5.0.0-py3-none-any.whl (24 kB) Requirement already satisfied: zipp>=0.5 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata>=1.7.0->stevedore>=1.20.0->bandit) (3.7.0) Installing collected packages: smmap, pbr, gitdb, stevedore, PyYAML, GitPython, bandit Successfully installed GitPython-3.1.26 PyYAML-6.0 bandit-1.7.2 gitdb-4.0.9 pbr-5.8.0 smmap-5.0.0 stevedore-3.5.0 + python -m pip install pytest Collecting pytest Using cached pytest-6.2.5-py3-none-any.whl (280 kB) Collecting packaging Using cached packaging-21.3-py3-none-any.whl (40 kB) Collecting py>=1.8.2 Using cached py-1.11.0-py2.py3-none-any.whl (98 kB) Collecting attrs>=19.2.0 Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB) Collecting pluggy<2.0,>=0.12 Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB) Collecting iniconfig Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB) Requirement already satisfied: importlib-metadata>=0.12 in ./todo-list-aws/lib/python3.7/site-packages (from pytest) (4.2.0) Collecting toml Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB) Requirement already satisfied: zipp>=0.5 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata>=0.12->pytest) (3.7.0) Requirement already satisfied: typing-extensions>=3.6.4 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata>=0.12->pytest) (4.0.1) Collecting pyparsing!=3.0.5,>=2.0.2 Using cached pyparsing-3.0.7-py3-none-any.whl (98 kB) Installing collected packages: pyparsing, toml, py, pluggy, packaging, iniconfig, attrs, pytest Successfully installed attrs-21.4.0 iniconfig-1.1.1 packaging-21.3 pluggy-1.0.0 py-1.11.0 pyparsing-3.0.7 pytest-6.2.5 toml-0.10.2 + python -m pip install boto3 Collecting boto3 Using cached boto3-1.20.43-py3-none-any.whl (131 kB) Collecting jmespath<1.0.0,>=0.7.1 Using cached jmespath-0.10.0-py2.py3-none-any.whl (24 kB) Collecting s3transfer<0.6.0,>=0.5.0 Using cached s3transfer-0.5.0-py3-none-any.whl (79 kB) Collecting botocore<1.24.0,>=1.23.43 Using cached botocore-1.23.43-py3-none-any.whl (8.5 MB) Collecting python-dateutil<3.0.0,>=2.1 Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting urllib3<1.27,>=1.25.4 Using cached urllib3-1.26.8-py2.py3-none-any.whl (138 kB) Requirement already satisfied: six>=1.5 in ./todo-list-aws/lib/python3.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.24.0,>=1.23.43->boto3) (1.16.0) Installing collected packages: urllib3, python-dateutil, jmespath, botocore, s3transfer, boto3 Successfully installed boto3-1.20.43 botocore-1.23.43 jmespath-0.10.0 python-dateutil-2.8.2 s3transfer-0.5.0 urllib3-1.26.8 + python -m pip install moto Collecting moto Using cached moto-3.0.1-py2.py3-none-any.whl (1.5 MB) Requirement already satisfied: botocore>=1.12.201 in ./todo-list-aws/lib/python3.7/site-packages (from moto) (1.23.43) Collecting xmltodict Using cached xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB) Collecting werkzeug Using cached Werkzeug-2.0.2-py3-none-any.whl (288 kB) Collecting responses>=0.9.0 Using cached responses-0.17.0-py2.py3-none-any.whl (38 kB) Collecting requests>=2.5 Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB) Requirement already satisfied: importlib-metadata in ./todo-list-aws/lib/python3.7/site-packages (from moto) (4.2.0) Collecting MarkupSafe!=2.0.0a1 Using cached MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (31 kB) Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in ./todo-list-aws/lib/python3.7/site-packages (from moto) (2.8.2) Requirement already satisfied: boto3>=1.9.201 in ./todo-list-aws/lib/python3.7/site-packages (from moto) (1.20.43) Collecting Jinja2>=2.10.1 Using cached Jinja2-3.0.3-py3-none-any.whl (133 kB) Collecting cryptography>=3.3.1 Using cached cryptography-36.0.1-cp36-abi3-manylinux_2_24_x86_64.whl (3.6 MB) Collecting pytz Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB) Requirement already satisfied: s3transfer<0.6.0,>=0.5.0 in ./todo-list-aws/lib/python3.7/site-packages (from boto3>=1.9.201->moto) (0.5.0) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in ./todo-list-aws/lib/python3.7/site-packages (from boto3>=1.9.201->moto) (0.10.0) Requirement already satisfied: urllib3<1.27,>=1.25.4 in ./todo-list-aws/lib/python3.7/site-packages (from botocore>=1.12.201->moto) (1.26.8) Collecting cffi>=1.12 Using cached cffi-1.15.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (427 kB) Requirement already satisfied: six>=1.5 in ./todo-list-aws/lib/python3.7/site-packages (from python-dateutil<3.0.0,>=2.1->moto) (1.16.0) Collecting charset-normalizer~=2.0.0 Using cached charset_normalizer-2.0.10-py3-none-any.whl (39 kB) Collecting idna<4,>=2.5 Using cached idna-3.3-py3-none-any.whl (61 kB) Collecting certifi>=2017.4.17 Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB) Requirement already satisfied: zipp>=0.5 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata->moto) (3.7.0) Requirement already satisfied: typing-extensions>=3.6.4 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata->moto) (4.0.1) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Installing collected packages: pycparser, idna, charset-normalizer, certifi, requests, MarkupSafe, cffi, xmltodict, werkzeug, responses, pytz, Jinja2, cryptography, moto Successfully installed Jinja2-3.0.3 MarkupSafe-2.0.1 certifi-2021.10.8 cffi-1.15.0 charset-normalizer-2.0.10 cryptography-36.0.1 idna-3.3 moto-3.0.1 pycparser-2.21 pytz-2021.3 requests-2.27.1 responses-0.17.0 werkzeug-2.0.2 xmltodict-0.12.0 + python -m pip install mock==4.0.2 Collecting mock==4.0.2 Using cached mock-4.0.2-py3-none-any.whl (28 kB) Installing collected packages: mock Successfully installed mock-4.0.2 + python -m pip install coverage==4.5.4 Collecting coverage==4.5.4 Using cached coverage-4.5.4-cp37-cp37m-manylinux1_x86_64.whl (205 kB) Installing collected packages: coverage Successfully installed coverage-4.5.4 + pwd /var/lib/jenkins/workspace/ipeline_deploy_parameter_develop [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] echo Static program analysis: [Pipeline] sh + bash pipelines/PIPELINE-FULL-staging/static_test.sh ++ wc -l ++ radon cc src -nc + RAD_ERRORS=0 + [[ 0 -ne 0 ]] ++ radon mi src -nc ++ wc -l + RAD_ERRORS=0 + [[ 0 -ne 0 ]] + flake8 --format=pylint src/__init__.py src/create.py src/decimalencoder.py src/delete.py src/get.py src/list.py src/todoList.py src/translate.py src/update.py + [[ 0 -ne 0 ]] + bandit -r src/__init__.py src/create.py src/decimalencoder.py src/delete.py src/get.py src/list.py src/todoList.py src/translate.py src/update.py -f custom -o bandit.out --msg-template '{relpath}:{line}: [{test_id}] {msg}' [main] INFO profile include tests: None [main] INFO profile exclude tests: None [main] INFO cli include tests: None [main] INFO cli exclude tests: None [main] INFO running on Python 3.7.5 [custom] INFO Result written to file: bandit.out + [[ 0 -ne 0 ]] [Pipeline] echo Unit testing: [Pipeline] sh + bash pipelines/PIPELINE-FULL-staging/unit_test.sh ++ pwd + export PYTHONPATH=:/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop + PYTHONPATH=:/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop + echo 'PYTHONPATH: :/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop' PYTHONPATH: :/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop + export DYNAMODB_TABLE=todoUnitTestsTable + DYNAMODB_TABLE=todoUnitTestsTable + python test/unit/TestToDo.py ...Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. .Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. F........Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. FINFO:root:inicio translate -------------------- INFO:root:get table -------------------- INFO:root:dynamodb.Table(name='todoUnitTestsTable') INFO:root:get item -------------------- INFO:root:{'Item': {'id': '7e2697c7-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170485.1050556', 'updatedAt': '1643170485.1050556'}, 'ResponseMetadata': {'RequestId': 'BG1Y8EN1CORSJWHXIYXR4Q9ABP8OE9TTFDVN6PJ29KBRFIH7I3I8', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': 'BG1Y8EN1CORSJWHXIYXR4Q9ABP8OE9TTFDVN6PJ29KBRFIH7I3I8', 'x-amz-crc32': '2800433393'}, 'RetryAttempts': 0}} INFO:root:Aprender DevOps y Cloud en la UNIR INFO:root:source languaje -------------------- INFO:botocore.credentials:Found credentials in environment variables. INFO:root: INFO:root: INFO:root:Detect text lang: Aprender DevOps y Cloud en la UNIR ERROR:root:Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. INFO:root:None INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: None INFO:root:Lenguaje salida: ii ERROR:root:Problemas de parametros Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 692, in _make_api_call api_params, operation_model, context=request_context) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 740, in _convert_to_request_dict api_params, operation_model) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/validate.py", line 360, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter SourceLanguageCode, value: None, type: , valid types: INFO:root:Translation output: None INFO:root:{'statusCode': 200, 'body': '{"id": "7e2697c7-7e5e-11ec-9ac9-129aa2831209", "text": null, "checked": false, "createdAt": "1643170485.1050556", "updatedAt": "1643170485.1050556"}'} INFO:root:inicio translate -------------------- INFO:root:get table -------------------- INFO:root:dynamodb.Table(name='todoUnitTestsTable') INFO:root:get item -------------------- INFO:root:{'Item': {'id': '7e2697c7-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170485.1050556', 'updatedAt': '1643170485.1050556'}, 'ResponseMetadata': {'RequestId': '8XZISUPPPOVXSO8P2QA9IPMV2ETBQ3VIS86JFZ3WO1AWMBE6I74B', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': '8XZISUPPPOVXSO8P2QA9IPMV2ETBQ3VIS86JFZ3WO1AWMBE6I74B', 'x-amz-crc32': '2800433393'}, 'RetryAttempts': 0}} INFO:root:Aprender DevOps y Cloud en la UNIR INFO:root:source languaje -------------------- INFO:root: INFO:root: INFO:root:Detect text lang: Aprender DevOps y Cloud en la UNIR ERROR:root:Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. INFO:root:None INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: None INFO:root:Lenguaje salida: None ERROR:root:Problemas de parametros Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 692, in _make_api_call api_params, operation_model, context=request_context) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 740, in _convert_to_request_dict api_params, operation_model) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/validate.py", line 360, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter SourceLanguageCode, value: None, type: , valid types: Invalid type for parameter TargetLanguageCode, value: None, type: , valid types: INFO:root:Translation output: None INFO:root:{'statusCode': 200, 'body': '{"id": "7e2697c7-7e5e-11ec-9ac9-129aa2831209", "text": null, "checked": false, "createdAt": "1643170485.1050556", "updatedAt": "1643170485.1050556"}'} .INFO:botocore.credentials:Found credentials in environment variables. INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: es INFO:root:Lenguaje salida: it ERROR:root:No fue posible realizar la traduccion Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the TranslateText operation: The security token included in the request is invalid. FINFO:botocore.credentials:Found credentials in environment variables. INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: None INFO:root:Lenguaje salida: es ERROR:root:Problemas de parametros Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 692, in _make_api_call api_params, operation_model, context=request_context) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 740, in _convert_to_request_dict api_params, operation_model) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/validate.py", line 360, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter SourceLanguageCode, value: None, type: , valid types: INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: ii INFO:root:Lenguaje salida: es ERROR:root:No fue posible realizar la traduccion Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the TranslateText operation: The security token included in the request is invalid. INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: ii INFO:root:Lenguaje salida: es ERROR:root:No fue posible realizar la traduccion Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the TranslateText operation: The security token included in the request is invalid. .INFO:botocore.credentials:Found credentials in environment variables. --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_delete_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "7d338b62-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170483.4030592", "updatedAt": "1643170483.4030592"}'} Id item:7d338b62-7e5e-11ec-9ac9-129aa2831209 Item deleted succesfully End: test_delete_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_delete_todo_error A condition specified in the operation could not be evaluated. End: test_delete_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp ---------------------***--- Start: test_get_comprehend End: test_get comprehend --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_err_get_languaje--------------- The security token included in the request is invalid. End: test_err_get_languaje--------------- --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_languaje Texto:Aprender DevOps y Cloud en la UNIR The security token included in the request is invalid. Response Languaje:None --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_table End: test_get_table --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_todo Table name:todoUnitTestsTable Response put_item:{'statusCode': 200, 'body': '{"id": "7d338b63-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170484.1955118", "updatedAt": "1643170484.1955118"}'} Id item:7d338b63-7e5e-11ec-9ac9-129aa2831209 Result getItem:{'Item': {'id': '7d338b63-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170484.1955118', 'updatedAt': '1643170484.1955118'}, 'ResponseMetadata': {'RequestId': 'NY5Q2SYFN91UBB6847KTQGRKQCTMVOUFU8U1MFJND4ESOF8UTV2N', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': 'NY5Q2SYFN91UBB6847KTQGRKQCTMVOUFU8U1MFJND4ESOF8UTV2N', 'x-amz-crc32': '3230321996'}, 'RetryAttempts': 0}} Response Get:{'id': '7d338b63-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170484.1955118', 'updatedAt': '1643170484.1955118'} End: test_get_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_todo_error Requested resource not found End: test_get_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_translate End: test_get_translate --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_list_todo Table name:todoUnitTestsTable Response GetItems[{'id': '7d338b64-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170484.5786307', 'updatedAt': '1643170484.5786307'}] End: test_list_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_put_todo Table name:todoUnitTestsTable Response put_item:{'statusCode': 200, 'body': '{"id": "7d338b65-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170484.6644473", "updatedAt": "1643170484.6644473"}'} End: test_put_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_put_todo_error Table name:todoUnitTestsTable Requested resource not found Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable End: test_put_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_table_exists Table name:todoUnitTestsTable End: test_table_exists --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_translate_item Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "7e2697c6-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170485.0125177", "updatedAt": "1643170485.0125177"}'} Id item:7e2697c6-7e5e-11ec-9ac9-129aa2831209 Texto:Aprender DevOps y Cloud en la UNIR The security token included in the request is invalid. Response Languaje:None lenguaje origen:es Lenguaje destino:it --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_translate_item_err Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "7e2697c7-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170485.1050556", "updatedAt": "1643170485.1050556"}'} Id item:7e2697c7-7e5e-11ec-9ac9-129aa2831209 The security token included in the request is invalid. The security token included in the request is invalid. End: test_err_translate --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_translate_text Texto:Aprender DevOps y Cloud en la UNIR The security token included in the request is invalid. Response Translate:None --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_err_translate_text The security token included in the request is invalid. The security token included in the request is invalid. End: test_err_translate_text --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_update_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "7e2697c8-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170485.5589447", "updatedAt": "1643170485.5589447"}'} Id item:7e2697c8-7e5e-11ec-9ac9-129aa2831209 Result Update Item:{'id': '7e2697c8-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender más cosas que DevOps y Cloud en la UNIR', 'checked': 'false', 'createdAt': '1643170485.5589447', 'updatedAt': Decimal('1643170485561')} End: test_update_todo --------------------- Start: tearDown.INFO:botocore.credentials:Found credentials in environment variables. . ====================================================================== FAIL: test_get_languaje (__main__.TestDatabaseFunctions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/moto/core/models.py", line 120, in wrapper result = func(*args, **kwargs) File "test/unit/TestToDo.py", line 194, in test_get_languaje self.assertEqual(responseLanguaje, self.origin_lang) AssertionError: None != 'es' ====================================================================== FAIL: test_translate_item (__main__.TestDatabaseFunctions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/moto/core/models.py", line 120, in wrapper result = func(*args, **kwargs) File "test/unit/TestToDo.py", line 273, in test_translate_item self.assertEqual(responseLanguaje, self.origin_lang) AssertionError: None != 'es' ====================================================================== FAIL: test_translate_text (__main__.TestDatabaseFunctions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/moto/core/models.py", line 120, in wrapper result = func(*args, **kwargs) File "test/unit/TestToDo.py", line 245, in test_translate_text self.assertEqual(response, self.traduccion) AssertionError: None != 'Scopri DevOps e Cloud presso UNIR' ---------------------------------------------------------------------- Ran 19 tests in 2.387s FAILED (failures=3) Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: atest_update_todo_error Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "7e2697c9-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170485.671205", "updatedAt": "1643170485.671205"}'} One or more parameter values were invalid: Type mismatch for key id expected: S actual: NULL End: atest_update_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown + pip show coverage Name: coverage Version: 4.5.4 Summary: Code coverage measurement for Python Home-page: https://github.com/nedbat/coveragepy Author: Ned Batchelder and 100 others Author-email: ned@nedbatchelder.com License: Apache 2.0 Location: /var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages Requires: Required-by: + coverage run --include=src/todoList.py test/unit/TestToDo.py ...Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. .Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. F........Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. FINFO:root:inicio translate -------------------- INFO:root:get table -------------------- INFO:root:dynamodb.Table(name='todoUnitTestsTable') INFO:root:get item -------------------- INFO:root:{'Item': {'id': '808d5b9f-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170489.153588', 'updatedAt': '1643170489.153588'}, 'ResponseMetadata': {'RequestId': '6OK2SK9XTVHESFDBP7W5UHSRMZMRCOFHMA78I0DTKEFOLEJLU6OK', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': '6OK2SK9XTVHESFDBP7W5UHSRMZMRCOFHMA78I0DTKEFOLEJLU6OK', 'x-amz-crc32': '3202628789'}, 'RetryAttempts': 0}} INFO:root:Aprender DevOps y Cloud en la UNIR INFO:root:source languaje -------------------- INFO:botocore.credentials:Found credentials in environment variables. INFO:root: INFO:root: INFO:root:Detect text lang: Aprender DevOps y Cloud en la UNIR ERROR:root:Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. INFO:root:None INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: None INFO:root:Lenguaje salida: ii ERROR:root:Problemas de parametros Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 692, in _make_api_call api_params, operation_model, context=request_context) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 740, in _convert_to_request_dict api_params, operation_model) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/validate.py", line 360, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter SourceLanguageCode, value: None, type: , valid types: INFO:root:Translation output: None INFO:root:{'statusCode': 200, 'body': '{"id": "808d5b9f-7e5e-11ec-9ac9-129aa2831209", "text": null, "checked": false, "createdAt": "1643170489.153588", "updatedAt": "1643170489.153588"}'} INFO:root:inicio translate -------------------- INFO:root:get table -------------------- INFO:root:dynamodb.Table(name='todoUnitTestsTable') INFO:root:get item -------------------- INFO:root:{'Item': {'id': '808d5b9f-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170489.153588', 'updatedAt': '1643170489.153588'}, 'ResponseMetadata': {'RequestId': 'QNG5I493UUWZQH4W1UET2NVWJ1DDBXIJV41PEOJ2O2XTN6BD8MGZ', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': 'QNG5I493UUWZQH4W1UET2NVWJ1DDBXIJV41PEOJ2O2XTN6BD8MGZ', 'x-amz-crc32': '3202628789'}, 'RetryAttempts': 0}} INFO:root:Aprender DevOps y Cloud en la UNIR INFO:root:source languaje -------------------- INFO:root: INFO:root: INFO:root:Detect text lang: Aprender DevOps y Cloud en la UNIR ERROR:root:Couldn't detect languages. Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 101, in get_item_languaje Text=text File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DetectDominantLanguage operation: The security token included in the request is invalid. INFO:root:None INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: None INFO:root:Lenguaje salida: None ERROR:root:Problemas de parametros Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 692, in _make_api_call api_params, operation_model, context=request_context) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 740, in _convert_to_request_dict api_params, operation_model) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/validate.py", line 360, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter SourceLanguageCode, value: None, type: , valid types: Invalid type for parameter TargetLanguageCode, value: None, type: , valid types: INFO:root:Translation output: None INFO:root:{'statusCode': 200, 'body': '{"id": "808d5b9f-7e5e-11ec-9ac9-129aa2831209", "text": null, "checked": false, "createdAt": "1643170489.153588", "updatedAt": "1643170489.153588"}'} .INFO:botocore.credentials:Found credentials in environment variables. INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: es INFO:root:Lenguaje salida: it ERROR:root:No fue posible realizar la traduccion Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the TranslateText operation: The security token included in the request is invalid. FINFO:botocore.credentials:Found credentials in environment variables. INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: None INFO:root:Lenguaje salida: es ERROR:root:Problemas de parametros Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 692, in _make_api_call api_params, operation_model, context=request_context) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 740, in _convert_to_request_dict api_params, operation_model) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/validate.py", line 360, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter SourceLanguageCode, value: None, type: , valid types: INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: ii INFO:root:Lenguaje salida: es ERROR:root:No fue posible realizar la traduccion Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the TranslateText operation: The security token included in the request is invalid. INFO:root:get translateclient -------------------- INFO:root: INFO:root: INFO:root: INFO:root:texto: Aprender DevOps y Cloud en la UNIR INFO:root:Lenguaje entrada: ii INFO:root:Lenguaje salida: es ERROR:root:No fue posible realizar la traduccion Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src/todoList.py", line 134, in translate_text TargetLanguageCode=t_lang File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the TranslateText operation: The security token included in the request is invalid. .INFO:botocore.credentials:Found credentials in environment variables. --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_delete_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "7f7cef58-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170487.24599", "updatedAt": "1643170487.24599"}'} Id item:7f7cef58-7e5e-11ec-9ac9-129aa2831209 Item deleted succesfully End: test_delete_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_delete_todo_error A condition specified in the operation could not be evaluated. End: test_delete_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp ---------------------***--- Start: test_get_comprehend End: test_get comprehend --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_err_get_languaje--------------- The security token included in the request is invalid. End: test_err_get_languaje--------------- --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_languaje Texto:Aprender DevOps y Cloud en la UNIR The security token included in the request is invalid. Response Languaje:None --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_table End: test_get_table --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_todo Table name:todoUnitTestsTable Response put_item:{'statusCode': 200, 'body': '{"id": "7f7cef59-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170488.0774798", "updatedAt": "1643170488.0774798"}'} Id item:7f7cef59-7e5e-11ec-9ac9-129aa2831209 Result getItem:{'Item': {'id': '7f7cef59-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170488.0774798', 'updatedAt': '1643170488.0774798'}, 'ResponseMetadata': {'RequestId': '0ZMIJW05PI3QPRHYR9XEK2RV8WX6N0LAJFNBOCPB1VZSOZVIOX80', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': '0ZMIJW05PI3QPRHYR9XEK2RV8WX6N0LAJFNBOCPB1VZSOZVIOX80', 'x-amz-crc32': '3855447768'}, 'RetryAttempts': 0}} Response Get:{'id': '7f7cef59-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170488.0774798', 'updatedAt': '1643170488.0774798'} End: test_get_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_todo_error Requested resource not found End: test_get_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_get_translate End: test_get_translate --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_list_todo Table name:todoUnitTestsTable Response GetItems[{'id': '7f7cef5a-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1643170488.54242', 'updatedAt': '1643170488.54242'}] End: test_list_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_put_todo Table name:todoUnitTestsTable Response put_item:{'statusCode': 200, 'body': '{"id": "7f7cef5b-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170488.6317806", "updatedAt": "1643170488.6317806"}'} End: test_put_todo --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_put_todo_error Table name:todoUnitTestsTable Requested resource not found Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable Table name:todoUnitTestsTable End: test_put_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_table_exists Table name:todoUnitTestsTable End: test_table_exists --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_translate_item Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "808d5b9e-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170489.0414584", "updatedAt": "1643170489.0414584"}'} Id item:808d5b9e-7e5e-11ec-9ac9-129aa2831209 Texto:Aprender DevOps y Cloud en la UNIR The security token included in the request is invalid. Response Languaje:None lenguaje origen:es Lenguaje destino:it --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_translate_item_err Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "808d5b9f-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170489.153588", "updatedAt": "1643170489.153588"}'} Id item:808d5b9f-7e5e-11ec-9ac9-129aa2831209 The security token included in the request is invalid. The security token included in the request is invalid. End: test_err_translate --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_translate_text Texto:Aprender DevOps y Cloud en la UNIR The security token included in the request is invalid. Response Translate:None --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_err_translate_text The security token included in the request is invalid. The security token included in the request is invalid. End: test_err_translate_text --------------------- Start: tearDown Table deleted succesfully End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_update_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "808d5ba0-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170489.699599", "updatedAt": "1643170489.699599"}'} Id item:808d5ba0-7e5e-11ec-9ac9-129aa2831209 Result Update Item:{'id': '808d5ba0-7e5e-11ec-9ac9-129aa2831209', 'text': 'Aprender más cosas que DevOps y Cloud en la UNIR', 'checked': 'false', 'createdAt': '1643170489.699599', 'updatedAt': Decimal('1643170489703')} End: test_update_todo --------------------- Start: tearDown Table deleted succesfully.INFO:botocore.credentials:Found credentials in environment variables. . ====================================================================== FAIL: test_get_languaje (__main__.TestDatabaseFunctions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/moto/core/models.py", line 120, in wrapper result = func(*args, **kwargs) File "test/unit/TestToDo.py", line 194, in test_get_languaje self.assertEqual(responseLanguaje, self.origin_lang) AssertionError: None != 'es' ====================================================================== FAIL: test_translate_item (__main__.TestDatabaseFunctions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/moto/core/models.py", line 120, in wrapper result = func(*args, **kwargs) File "test/unit/TestToDo.py", line 273, in test_translate_item self.assertEqual(responseLanguaje, self.origin_lang) AssertionError: None != 'es' ====================================================================== FAIL: test_translate_text (__main__.TestDatabaseFunctions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/todo-list-aws/lib/python3.7/site-packages/moto/core/models.py", line 120, in wrapper result = func(*args, **kwargs) File "test/unit/TestToDo.py", line 245, in test_translate_text self.assertEqual(response, self.traduccion) AssertionError: None != 'Scopri DevOps e Cloud presso UNIR' ---------------------------------------------------------------------- Ran 19 tests in 2.668s FAILED (failures=3) End: tearDown --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: atest_update_todo_error Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "808d5ba1-7e5e-11ec-9ac9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1643170489.790688", "updatedAt": "1643170489.790688"}'} One or more parameter values were invalid: Type mismatch for key id expected: S actual: NULL End: atest_update_todo_error --------------------- Start: tearDown Table deleted succesfully End: tearDown + coverage report -m Name Stmts Miss Cover Missing ----------------------------------------------- src/todoList.py 132 14 89% 18-20, 107-117, 142-144, 195-197 + coverage xml Post stage [Pipeline] script [Pipeline] { [Pipeline] publishCoverage Publishing Coverage report.... A total of 1 reports were found Report coverage diff: 0.0%. Add to CoverageResult. Group coverage diff: 0.0%. Add to CoverageResult. Package coverage diff: 0.0%. Add to CoverageResult. File coverage diff: 0.0%. Add to CoverageResult. Class coverage diff: 0.0%. Add to CoverageResult. Line coverage diff: 1.515152%. Add to CoverageResult. [Coverage] Computing coverage delta report [Coverage] Reference build recorder is not configured [Coverage] -> No reference build defined, falling back to previous build [Coverage] -> Found reference result 'io.jenkins.plugins.coverage.CoverageAction@77426209' [Checks API] No suitable checks publisher found. [Pipeline] } [Pipeline] // script [Pipeline] echo Generating Report [Pipeline] script [Pipeline] { [Pipeline] scanForIssues [Flake8] [-ERROR-] Skipping file 'flake8.out' because it's empty [Flake8] Searching for all files in '/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop' that match the pattern 'flake8.out' [Flake8] -> found 1 file [Flake8] Skipping post processing [Flake8] No filter has been set, publishing all 0 issues [Flake8] Repository miner is not configured, skipping repository mining [Pipeline] publishIssues [Flake8] Reference build recorder is not configured [Flake8] Obtaining reference build from same job (develop) [Flake8] Using reference build 'pipeline_deploy_parameter/develop #16' to compute new, fixed, and outstanding issues [Flake8] Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0 [Flake8] No quality gates have been set - skipping [Flake8] Health report is disabled - skipping [Flake8] Created analysis result for 0 issues (found 0 new issues, fixed 0 issues) [Flake8] Attaching ResultAction with ID 'flake8' to build 'pipeline_deploy_parameter/develop #18'. [Checks API] No suitable checks publisher found. [Pipeline] } [Pipeline] // script [Pipeline] echo Generating Security Report [Pipeline] script [Pipeline] { [Pipeline] scanForIssues [Pylint] [-ERROR-] Skipping file 'bandit.out' because it's empty [Pylint] Searching for all files in '/var/lib/jenkins/workspace/ipeline_deploy_parameter_develop' that match the pattern 'bandit.out' [Pylint] -> found 1 file [Pylint] Skipping post processing [Pylint] No filter has been set, publishing all 0 issues [Pylint] Repository miner is not configured, skipping repository mining [Pipeline] publishIssues [Pylint] Reference build recorder is not configured [Pylint] Obtaining reference build from same job (develop) [Pylint] Using reference build 'pipeline_deploy_parameter/develop #16' to compute new, fixed, and outstanding issues [Pylint] Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0 [Pylint] No quality gates have been set - skipping [Pylint] Health report is disabled - skipping [Pylint] Created analysis result for 0 issues (found 0 new issues, fixed 0 issues) [Pylint] Attaching ResultAction with ID 'pylint' to build 'pipeline_deploy_parameter/develop #18'. [Checks API] No suitable checks publisher found. [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] echo Package sam application: [Pipeline] sh + bash pipelines/common-steps/build.sh + sam validate --region us-east-1 2022-01-26 04:14:52 Loading policies from IAM... 2022-01-26 04:14:52 Finished loading policies from IAM. /var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/template.yaml is a valid SAM Template + sam build Building codeuri: /var/lib/jenkins/workspace/ipeline_deploy_parameter_develop/src runtime: python3.7 metadata: {} architecture: x86_64 functions: ['CreateTodoFunction', 'ListTodosFunction', 'GetTodoFunction', 'UpdateTodoFunction', 'DeleteTodoFunction', 'TranslateTodoFunction'] Running PythonPipBuilder:ResolveDependencies Running PythonPipBuilder:CopySource Build Succeeded Built Artifacts : .aws-sam/build Built Template : .aws-sam/build/template.yaml Commands you can use next ========================= [*] Invoke Function: sam local invoke [*] Deploy: sam deploy --guided [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy) [Pipeline] echo Initiating Deployment [Pipeline] sh + bash pipelines/common-steps/deploy.sh + sort -h + du -hs CHANGELOG.md README.md bandit.out coverage.xml flake8.out localEnvironment.json pipelines pytest.ini samconfig.toml src template.yaml test todo-list-aws 0 bandit.out 0 flake8.out 4.0K CHANGELOG.md 4.0K localEnvironment.json 4.0K pytest.ini 4.0K samconfig.toml 8.0K README.md 8.0K coverage.xml 8.0K template.yaml 40K test 60K src 64K pipelines 150M todo-list-aws + sam deploy template.yaml --config-env staging --no-confirm-changeset --force-upload --no-fail-on-empty-changeset --no-progressbar Deploying with following values =============================== Stack name : todo-list-aws-staging Region : us-east-1 Confirm changeset : False Deployment s3 bucket : aws-sam-cli-managed-staging-samclisourcebucket-silgonza.s3unir Capabilities : ["CAPABILITY_IAM"] Parameter overrides : {"Stage": "staging"} Signing Profiles : {} Initiating deployment ===================== Waiting for changeset to be created.. No changes to deploy. Stack todo-list-aws-staging is up to date [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Integration Test after deploy) [Pipeline] script [Pipeline] { [Pipeline] sh + aws cloudformation describe-stacks --stack-name todo-list-aws-staging --query Stacks[0].Outputs[?OutputKey==`BaseUrlApi`].OutputValue --region us-east-1 --output text [Pipeline] echo https://uq6tiolufe.execute-api.us-east-1.amazonaws.com/Prod [Pipeline] echo Initiating Integration Tests [Pipeline] sh + bash pipelines/common-steps/integration.sh https://uq6tiolufe.execute-api.us-east-1.amazonaws.com/Prod + export BASE_URL=https://uq6tiolufe.execute-api.us-east-1.amazonaws.com/Prod + BASE_URL=https://uq6tiolufe.execute-api.us-east-1.amazonaws.com/Prod + pytest -s test/integration/todoApiTest.py ============================= test session starts ============================== platform linux -- Python 3.7.5, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 rootdir: /var/lib/jenkins/workspace/ipeline_deploy_parameter_develop, configfile: pytest.ini collected 6 items test/integration/todoApiTest.py --------------------------------------- Starting - integration test Add TODO Response Add Todo: {"id": "8bd4796a-7e5e-11ec-8f4b-aed72044c47a", "text": "Integration text example", "checked": false, "createdAt": "1643170507.8229072", "updatedAt": "1643170507.8229072"} ID todo:8bd4796a-7e5e-11ec-8f4b-aed72044c47a End - integration test Add TODO .--------------------------------------- Starting - integration test Delete TODO Response Add todo: {"id": "8d614844-7e5e-11ec-8f4b-aed72044c47a", "text": "Integration text example - Initial", "checked": false, "createdAt": "1643170510.5629573", "updatedAt": "1643170510.5629573"} ID todo:8d614844-7e5e-11ec-8f4b-aed72044c47a Response Delete Todo: Response Get Todo https://uq6tiolufe.execute-api.us-east-1.amazonaws.com/Prod/todos/8d614844-7e5e-11ec-8f4b-aed72044c47a: End - integration test Delete TODO .--------------------------------------- Starting - integration test Get TODO Response Add Todo: {'statusCode': 200, 'body': '{"id": "8f4fb29e-7e5e-11ec-8f4b-aed72044c47a", "text": "Integration text example - GET", "checked": false, "createdAt": "1643170513.8031716", "updatedAt": "1643170513.8031716"}'} ID todo:8f4fb29e-7e5e-11ec-8f4b-aed72044c47a Response Get Todo: {'checked': False, 'createdAt': '1643170513.8031716', 'text': 'Integration text example - GET', 'id': '8f4fb29e-7e5e-11ec-8f4b-aed72044c47a', 'updatedAt': '1643170513.8031716'} End - integration test Get TODO .--------------------------------------- Starting - integration test List TODO Response Add Todo: {'statusCode': 200, 'body': '{"id": "8feb32b4-7e5e-11ec-8f4b-aed72044c47a", "text": "Integration text example", "checked": false, "createdAt": "1643170514.8222477", "updatedAt": "1643170514.8222477"}'} ID todo:8feb32b4-7e5e-11ec-8f4b-aed72044c47a Response List Todo:[{'checked': False, 'createdAt': '1643169254.8548694', 'text': 'Integration text example', 'id': 'a0eb6e24-7e5b-11ec-b61f-168acfd83227', 'updatedAt': '1643169254.8548694'}, {'checked': False, 'createdAt': '1643081409.5167327', 'text': 'Integration text example', 'id': '19049516-7d8f-11ec-aa1b-d66718ef47f4', 'updatedAt': '1643081409.5167327'}, {'checked': False, 'createdAt': '1642560684.347229', 'text': 'aprendiendo a traducir de español', 'id': 'b0a1603c-78d2-11ec-b7fa-ba57f2cb226d', 'updatedAt': '1642560684.347229'}, {'checked': False, 'createdAt': '1643082078.3789418', 'text': 'Integration text example', 'id': 'a7b0db48-7d90-11ec-b19b-c6b18da4e22c', 'updatedAt': '1643082078.3789418'}, {'checked': False, 'createdAt': '1642744797.5684638', 'text': 'Integration text example - TRADUCIR', 'id': '5ca97042-7a7f-11ec-81b3-86a8112e0808', 'updatedAt': '1642744797.5684638'}, {'checked': False, 'createdAt': '1642749262.2744465', 'text': 'Integration text example', 'id': 'c1d58172-7a89-11ec-803e-ba99dda5a848', 'updatedAt': '1642749262.2744465'}, {'checked': False, 'createdAt': '1642747711.6583896', 'text': 'Integration text example - TRADUCIR', 'id': '259defc2-7a86-11ec-b5d6-7e6313bc9f0c', 'updatedAt': '1642747711.6583896'}, {'checked': False, 'createdAt': '1642747154.075897', 'text': 'Integration text example', 'id': 'd93ff036-7a84-11ec-8f84-b2ad6d04e897', 'updatedAt': '1642747154.075897'}, {'checked': False, 'createdAt': '1643081412.9140916', 'text': 'Integration text example - TRADUCIR', 'id': '1b0afb0c-7d8f-11ec-aa1b-d66718ef47f4', 'updatedAt': '1643081412.9140916'}, {'checked': False, 'createdAt': '1642747709.377985', 'text': 'Integration text example', 'id': '243c5010-7a86-11ec-b5d6-7e6313bc9f0c', 'updatedAt': '1642747709.377985'}, {'checked': False, 'createdAt': '1642749436.5134823', 'text': 'Integration text example', 'id': '29b04656-7a8a-11ec-803e-ba99dda5a848', 'updatedAt': '1642749436.5134823'}, {'checked': False, 'createdAt': '1643081063.3205266', 'text': 'Integration text example', 'id': '4aab3c2e-7d8e-11ec-a2a2-f6ac5be2a752', 'updatedAt': '1643081063.3205266'}, {'checked': False, 'createdAt': '1642744795.2088823', 'text': 'Integration text example', 'id': '5b4164e4-7a7f-11ec-81b3-86a8112e0808', 'updatedAt': '1642744795.2088823'}, {'checked': False, 'createdAt': '1642744486.6376784', 'text': 'Integration text example', 'id': 'a35529a6-7a7e-11ec-8676-061303f90651', 'updatedAt': '1642744486.6376784'}, {'checked': False, 'createdAt': '1643168647.3982503', 'text': 'Integration text example', 'id': '36d8e7c4-7e5a-11ec-b921-5ef12112b847', 'updatedAt': '1643168647.3982503'}, {'checked': False, 'createdAt': '1642748546.3635159', 'text': 'Integration text example', 'id': '171e2b36-7a88-11ec-b127-c68359c54478', 'updatedAt': '1642748546.3635159'}, {'checked': False, 'createdAt': '1642733422.217307', 'text': 'Integration text example', 'id': 'e06c991a-7a64-11ec-a3c2-be62e62cd423', 'updatedAt': '1642733422.217307'}, {'checked': False, 'createdAt': '1642731348.05096', 'text': 'Integration text example', 'id': '0c2597aa-7a60-11ec-9779-5a99b3c586de', 'updatedAt': '1642731348.05096'}, {'checked': False, 'createdAt': '1643169583.0986576', 'text': 'Integration text example', 'id': '64972480-7e5c-11ec-b61f-168acfd83227', 'updatedAt': '1643169583.0986576'}, {'checked': False, 'createdAt': '1642738169.2318785', 'text': 'Aprender DevOps y Cloud en la UNIR', 'id': 'edf2d4d6-7a6f-11ec-b134-dadb41df67bc', 'updatedAt': '1642738169.2318785'}, {'checked': False, 'createdAt': '1642560648.4838197', 'text': 'Learn Serverless test 2', 'id': '9b565aa2-78d2-11ec-b7fa-ba57f2cb226d', 'updatedAt': '1642560648.4838197'}, {'checked': False, 'createdAt': '1642745865.489368', 'text': 'Integration text example', 'id': 'd9313d78-7a81-11ec-90dd-163c9ef595ae', 'updatedAt': '1642745865.489368'}, {'checked': False, 'createdAt': '1642560776.4877226', 'text': 'willkommen', 'id': 'e78ce666-78d2-11ec-b7fa-ba57f2cb226d', 'updatedAt': '1642560776.4877226'}, {'checked': False, 'createdAt': '1642733802.7987018', 'text': 'Integration text example', 'id': 'c344b696-7a65-11ec-8725-b22f520568f9', 'updatedAt': '1642733802.7987018'}, {'checked': False, 'createdAt': '1642747156.435699', 'text': 'Integration text example - TRADUCIR', 'id': 'daa80486-7a84-11ec-8f84-b2ad6d04e897', 'updatedAt': '1642747156.435699'}, {'checked': False, 'createdAt': '1642745288.5482588', 'text': 'Integration text example', 'id': '814f0230-7a80-11ec-81b3-86a8112e0808', 'updatedAt': '1642745288.5482588'}, {'checked': False, 'createdAt': '1642748116.7443602', 'text': 'Integration text example', 'id': '170e39ac-7a87-11ec-839b-0e7281199106', 'updatedAt': '1642748116.7443602'}, {'checked': False, 'createdAt': '1642748801.5016394', 'text': 'Integration text example', 'id': 'af31282e-7a88-11ec-b127-c68359c54478', 'updatedAt': '1642748801.5016394'}, {'checked': False, 'createdAt': '1643080192.9639397', 'text': 'Integration text example', 'id': '43e55c28-7d8c-11ec-b960-d67f9f74d611', 'updatedAt': '1643080192.9639397'}, {'checked': False, 'createdAt': '1642745017.1673217', 'text': 'Aprender DevOps y Cloud en la UNIR 36', 'id': 'df8d90ce-7a7f-11ec-81b3-86a8112e0808', 'updatedAt': '1642745017.1673217'}, {'checked': False, 'createdAt': '1642733425.2187793', 'text': 'Integration text example - TRADUCIR', 'id': 'e23695fc-7a64-11ec-a3c2-be62e62cd423', 'updatedAt': '1642733425.2187793'}, {'checked': False, 'createdAt': '1643170514.8222477', 'text': 'Integration text example', 'id': '8feb32b4-7e5e-11ec-8f4b-aed72044c47a', 'updatedAt': '1643170514.8222477'}] End - integration test List TODO .--------------------------------------- Starting - integration test Translate TODO Response Add Todo: {'statusCode': 200, 'body': '{"id": "916ebf5c-7e5e-11ec-8f4b-aed72044c47a", "text": "Integration text example - TRADUCIR", "checked": false, "createdAt": "1643170517.305968", "updatedAt": "1643170517.305968"}'} ID todo:916ebf5c-7e5e-11ec-8f4b-aed72044c47a Response Translate Todo: {'checked': False, 'createdAt': '1643170517.305968', 'text': 'Esempio di testo di integrazione - TRANSL', 'id': '916ebf5c-7e5e-11ec-8f4b-aed72044c47a', 'updatedAt': '1643170517.305968'} End - integration test Translate TODO .--------------------------------------- Starting - integration test Update TODO Response Add todo: {"id": "936346fc-7e5e-11ec-8f4b-aed72044c47a", "text": "Integration text example - Initial", "checked": false, "createdAt": "1643170520.642363", "updatedAt": "1643170520.642363"} ID todo:936346fc-7e5e-11ec-8f4b-aed72044c47a Response Update todo: {'checked': 'true', 'createdAt': '1643170520.642363', 'text': 'Integration text example - Modified', 'id': '936346fc-7e5e-11ec-8f4b-aed72044c47a', 'updatedAt': 1643170522830} Response Get Todo: {'checked': 'true', 'createdAt': '1643170520.642363', 'text': 'Integration text example - Modified', 'id': '936346fc-7e5e-11ec-8f4b-aed72044c47a', 'updatedAt': 1643170522830} End - integration test Update TODO . ============================== 6 passed in 17.90s ============================== [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] echo Clean env: delete dir [Pipeline] cleanWs [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline GitHub has been notified of this commit’s build result Finished: SUCCESS