Skip to content [Jenkins]Jenkins búsqueda 1 Silvia Alejandra Gonzalez Desconectar Panel de Control pipeline_deploy_parameter feature #69 Back to Project Status Changes Console Output View as plain text Edit Build Information Parámetros Git Build Data Coverage Report Flake8 Warnings Pylint Warnings Thread Dump Pause/resume Replay Pipeline Steps Workspaces Previous Build Salida de consola Started by user Silvia Alejandra Gonzalez 02:55:48 Connecting to https://api.github.com using silviaalejandra/****** (token git) Obtained pipelines/Jenkinsfile from b733690b81c615ab98dbf3892685313b287af2d8 [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/ipeline_deploy_parameter_feature [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_feature # 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/feature:refs/remotes/origin/feature # 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/feature:refs/remotes/origin/feature # timeout=10 Avoid second fetch Checking out Revision b733690b81c615ab98dbf3892685313b287af2d8 (feature) > git config core.sparsecheckout # timeout=10 > git checkout -f b733690b81c615ab98dbf3892685313b287af2d8 # timeout=10 Commit message: "test de integracion Translate3" > git rev-list --no-walk e95dab85d618341db81a3ca5d128d3305a8f5be0 # 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_feature/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_feature/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 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 colorama>=0.4.1 Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) 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 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 pycodestyle<2.9.0,>=2.8.0 Using cached pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB) Collecting mccabe<0.7.0,>=0.6.0 Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB) Collecting zipp>=0.5 Using cached zipp-3.7.0-py3-none-any.whl (5.3 kB) Collecting typing-extensions>=3.6.4 Using cached typing_extensions-4.0.1-py3-none-any.whl (22 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: 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: 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: zipp>=0.5 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata<4.3->flake8->flake8-polyfill) (3.7.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) Installing collected packages: flake8-polyfill Successfully installed flake8-polyfill-1.0.2 + python -m pip install bandit Collecting bandit Using cached bandit-1.7.1-py3-none-any.whl (113 kB) Collecting stevedore>=1.20.0 Using cached stevedore-3.5.0-py3-none-any.whl (49 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) 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 gitdb<5,>=4.0.1 Using cached gitdb-4.0.9-py3-none-any.whl (63 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 pbr!=2.1.0,>=2.0.0 Using cached pbr-5.8.0-py2.py3-none-any.whl (112 kB) 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.1 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 pluggy<2.0,>=0.12 Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB) Collecting py>=1.8.2 Using cached py-1.11.0-py2.py3-none-any.whl (98 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 attrs>=19.2.0 Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB) Collecting toml Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB) Collecting packaging Using cached packaging-21.3-py3-none-any.whl (40 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.6-py3-none-any.whl (97 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.6 pytest-6.2.5 toml-0.10.2 + python -m pip install boto3 Collecting boto3 Using cached boto3-1.20.40-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.40 Using cached botocore-1.23.40-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.40->boto3) (1.16.0) Installing collected packages: urllib3, python-dateutil, jmespath, botocore, s3transfer, boto3 Successfully installed boto3-1.20.40 botocore-1.23.40 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-2.3.2-py2.py3-none-any.whl (1.5 MB) 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: importlib-metadata in ./todo-list-aws/lib/python3.7/site-packages (from moto) (4.2.0) Collecting cryptography>=3.3.1 Using cached cryptography-36.0.1-cp36-abi3-manylinux_2_24_x86_64.whl (3.6 MB) Collecting responses>=0.9.0 Using cached responses-0.17.0-py2.py3-none-any.whl (38 kB) Collecting Jinja2>=2.10.1 Using cached Jinja2-3.0.3-py3-none-any.whl (133 kB) Requirement already satisfied: boto3>=1.9.201 in ./todo-list-aws/lib/python3.7/site-packages (from moto) (1.20.40) Collecting werkzeug Using cached Werkzeug-2.0.2-py3-none-any.whl (288 kB) Collecting xmltodict Using cached xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB) Collecting pytz Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB) Collecting requests>=2.5 Using cached requests-2.27.1-py2.py3-none-any.whl (63 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: botocore>=1.12.201 in ./todo-list-aws/lib/python3.7/site-packages (from moto) (1.23.40) 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: 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: 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 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) Collecting charset-normalizer~=2.0.0 Using cached charset_normalizer-2.0.10-py3-none-any.whl (39 kB) Requirement already satisfied: typing-extensions>=3.6.4 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata->moto) (4.0.1) Requirement already satisfied: zipp>=0.5 in ./todo-list-aws/lib/python3.7/site-packages (from importlib-metadata->moto) (3.7.0) 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-2.3.2 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_feature [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] echo Static program analysis: [Pipeline] sh + bash pipelines/PIPELINE-FULL-staging/static_test.sh ++ radon cc src -nc ++ wc -l + 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_feature + PYTHONPATH=:/var/lib/jenkins/workspace/ipeline_deploy_parameter_feature + echo 'PYTHONPATH: :/var/lib/jenkins/workspace/ipeline_deploy_parameter_feature' PYTHONPATH: :/var/lib/jenkins/workspace/ipeline_deploy_parameter_feature + export DYNAMODB_TABLE=todoUnitTestsTable + DYNAMODB_TABLE=todoUnitTestsTable + python test/unit/TestToDo.py .......... ---------------------------------------------------------------------- Ran 10 tests in 1.020s OK --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_delete_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "b3988af6-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733776.4886143", "updatedAt": "1642733776.4886143"}'} Id item:b3988af6-7a65-11ec-9ea9-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 End: test_delete_todo_error --------------------- 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": "b3988af7-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733776.6792479", "updatedAt": "1642733776.6792479"}'} Id item:b3988af7-7a65-11ec-9ea9-129aa2831209 Result getItem:{'Item': {'id': 'b3988af7-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1642733776.6792479', 'updatedAt': '1642733776.6792479'}, 'ResponseMetadata': {'RequestId': '226RYPEKWVR13XXQNYUIPUQ2WCFYKDBY1RG6BD5GMYB5ZR3DDA04', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': '226RYPEKWVR13XXQNYUIPUQ2WCFYKDBY1RG6BD5GMYB5ZR3DDA04', 'x-amz-crc32': '2808627044'}, 'RetryAttempts': 0}} Response Get:{'id': 'b3988af7-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1642733776.6792479', 'updatedAt': '1642733776.6792479'} 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 End: test_get_todo_error --------------------- 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': 'b3988af8-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1642733776.9254248', 'updatedAt': '1642733776.9254248'}] 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": "b3988af9-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733777.0056438", "updatedAt": "1642733777.0056438"}'} 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 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_update_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "b3988b00-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733777.3118243", "updatedAt": "1642733777.3118243"}'} Id item:b3988b00-7a65-11ec-9ea9-129aa2831209 Result Update Item:{'id': 'b3988b00-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender más cosas que DevOps y Cloud en la UNIR', 'checked': 'false', 'createdAt': '1642733777.3118243', 'updatedAt': Decimal('1642733777315')} End: test_update_todo --------------------- Start: tearDown 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": "b3988b01-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733777.4034286", "updatedAt": "1642733777.4034286"}'} 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_feature/todo-list-aws/lib/python3.7/site-packages Requires: Required-by: + coverage run --include=src/todoList.py,src/translate.py test/unit/TestToDo.py .......... ---------------------------------------------------------------------- Ran 10 tests in 1.266s OK --------------------- Start: setUp Creating Table with name:todoUnitTestsTable End: setUp --------------------- Start: test_delete_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "b507230c-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733778.9001808", "updatedAt": "1642733778.9001808"}'} Id item:b507230c-7a65-11ec-9ea9-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 End: test_delete_todo_error --------------------- 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": "b507230d-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733779.1369262", "updatedAt": "1642733779.1369262"}'} Id item:b507230d-7a65-11ec-9ea9-129aa2831209 Result getItem:{'Item': {'id': 'b507230d-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1642733779.1369262', 'updatedAt': '1642733779.1369262'}, 'ResponseMetadata': {'RequestId': 'S8J7KXI9JXRY2LHVW36Z5TQRBXLYQZRGUBFNIHUA83EL5695WP4R', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': 'S8J7KXI9JXRY2LHVW36Z5TQRBXLYQZRGUBFNIHUA83EL5695WP4R', 'x-amz-crc32': '2830161024'}, 'RetryAttempts': 0}} Response Get:{'id': 'b507230d-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1642733779.1369262', 'updatedAt': '1642733779.1369262'} 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 End: test_get_todo_error --------------------- 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': 'b507230e-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender DevOps y Cloud en la UNIR', 'checked': False, 'createdAt': '1642733779.4282472', 'updatedAt': '1642733779.4282472'}] 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": "b507230f-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733779.5325258", "updatedAt": "1642733779.5325258"}'} 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 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_update_todo Table name:todoUnitTestsTable Response PutItem{'statusCode': 200, 'body': '{"id": "b5072316-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733779.9100015", "updatedAt": "1642733779.9100015"}'} Id item:b5072316-7a65-11ec-9ea9-129aa2831209 Result Update Item:{'id': 'b5072316-7a65-11ec-9ea9-129aa2831209', 'text': 'Aprender más cosas que DevOps y Cloud en la UNIR', 'checked': 'false', 'createdAt': '1642733779.9100015', 'updatedAt': Decimal('1642733779914')} End: test_update_todo --------------------- Start: tearDown 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": "b5b14242-7a65-11ec-9ea9-129aa2831209", "text": "Aprender DevOps y Cloud en la UNIR", "checked": false, "createdAt": "1642733780.021979", "updatedAt": "1642733780.021979"}'} 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 54 6 89% 33-34, 69-70, 114-115 + 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: 0.0%. 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@1f19fb2' [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_feature' 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 (feature) [Flake8] Using reference build 'pipeline_deploy_parameter/feature #66' 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/feature #69'. [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_feature' 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 (feature) [Pylint] Using reference build 'pipeline_deploy_parameter/feature #66' 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/feature #69'. [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-21 02:56:22 Loading policies from IAM... 2022-01-21 02:56:22 Finished loading policies from IAM. /var/lib/jenkins/workspace/ipeline_deploy_parameter_feature/template.yaml is a valid SAM Template + sam build Building codeuri: /var/lib/jenkins/workspace/ipeline_deploy_parameter_feature/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 + du -hs CHANGELOG.md README.md bandit.out coverage.xml flake8.out localEnvironment.json logs pipelines pytest.ini samconfig.toml src template.yaml test todo-list-aws + sort -h 0 bandit.out 0 flake8.out 4.0K CHANGELOG.md 4.0K coverage.xml 4.0K localEnvironment.json 4.0K pytest.ini 4.0K samconfig.toml 8.0K README.md 8.0K template.yaml 36K test 52K src 64K pipelines 408K logs 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_feature, configfile: pytest.ini collected 6 items test/integration/todoApiTest.py --------------------------------------- Starting - integration test Add TODO Response Add Todo: {"id": "c0c3a26a-7a65-11ec-8725-b22f520568f9", "text": "Integration text example", "checked": false, "createdAt": "1642733798.4577374", "updatedAt": "1642733798.4577374"} ID todo:c0c3a26a-7a65-11ec-8725-b22f520568f9 End - integration test Add TODO .--------------------------------------- Starting - integration test Delete TODO Response Add todo: {"id": "c12b8074-7a65-11ec-8725-b22f520568f9", "text": "Integration text example - Initial", "checked": false, "createdAt": "1642733799.2780292", "updatedAt": "1642733799.2780292"} ID todo:c12b8074-7a65-11ec-8725-b22f520568f9 Response Delete Todo: Response Get Todo https://uq6tiolufe.execute-api.us-east-1.amazonaws.com/Prod/todos/c12b8074-7a65-11ec-8725-b22f520568f9: End - integration test Delete TODO .--------------------------------------- Starting - integration test Get TODO Response Add Todo: {'statusCode': 200, 'body': '{"id": "c2b89a08-7a65-11ec-8725-b22f520568f9", "text": "Integration text example - GET", "checked": false, "createdAt": "1642733801.8804796", "updatedAt": "1642733801.8804796"}'} ID todo:c2b89a08-7a65-11ec-8725-b22f520568f9 Response Get Todo: {'checked': False, 'createdAt': '1642733801.8804796', 'text': 'Integration text example - GET', 'id': 'c2b89a08-7a65-11ec-8725-b22f520568f9', 'updatedAt': '1642733801.8804796'} End - integration test Get TODO .--------------------------------------- Starting - integration test List TODO Response Add Todo: {'statusCode': 200, 'body': '{"id": "c344b696-7a65-11ec-8725-b22f520568f9", "text": "Integration text example", "checked": false, "createdAt": "1642733802.7987018", "updatedAt": "1642733802.7987018"}'} ID todo:c344b696-7a65-11ec-8725-b22f520568f9 Response List Todo:[{'checked': False, 'createdAt': '1642560684.347229', 'text': 'aprendiendo a traducir de español', 'id': 'b0a1603c-78d2-11ec-b7fa-ba57f2cb226d', 'updatedAt': '1642560684.347229'}, {'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': '1642560648.4838197', 'text': 'Learn Serverless test 2', 'id': '9b565aa2-78d2-11ec-b7fa-ba57f2cb226d', 'updatedAt': '1642560648.4838197'}, {'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': '1642733425.2187793', 'text': 'Integration text example - TRADUCIR', 'id': 'e23695fc-7a64-11ec-a3c2-be62e62cd423', 'updatedAt': '1642733425.2187793'}] End - integration test List TODO .--------------------------------------- Starting - integration test Translate TODO Response Add Todo: {'statusCode': 200, 'body': '{"id": "c4c88a6a-7a65-11ec-8725-b22f520568f9", "text": "Integration text example - TRADUCIR", "checked": false, "createdAt": "1642733805.3403575", "updatedAt": "1642733805.3403575"}'} ID todo:c4c88a6a-7a65-11ec-8725-b22f520568f9 Response Translate Todo: {'id': 'c4c88a6a-7a65-11ec-8725-b22f520568f9', 'text': 'Esempio di testo di integrazione - TRANSL', 'checked': False} End - integration test Translate TODO .--------------------------------------- Starting - integration test Update TODO Response Add todo: {"id": "c6488d5e-7a65-11ec-8725-b22f520568f9", "text": "Integration text example - Initial", "checked": false, "createdAt": "1642733807.800881", "updatedAt": "1642733807.800881"} ID todo:c6488d5e-7a65-11ec-8725-b22f520568f9 Response Update todo: {'checked': 'true', 'createdAt': '1642733807.800881', 'text': 'Integration text example - Modified', 'id': 'c6488d5e-7a65-11ec-8725-b22f520568f9', 'updatedAt': 1642733809870} Response Get Todo: {'checked': 'true', 'createdAt': '1642733807.800881', 'text': 'Integration text example - Modified', 'id': 'c6488d5e-7a65-11ec-8725-b22f520568f9', 'updatedAt': 1642733809870} End - integration test Update TODO . ============================== 6 passed in 14.39s ============================== [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