Build: #5 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Build log

The build generated 804 lines of output. Download or view full build log

16-Oct-2015 16:55:15 Build FLARECAST - hmiservice - Default Job #5 (INFRA-HMI-JOB1-5) started building on agent Default Agent
16-Oct-2015 16:55:15 Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1
16-Oct-2015 16:55:15 Executing build FLARECAST - hmiservice - Default Job #5 (INFRA-HMI-JOB1-5)
16-Oct-2015 16:55:15 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
16-Oct-2015 16:55:15 Updating source code to revision: 12edc6f71fb1de9de3323ba26967800fb9524450
16-Oct-2015 16:55:15 Fetching 'refs/heads/master' from 'ssh://git@localhost:7999/dl/hmiservice.git'.
16-Oct-2015 16:55:15 Warning: Permanently added '[127.0.0.1]:44023' (RSA) to the list of known hosts.
16-Oct-2015 16:55:17 Checking out revision 12edc6f71fb1de9de3323ba26967800fb9524450.
16-Oct-2015 16:55:17 Previous HEAD position was fb8c12b... changed creation of docker client to be platform independent
16-Oct-2015 16:55:17 HEAD is now at 12edc6f... updated readme
16-Oct-2015 16:55:17 Updated source code to revision: 12edc6f71fb1de9de3323ba26967800fb9524450
16-Oct-2015 16:55:17 Finished task 'Checkout Default Repository' with result: Success
16-Oct-2015 16:55:17 Running pre-build action: Sauce OnDemand Build Configurator
16-Oct-2015 16:55:17 Running pre-build action: Clover Grails PreBuild Action
16-Oct-2015 16:55:17 Running pre-build action: VCS Version Collector
16-Oct-2015 16:55:17 Starting task 'Script' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
16-Oct-2015 16:55:17
Beginning to execute external process for build 'FLARECAST - hmiservice - Default Job #5 (INFRA-HMI-JOB1-5)'
... running command line:
/bin/sh ./build.sh
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1
... using extra environment variables:
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_planRepository_type=stash-rep
bamboo_shortPlanName=hmiservice
bamboo_planKey=INFRA-HMI
bamboo_repository_2785290_name=hmiservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
bamboo_planRepository_1_branchName=master
bamboo_repository_2785290_revision_number=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_shortPlanKey=HMI
bamboo_shortJobKey=JOB1
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1
bamboo_planRepository_1_branch=master
bamboo_repository_revision_number=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_repository_2785290_git_username=
bamboo_planName=FLARECAST - hmiservice
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-HMI-JOB1-5
bamboo_planRepository_revision=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_buildResultKey=INFRA-HMI-JOB1-5
bamboo_repository_git_username=
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildKey=INFRA-HMI-JOB1
bamboo_repository_previous_revision_number=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_buildPlanName=FLARECAST - hmiservice - Default Job
bamboo_repository_name=hmiservice
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-HMI-JOB1-5
bamboo_repository_git_branch=master
bamboo_planRepository_1_revision=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_1_previousRevision=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_repository_2785290_branch_name=master
bamboo_planRepository_1_name=hmiservice
bamboo_planRepository_branch=master
bamboo_planRepository_username=
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_shortJobName=Default Job
bamboo_repository_branch_name=master
bamboo_planRepository_previousRevision=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_agentId=131073
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
bamboo_repository_2785290_git_branch=master
bamboo_planRepository_1_username=
bamboo_planRepository_name=hmiservice
bamboo_buildNumber=5
bamboo_repository_2785290_previous_revision_number=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_buildTimeStamp=2015-10-16T16:55:15.395+02:00
bamboo_repository_2785290_git_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
16-Oct-2015 16:55:17 Sending build context to Docker daemon 125.4 kB
16-Oct-2015 16:55:17 Sending build context to Docker daemon 125.4 kB
16-Oct-2015 16:55:17
16-Oct-2015 16:55:17 Step 0 : FROM flarecast/python-base
16-Oct-2015 16:55:17 ---> 11f0541053d5
16-Oct-2015 16:55:17 Step 1 : MAINTAINER i4Ds
16-Oct-2015 16:55:17 ---> Using cache
16-Oct-2015 16:55:17 ---> c79c30ece8bd
16-Oct-2015 16:55:17 Step 2 : ADD https://github.com/SITools2/pySitools2_1.0/tarball/v1.0.1 ./pysitools.tar.gz
16-Oct-2015 16:55:18
16-Oct-2015 16:55:19 ---> f187a086b659
16-Oct-2015 16:55:20 Removing intermediate container 4d81b99ec012
16-Oct-2015 16:55:20 Step 3 : RUN tar -xf pysitools.tar.gz
16-Oct-2015 16:55:20 ---> Running in 5a3935089c20
16-Oct-2015 16:55:21 ---> 823fcb72191e
16-Oct-2015 16:55:21 Removing intermediate container 5a3935089c20
16-Oct-2015 16:55:21 Step 4 : RUN pip install simplejson
16-Oct-2015 16:55:21 ---> Running in b36ead1d539e
16-Oct-2015 16:55:22 Collecting simplejson
16-Oct-2015 16:55:22   Downloading simplejson-3.8.0.tar.gz (75kB)
16-Oct-2015 16:55:23 Building wheels for collected packages: simplejson
16-Oct-2015 16:55:23   Running setup.py bdist_wheel for simplejson
16-Oct-2015 16:55:25   Stored in directory: /root/.cache/pip/wheels/d6/cd/cc/ebf794f523ba74d9737f4447fccfb9bc6321539839966b8a56
16-Oct-2015 16:55:25 Successfully built simplejson
16-Oct-2015 16:55:25 Installing collected packages: simplejson
16-Oct-2015 16:55:25 Successfully installed simplejson-3.8.0
16-Oct-2015 16:55:26 ---> fcf193b3dfda
16-Oct-2015 16:55:26 Removing intermediate container b36ead1d539e
16-Oct-2015 16:55:26 Step 5 : RUN cd SITools2-pySitools2_1.0-8951ebe && python setup.py install -q
16-Oct-2015 16:55:26 ---> Running in 5c3c55cfbc84
16-Oct-2015 16:55:27 running install
16-Oct-2015 16:55:27 running bdist_egg
16-Oct-2015 16:55:27 running egg_info
16-Oct-2015 16:55:27 creating pySitools2_1.0.egg-info
16-Oct-2015 16:55:27 writing requirements to pySitools2_1.0.egg-info/requires.txt
16-Oct-2015 16:55:27 writing pySitools2_1.0.egg-info/PKG-INFO
16-Oct-2015 16:55:27 writing top-level names to pySitools2_1.0.egg-info/top_level.txt
16-Oct-2015 16:55:27 writing dependency_links to pySitools2_1.0.egg-info/dependency_links.txt
16-Oct-2015 16:55:27 writing manifest file 'pySitools2_1.0.egg-info/SOURCES.txt'
16-Oct-2015 16:55:27 reading manifest file 'pySitools2_1.0.egg-info/SOURCES.txt'
16-Oct-2015 16:55:27 writing manifest file 'pySitools2_1.0.egg-info/SOURCES.txt'
16-Oct-2015 16:55:27 installing library code to build/bdist.linux-x86_64/egg
16-Oct-2015 16:55:27 running install_lib
16-Oct-2015 16:55:27 running build_py
16-Oct-2015 16:55:27 creating build
16-Oct-2015 16:55:27 creating build/lib
16-Oct-2015 16:55:27 creating build/lib/tests
16-Oct-2015 16:55:27 copying tests/testSitools2Core.py -> build/lib/tests
16-Oct-2015 16:55:27 copying tests/__init__.py -> build/lib/tests
16-Oct-2015 16:55:27 copying tests/testGaia.py -> build/lib/tests
16-Oct-2015 16:55:27 copying tests/testMedia.py -> build/lib/tests
16-Oct-2015 16:55:27 creating build/lib/examples
16-Oct-2015 16:55:27 copying examples/example_media.py -> build/lib/examples
16-Oct-2015 16:55:27 copying examples/__init__.py -> build/lib/examples
16-Oct-2015 16:55:27 copying examples/example_gaia.py -> build/lib/examples
16-Oct-2015 16:55:27 creating build/lib/sitools2
16-Oct-2015 16:55:27 copying sitools2/__init__.py -> build/lib/sitools2
16-Oct-2015 16:55:27 creating build/lib/sitools2/core
16-Oct-2015 16:55:27 copying sitools2/core/__init__.py -> build/lib/sitools2/core
16-Oct-2015 16:55:27 copying sitools2/core/pySitools2.py -> build/lib/sitools2/core
16-Oct-2015 16:55:27 creating build/lib/sitools2/clients
16-Oct-2015 16:55:27 copying sitools2/clients/gaia_client_medoc.py -> build/lib/sitools2/clients
16-Oct-2015 16:55:27 copying sitools2/clients/sdo_client_medoc.py -> build/lib/sitools2/clients
16-Oct-2015 16:55:27 copying sitools2/clients/__init__.py -> build/lib/sitools2/clients
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64/egg
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64/egg/tests
16-Oct-2015 16:55:27 copying build/lib/tests/testSitools2Core.py -> build/bdist.linux-x86_64/egg/tests
16-Oct-2015 16:55:27 copying build/lib/tests/__init__.py -> build/bdist.linux-x86_64/egg/tests
16-Oct-2015 16:55:27 copying build/lib/tests/testGaia.py -> build/bdist.linux-x86_64/egg/tests
16-Oct-2015 16:55:27 copying build/lib/tests/testMedia.py -> build/bdist.linux-x86_64/egg/tests
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64/egg/examples
16-Oct-2015 16:55:27 copying build/lib/examples/example_media.py -> build/bdist.linux-x86_64/egg/examples
16-Oct-2015 16:55:27 copying build/lib/examples/__init__.py -> build/bdist.linux-x86_64/egg/examples
16-Oct-2015 16:55:27 copying build/lib/examples/example_gaia.py -> build/bdist.linux-x86_64/egg/examples
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64/egg/sitools2
16-Oct-2015 16:55:27 copying build/lib/sitools2/__init__.py -> build/bdist.linux-x86_64/egg/sitools2
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64/egg/sitools2/core
16-Oct-2015 16:55:27 copying build/lib/sitools2/core/__init__.py -> build/bdist.linux-x86_64/egg/sitools2/core
16-Oct-2015 16:55:27 copying build/lib/sitools2/core/pySitools2.py -> build/bdist.linux-x86_64/egg/sitools2/core
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64/egg/sitools2/clients
16-Oct-2015 16:55:27 copying build/lib/sitools2/clients/gaia_client_medoc.py -> build/bdist.linux-x86_64/egg/sitools2/clients
16-Oct-2015 16:55:27 copying build/lib/sitools2/clients/sdo_client_medoc.py -> build/bdist.linux-x86_64/egg/sitools2/clients
16-Oct-2015 16:55:27 copying build/lib/sitools2/clients/__init__.py -> build/bdist.linux-x86_64/egg/sitools2/clients
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/tests/testSitools2Core.py to testSitools2Core.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/tests/__init__.py to __init__.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/tests/testGaia.py to testGaia.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/tests/testMedia.py to testMedia.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/examples/example_media.py to example_media.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/examples/__init__.py to __init__.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/examples/example_gaia.py to example_gaia.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/sitools2/__init__.py to __init__.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/sitools2/core/__init__.py to __init__.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/sitools2/core/pySitools2.py to pySitools2.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/sitools2/clients/gaia_client_medoc.py to gaia_client_medoc.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/sitools2/clients/sdo_client_medoc.py to sdo_client_medoc.pyc
16-Oct-2015 16:55:27 byte-compiling build/bdist.linux-x86_64/egg/sitools2/clients/__init__.py to __init__.pyc
16-Oct-2015 16:55:27 creating build/bdist.linux-x86_64/egg/EGG-INFO
16-Oct-2015 16:55:27 copying pySitools2_1.0.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
16-Oct-2015 16:55:27 copying pySitools2_1.0.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
16-Oct-2015 16:55:27 copying pySitools2_1.0.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
16-Oct-2015 16:55:27 copying pySitools2_1.0.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
16-Oct-2015 16:55:27 copying pySitools2_1.0.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
16-Oct-2015 16:55:27 zip_safe flag not set; analyzing archive contents...
16-Oct-2015 16:55:27 creating dist
16-Oct-2015 16:55:27 creating 'dist/pySitools2_1.0-0.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
16-Oct-2015 16:55:27 removing 'build/bdist.linux-x86_64/egg' (and everything under it)
16-Oct-2015 16:55:27 Processing pySitools2_1.0-0.1-py2.7.egg
16-Oct-2015 16:55:27 Copying pySitools2_1.0-0.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
16-Oct-2015 16:55:27 Adding pySitools2-1.0 0.1 to easy-install.pth file
16-Oct-2015 16:55:27
16-Oct-2015 16:55:27 Installed /usr/local/lib/python2.7/site-packages/pySitools2_1.0-0.1-py2.7.egg
16-Oct-2015 16:55:27 Processing dependencies for pySitools2-1.0==0.1
16-Oct-2015 16:55:27 Searching for simplejson==3.8.0
16-Oct-2015 16:55:27 Best match: simplejson 3.8.0
16-Oct-2015 16:55:27 Adding simplejson 3.8.0 to easy-install.pth file
16-Oct-2015 16:55:27
16-Oct-2015 16:55:27 Using /usr/local/lib/python2.7/site-packages
16-Oct-2015 16:55:27 Finished processing dependencies for pySitools2-1.0==0.1
16-Oct-2015 16:55:27 ---> 7a9fd9cbfbae
16-Oct-2015 16:55:27 Removing intermediate container 5c3c55cfbc84
16-Oct-2015 16:55:27 Step 6 : COPY ./hmiservice ./hmiservice
16-Oct-2015 16:55:28 ---> b8cf892e4e4d
16-Oct-2015 16:55:28 Removing intermediate container 8dfdcbf13f97
16-Oct-2015 16:55:28 Step 7 : COPY ./main.py ./main.py
16-Oct-2015 16:55:29 ---> b35f0a2c4e5d
16-Oct-2015 16:55:29 Removing intermediate container c0046ae347bb
16-Oct-2015 16:55:29 Step 8 : LABEL eu.flarecast.type "system"
16-Oct-2015 16:55:29 ---> Running in 67f8e6d84afd
16-Oct-2015 16:55:30 ---> 7e0e129cc908
16-Oct-2015 16:55:30 Removing intermediate container 67f8e6d84afd
16-Oct-2015 16:55:30 Step 9 : LABEL eu.flarecast.name "hmiservice"
16-Oct-2015 16:55:30 ---> Running in 62ff27fb99e1
16-Oct-2015 16:55:30 ---> 3b1c929b910f
16-Oct-2015 16:55:30 Removing intermediate container 62ff27fb99e1
16-Oct-2015 16:55:30 Step 10 : CMD python -B -u main.py
16-Oct-2015 16:55:31 ---> Running in f6422cc3c96b
16-Oct-2015 16:55:31 ---> 5e098e7765e8
16-Oct-2015 16:55:31 Removing intermediate container f6422cc3c96b
16-Oct-2015 16:55:31 Successfully built 5e098e7765e8
16-Oct-2015 16:55:31 Finished task 'Script' with result: Success
16-Oct-2015 16:55:31 Starting task 'Run pytest' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
16-Oct-2015 16:55:31
Beginning to execute external process for build 'FLARECAST - hmiservice - Default Job #5 (INFRA-HMI-JOB1-5)'
... running command line:
/usr/local/bin/py.test --junitxml ../results.xml api_tests.py
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1/tests
... using extra environment variables:
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_planRepository_type=stash-rep
bamboo_shortPlanName=hmiservice
bamboo_planKey=INFRA-HMI
bamboo_repository_2785290_name=hmiservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
bamboo_planRepository_1_branchName=master
bamboo_repository_2785290_revision_number=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_shortPlanKey=HMI
bamboo_shortJobKey=JOB1
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1
bamboo_planRepository_1_branch=master
bamboo_repository_revision_number=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_repository_2785290_git_username=
bamboo_planName=FLARECAST - hmiservice
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-HMI-JOB1-5
bamboo_planRepository_revision=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_buildResultKey=INFRA-HMI-JOB1-5
bamboo_repository_git_username=
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildKey=INFRA-HMI-JOB1
bamboo_repository_previous_revision_number=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_buildPlanName=FLARECAST - hmiservice - Default Job
bamboo_repository_name=hmiservice
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-HMI-JOB1-5
bamboo_repository_git_branch=master
bamboo_planRepository_1_revision=12edc6f71fb1de9de3323ba26967800fb9524450
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_1_previousRevision=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_repository_2785290_branch_name=master
bamboo_planRepository_1_name=hmiservice
bamboo_planRepository_branch=master
bamboo_planRepository_username=
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_shortJobName=Default Job
bamboo_repository_branch_name=master
bamboo_planRepository_previousRevision=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_agentId=131073
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
bamboo_repository_2785290_git_branch=master
bamboo_planRepository_1_username=
bamboo_planRepository_name=hmiservice
bamboo_buildNumber=5
bamboo_repository_2785290_previous_revision_number=fb8c12bf50b60e5c506e97f50484335091402604
bamboo_buildTimeStamp=2015-10-16T16:55:15.395+02:00
bamboo_repository_2785290_git_repositoryUrl=ssh://git@localhost:7999/dl/hmiservice.git
16-Oct-2015 16:55:31 ============================= test session starts ==============================
16-Oct-2015 16:55:31 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
16-Oct-2015 16:55:31 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1/tests, inifile:
16-Oct-2015 16:55:31 plugins: pep8-1.0.6
16-Oct-2015 16:55:32 collected 5 items
16-Oct-2015 16:55:32
16-Oct-2015 16:55:57 api_tests.py FFFFF
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 =================================== FAILURES ===================================
16-Oct-2015 16:55:57 __________________________ TestEnpoints.test_01_root ___________________________
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <tests.api_tests.TestEnpoints testMethod=test_01_root>
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def test_01_root(self):
16-Oct-2015 16:55:57         # no parameters
16-Oct-2015 16:55:57 >       resp = requests.get(base_address)
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 api_tests.py:132:
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:69: in get
16-Oct-2015 16:55:57     return request('get', url, params=params, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:50: in request
16-Oct-2015 16:55:57     response = session.request(method=method, url=url, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:471: in request
16-Oct-2015 16:55:57     resp = self.send(prep, **send_kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:579: in send
16-Oct-2015 16:55:57     r = adapter.send(request, **kwargs)
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <requests.adapters.HTTPAdapter object at 0x7f443adb9ad0>
16-Oct-2015 16:55:57 request = <PreparedRequest [GET]>, stream = False
16-Oct-2015 16:55:57 timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f443a751210>
16-Oct-2015 16:55:57 verify = True, cert = None, proxies = OrderedDict()
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):
16-Oct-2015 16:55:57         """Sends PreparedRequest object. Returns Response object.
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
16-Oct-2015 16:55:57             :param stream: (optional) Whether to stream the request content.
16-Oct-2015 16:55:57             :param timeout: (optional) How long to wait for the server to send
16-Oct-2015 16:55:57                 data before giving up, as a float, or a :ref:`(connect timeout,
16-Oct-2015 16:55:57                 read timeout) <timeouts>` tuple.
16-Oct-2015 16:55:57             :type timeout: float or tuple
16-Oct-2015 16:55:57             :param verify: (optional) Whether to verify SSL certificates.
16-Oct-2015 16:55:57             :param cert: (optional) Any user-provided SSL certificate to be trusted.
16-Oct-2015 16:55:57             :param proxies: (optional) The proxies dictionary to apply to the request.
16-Oct-2015 16:55:57             """
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         conn = self.get_connection(request.url, proxies)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         self.cert_verify(conn, request.url, verify, cert)
16-Oct-2015 16:55:57         url = self.request_url(request, proxies)
16-Oct-2015 16:55:57         self.add_headers(request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         chunked = not (request.body is None or 'Content-Length' in request.headers)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         if isinstance(timeout, tuple):
16-Oct-2015 16:55:57             try:
16-Oct-2015 16:55:57                 connect, read = timeout
16-Oct-2015 16:55:57                 timeout = TimeoutSauce(connect=connect, read=read)
16-Oct-2015 16:55:57             except ValueError as e:
16-Oct-2015 16:55:57                 # this may raise a string formatting error.
16-Oct-2015 16:55:57                 err = ("Invalid timeout {0}. Pass a (connect, read) "
16-Oct-2015 16:55:57                        "timeout tuple, or a single float to set "
16-Oct-2015 16:55:57                        "both timeouts to the same value".format(timeout))
16-Oct-2015 16:55:57                 raise ValueError(err)
16-Oct-2015 16:55:57         else:
16-Oct-2015 16:55:57             timeout = TimeoutSauce(connect=timeout, read=timeout)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         try:
16-Oct-2015 16:55:57             if not chunked:
16-Oct-2015 16:55:57                 resp = conn.urlopen(
16-Oct-2015 16:55:57                     method=request.method,
16-Oct-2015 16:55:57                     url=url,
16-Oct-2015 16:55:57                     body=request.body,
16-Oct-2015 16:55:57                     headers=request.headers,
16-Oct-2015 16:55:57                     redirect=False,
16-Oct-2015 16:55:57                     assert_same_host=False,
16-Oct-2015 16:55:57                     preload_content=False,
16-Oct-2015 16:55:57                     decode_content=False,
16-Oct-2015 16:55:57                     retries=self.max_retries,
16-Oct-2015 16:55:57                     timeout=timeout
16-Oct-2015 16:55:57                 )
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             # Send the request.
16-Oct-2015 16:55:57             else:
16-Oct-2015 16:55:57                 if hasattr(conn, 'proxy_pool'):
16-Oct-2015 16:55:57                     conn = conn.proxy_pool
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 try:
16-Oct-2015 16:55:57                     low_conn.putrequest(request.method,
16-Oct-2015 16:55:57                                         url,
16-Oct-2015 16:55:57                                         skip_accept_encoding=True)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for header, value in request.headers.items():
16-Oct-2015 16:55:57                         low_conn.putheader(header, value)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     low_conn.endheaders()
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for i in request.body:
16-Oct-2015 16:55:57                         low_conn.send(hex(len(i))[2:].encode('utf-8'))
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                         low_conn.send(i)
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                     low_conn.send(b'0\r\n\r\n')
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     r = low_conn.getresponse()
16-Oct-2015 16:55:57                     resp = HTTPResponse.from_httplib(
16-Oct-2015 16:55:57                         r,
16-Oct-2015 16:55:57                         pool=conn,
16-Oct-2015 16:55:57                         connection=low_conn,
16-Oct-2015 16:55:57                         preload_content=False,
16-Oct-2015 16:55:57                         decode_content=False
16-Oct-2015 16:55:57                     )
16-Oct-2015 16:55:57                 except:
16-Oct-2015 16:55:57                     # If we hit any problems here, clean up the connection.
16-Oct-2015 16:55:57                     # Then, reraise so that we can handle the actual exception.
16-Oct-2015 16:55:57                     low_conn.close()
16-Oct-2015 16:55:57                     raise
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except (ProtocolError, socket.error) as err:
16-Oct-2015 16:55:57             raise ConnectionError(err, request=request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except MaxRetryError as e:
16-Oct-2015 16:55:57             if isinstance(e.reason, ConnectTimeoutError):
16-Oct-2015 16:55:57 >               raise ConnectTimeout(e, request=request)
16-Oct-2015 16:55:57 E               ConnectTimeout: HTTPConnectionPool(host='localhost', port=8001): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f443a751550>: Failed to establish a new connection: [Errno 111] Connection refused',))
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/adapters.py:415: ConnectTimeout
16-Oct-2015 16:55:57 _________________________ TestEnpoints.test_03_hmi_45 __________________________
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <tests.api_tests.TestEnpoints testMethod=test_03_hmi_45>
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def test_03_hmi_45(self):
16-Oct-2015 16:55:57 >       self.query("45")
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 api_tests.py:143:
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57 api_tests.py:74: in query
16-Oct-2015 16:55:57     resp = requests.get(request_url)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:69: in get
16-Oct-2015 16:55:57     return request('get', url, params=params, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:50: in request
16-Oct-2015 16:55:57     response = session.request(method=method, url=url, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:471: in request
16-Oct-2015 16:55:57     resp = self.send(prep, **send_kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:579: in send
16-Oct-2015 16:55:57     r = adapter.send(request, **kwargs)
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <requests.adapters.HTTPAdapter object at 0x7f443a6a6150>
16-Oct-2015 16:55:57 request = <PreparedRequest [GET]>, stream = False
16-Oct-2015 16:55:57 timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f443a6a6590>
16-Oct-2015 16:55:57 verify = True, cert = None, proxies = OrderedDict()
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):
16-Oct-2015 16:55:57         """Sends PreparedRequest object. Returns Response object.
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
16-Oct-2015 16:55:57             :param stream: (optional) Whether to stream the request content.
16-Oct-2015 16:55:57             :param timeout: (optional) How long to wait for the server to send
16-Oct-2015 16:55:57                 data before giving up, as a float, or a :ref:`(connect timeout,
16-Oct-2015 16:55:57                 read timeout) <timeouts>` tuple.
16-Oct-2015 16:55:57             :type timeout: float or tuple
16-Oct-2015 16:55:57             :param verify: (optional) Whether to verify SSL certificates.
16-Oct-2015 16:55:57             :param cert: (optional) Any user-provided SSL certificate to be trusted.
16-Oct-2015 16:55:57             :param proxies: (optional) The proxies dictionary to apply to the request.
16-Oct-2015 16:55:57             """
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         conn = self.get_connection(request.url, proxies)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         self.cert_verify(conn, request.url, verify, cert)
16-Oct-2015 16:55:57         url = self.request_url(request, proxies)
16-Oct-2015 16:55:57         self.add_headers(request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         chunked = not (request.body is None or 'Content-Length' in request.headers)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         if isinstance(timeout, tuple):
16-Oct-2015 16:55:57             try:
16-Oct-2015 16:55:57                 connect, read = timeout
16-Oct-2015 16:55:57                 timeout = TimeoutSauce(connect=connect, read=read)
16-Oct-2015 16:55:57             except ValueError as e:
16-Oct-2015 16:55:57                 # this may raise a string formatting error.
16-Oct-2015 16:55:57                 err = ("Invalid timeout {0}. Pass a (connect, read) "
16-Oct-2015 16:55:57                        "timeout tuple, or a single float to set "
16-Oct-2015 16:55:57                        "both timeouts to the same value".format(timeout))
16-Oct-2015 16:55:57                 raise ValueError(err)
16-Oct-2015 16:55:57         else:
16-Oct-2015 16:55:57             timeout = TimeoutSauce(connect=timeout, read=timeout)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         try:
16-Oct-2015 16:55:57             if not chunked:
16-Oct-2015 16:55:57                 resp = conn.urlopen(
16-Oct-2015 16:55:57                     method=request.method,
16-Oct-2015 16:55:57                     url=url,
16-Oct-2015 16:55:57                     body=request.body,
16-Oct-2015 16:55:57                     headers=request.headers,
16-Oct-2015 16:55:57                     redirect=False,
16-Oct-2015 16:55:57                     assert_same_host=False,
16-Oct-2015 16:55:57                     preload_content=False,
16-Oct-2015 16:55:57                     decode_content=False,
16-Oct-2015 16:55:57                     retries=self.max_retries,
16-Oct-2015 16:55:57                     timeout=timeout
16-Oct-2015 16:55:57                 )
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             # Send the request.
16-Oct-2015 16:55:57             else:
16-Oct-2015 16:55:57                 if hasattr(conn, 'proxy_pool'):
16-Oct-2015 16:55:57                     conn = conn.proxy_pool
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 try:
16-Oct-2015 16:55:57                     low_conn.putrequest(request.method,
16-Oct-2015 16:55:57                                         url,
16-Oct-2015 16:55:57                                         skip_accept_encoding=True)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for header, value in request.headers.items():
16-Oct-2015 16:55:57                         low_conn.putheader(header, value)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     low_conn.endheaders()
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for i in request.body:
16-Oct-2015 16:55:57                         low_conn.send(hex(len(i))[2:].encode('utf-8'))
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                         low_conn.send(i)
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                     low_conn.send(b'0\r\n\r\n')
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     r = low_conn.getresponse()
16-Oct-2015 16:55:57                     resp = HTTPResponse.from_httplib(
16-Oct-2015 16:55:57                         r,
16-Oct-2015 16:55:57                         pool=conn,
16-Oct-2015 16:55:57                         connection=low_conn,
16-Oct-2015 16:55:57                         preload_content=False,
16-Oct-2015 16:55:57                         decode_content=False
16-Oct-2015 16:55:57                     )
16-Oct-2015 16:55:57                 except:
16-Oct-2015 16:55:57                     # If we hit any problems here, clean up the connection.
16-Oct-2015 16:55:57                     # Then, reraise so that we can handle the actual exception.
16-Oct-2015 16:55:57                     low_conn.close()
16-Oct-2015 16:55:57                     raise
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except (ProtocolError, socket.error) as err:
16-Oct-2015 16:55:57             raise ConnectionError(err, request=request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except MaxRetryError as e:
16-Oct-2015 16:55:57             if isinstance(e.reason, ConnectTimeoutError):
16-Oct-2015 16:55:57 >               raise ConnectTimeout(e, request=request)
16-Oct-2015 16:55:57 E               ConnectTimeout: HTTPConnectionPool(host='localhost', port=8001): Max retries exceeded with url: /HMI/45 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f443a6a6650>: Failed to establish a new connection: [Errno 111] Connection refused',))
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/adapters.py:415: ConnectTimeout
16-Oct-2015 16:55:57 _________________________ TestEnpoints.test_03_hmi_720 _________________________
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <tests.api_tests.TestEnpoints testMethod=test_03_hmi_720>
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def test_03_hmi_720(self):
16-Oct-2015 16:55:57 >       self.query("720")
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 api_tests.py:140:
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57 api_tests.py:74: in query
16-Oct-2015 16:55:57     resp = requests.get(request_url)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:69: in get
16-Oct-2015 16:55:57     return request('get', url, params=params, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:50: in request
16-Oct-2015 16:55:57     response = session.request(method=method, url=url, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:471: in request
16-Oct-2015 16:55:57     resp = self.send(prep, **send_kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:579: in send
16-Oct-2015 16:55:57     r = adapter.send(request, **kwargs)
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <requests.adapters.HTTPAdapter object at 0x7f443a6cbb90>
16-Oct-2015 16:55:57 request = <PreparedRequest [GET]>, stream = False
16-Oct-2015 16:55:57 timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f443a6a6e50>
16-Oct-2015 16:55:57 verify = True, cert = None, proxies = OrderedDict()
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):
16-Oct-2015 16:55:57         """Sends PreparedRequest object. Returns Response object.
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
16-Oct-2015 16:55:57             :param stream: (optional) Whether to stream the request content.
16-Oct-2015 16:55:57             :param timeout: (optional) How long to wait for the server to send
16-Oct-2015 16:55:57                 data before giving up, as a float, or a :ref:`(connect timeout,
16-Oct-2015 16:55:57                 read timeout) <timeouts>` tuple.
16-Oct-2015 16:55:57             :type timeout: float or tuple
16-Oct-2015 16:55:57             :param verify: (optional) Whether to verify SSL certificates.
16-Oct-2015 16:55:57             :param cert: (optional) Any user-provided SSL certificate to be trusted.
16-Oct-2015 16:55:57             :param proxies: (optional) The proxies dictionary to apply to the request.
16-Oct-2015 16:55:57             """
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         conn = self.get_connection(request.url, proxies)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         self.cert_verify(conn, request.url, verify, cert)
16-Oct-2015 16:55:57         url = self.request_url(request, proxies)
16-Oct-2015 16:55:57         self.add_headers(request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         chunked = not (request.body is None or 'Content-Length' in request.headers)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         if isinstance(timeout, tuple):
16-Oct-2015 16:55:57             try:
16-Oct-2015 16:55:57                 connect, read = timeout
16-Oct-2015 16:55:57                 timeout = TimeoutSauce(connect=connect, read=read)
16-Oct-2015 16:55:57             except ValueError as e:
16-Oct-2015 16:55:57                 # this may raise a string formatting error.
16-Oct-2015 16:55:57                 err = ("Invalid timeout {0}. Pass a (connect, read) "
16-Oct-2015 16:55:57                        "timeout tuple, or a single float to set "
16-Oct-2015 16:55:57                        "both timeouts to the same value".format(timeout))
16-Oct-2015 16:55:57                 raise ValueError(err)
16-Oct-2015 16:55:57         else:
16-Oct-2015 16:55:57             timeout = TimeoutSauce(connect=timeout, read=timeout)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         try:
16-Oct-2015 16:55:57             if not chunked:
16-Oct-2015 16:55:57                 resp = conn.urlopen(
16-Oct-2015 16:55:57                     method=request.method,
16-Oct-2015 16:55:57                     url=url,
16-Oct-2015 16:55:57                     body=request.body,
16-Oct-2015 16:55:57                     headers=request.headers,
16-Oct-2015 16:55:57                     redirect=False,
16-Oct-2015 16:55:57                     assert_same_host=False,
16-Oct-2015 16:55:57                     preload_content=False,
16-Oct-2015 16:55:57                     decode_content=False,
16-Oct-2015 16:55:57                     retries=self.max_retries,
16-Oct-2015 16:55:57                     timeout=timeout
16-Oct-2015 16:55:57                 )
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             # Send the request.
16-Oct-2015 16:55:57             else:
16-Oct-2015 16:55:57                 if hasattr(conn, 'proxy_pool'):
16-Oct-2015 16:55:57                     conn = conn.proxy_pool
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 try:
16-Oct-2015 16:55:57                     low_conn.putrequest(request.method,
16-Oct-2015 16:55:57                                         url,
16-Oct-2015 16:55:57                                         skip_accept_encoding=True)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for header, value in request.headers.items():
16-Oct-2015 16:55:57                         low_conn.putheader(header, value)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     low_conn.endheaders()
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for i in request.body:
16-Oct-2015 16:55:57                         low_conn.send(hex(len(i))[2:].encode('utf-8'))
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                         low_conn.send(i)
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                     low_conn.send(b'0\r\n\r\n')
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     r = low_conn.getresponse()
16-Oct-2015 16:55:57                     resp = HTTPResponse.from_httplib(
16-Oct-2015 16:55:57                         r,
16-Oct-2015 16:55:57                         pool=conn,
16-Oct-2015 16:55:57                         connection=low_conn,
16-Oct-2015 16:55:57                         preload_content=False,
16-Oct-2015 16:55:57                         decode_content=False
16-Oct-2015 16:55:57                     )
16-Oct-2015 16:55:57                 except:
16-Oct-2015 16:55:57                     # If we hit any problems here, clean up the connection.
16-Oct-2015 16:55:57                     # Then, reraise so that we can handle the actual exception.
16-Oct-2015 16:55:57                     low_conn.close()
16-Oct-2015 16:55:57                     raise
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except (ProtocolError, socket.error) as err:
16-Oct-2015 16:55:57             raise ConnectionError(err, request=request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except MaxRetryError as e:
16-Oct-2015 16:55:57             if isinstance(e.reason, ConnectTimeoutError):
16-Oct-2015 16:55:57 >               raise ConnectTimeout(e, request=request)
16-Oct-2015 16:55:57 E               ConnectTimeout: HTTPConnectionPool(host='localhost', port=8001): Max retries exceeded with url: /HMI/720 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f443a6a6790>: Failed to establish a new connection: [Errno 111] Connection refused',))
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/adapters.py:415: ConnectTimeout
16-Oct-2015 16:55:57 ______________________ TestEnpoints.test_04_hmi_45_image _______________________
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <tests.api_tests.TestEnpoints testMethod=test_04_hmi_45_image>
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def test_04_hmi_45_image(self):
16-Oct-2015 16:55:57 >       self.image("45")
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 api_tests.py:149:
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57 api_tests.py:111: in image
16-Oct-2015 16:55:57     resp = requests.get(request_url + "/blabla")
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:69: in get
16-Oct-2015 16:55:57     return request('get', url, params=params, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:50: in request
16-Oct-2015 16:55:57     response = session.request(method=method, url=url, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:471: in request
16-Oct-2015 16:55:57     resp = self.send(prep, **send_kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:579: in send
16-Oct-2015 16:55:57     r = adapter.send(request, **kwargs)
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <requests.adapters.HTTPAdapter object at 0x7f443a715910>
16-Oct-2015 16:55:57 request = <PreparedRequest [GET]>, stream = False
16-Oct-2015 16:55:57 timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f443a715bd0>
16-Oct-2015 16:55:57 verify = True, cert = None, proxies = OrderedDict()
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):
16-Oct-2015 16:55:57         """Sends PreparedRequest object. Returns Response object.
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
16-Oct-2015 16:55:57             :param stream: (optional) Whether to stream the request content.
16-Oct-2015 16:55:57             :param timeout: (optional) How long to wait for the server to send
16-Oct-2015 16:55:57                 data before giving up, as a float, or a :ref:`(connect timeout,
16-Oct-2015 16:55:57                 read timeout) <timeouts>` tuple.
16-Oct-2015 16:55:57             :type timeout: float or tuple
16-Oct-2015 16:55:57             :param verify: (optional) Whether to verify SSL certificates.
16-Oct-2015 16:55:57             :param cert: (optional) Any user-provided SSL certificate to be trusted.
16-Oct-2015 16:55:57             :param proxies: (optional) The proxies dictionary to apply to the request.
16-Oct-2015 16:55:57             """
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         conn = self.get_connection(request.url, proxies)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         self.cert_verify(conn, request.url, verify, cert)
16-Oct-2015 16:55:57         url = self.request_url(request, proxies)
16-Oct-2015 16:55:57         self.add_headers(request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         chunked = not (request.body is None or 'Content-Length' in request.headers)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         if isinstance(timeout, tuple):
16-Oct-2015 16:55:57             try:
16-Oct-2015 16:55:57                 connect, read = timeout
16-Oct-2015 16:55:57                 timeout = TimeoutSauce(connect=connect, read=read)
16-Oct-2015 16:55:57             except ValueError as e:
16-Oct-2015 16:55:57                 # this may raise a string formatting error.
16-Oct-2015 16:55:57                 err = ("Invalid timeout {0}. Pass a (connect, read) "
16-Oct-2015 16:55:57                        "timeout tuple, or a single float to set "
16-Oct-2015 16:55:57                        "both timeouts to the same value".format(timeout))
16-Oct-2015 16:55:57                 raise ValueError(err)
16-Oct-2015 16:55:57         else:
16-Oct-2015 16:55:57             timeout = TimeoutSauce(connect=timeout, read=timeout)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         try:
16-Oct-2015 16:55:57             if not chunked:
16-Oct-2015 16:55:57                 resp = conn.urlopen(
16-Oct-2015 16:55:57                     method=request.method,
16-Oct-2015 16:55:57                     url=url,
16-Oct-2015 16:55:57                     body=request.body,
16-Oct-2015 16:55:57                     headers=request.headers,
16-Oct-2015 16:55:57                     redirect=False,
16-Oct-2015 16:55:57                     assert_same_host=False,
16-Oct-2015 16:55:57                     preload_content=False,
16-Oct-2015 16:55:57                     decode_content=False,
16-Oct-2015 16:55:57                     retries=self.max_retries,
16-Oct-2015 16:55:57                     timeout=timeout
16-Oct-2015 16:55:57                 )
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             # Send the request.
16-Oct-2015 16:55:57             else:
16-Oct-2015 16:55:57                 if hasattr(conn, 'proxy_pool'):
16-Oct-2015 16:55:57                     conn = conn.proxy_pool
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 try:
16-Oct-2015 16:55:57                     low_conn.putrequest(request.method,
16-Oct-2015 16:55:57                                         url,
16-Oct-2015 16:55:57                                         skip_accept_encoding=True)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for header, value in request.headers.items():
16-Oct-2015 16:55:57                         low_conn.putheader(header, value)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     low_conn.endheaders()
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for i in request.body:
16-Oct-2015 16:55:57                         low_conn.send(hex(len(i))[2:].encode('utf-8'))
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                         low_conn.send(i)
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                     low_conn.send(b'0\r\n\r\n')
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     r = low_conn.getresponse()
16-Oct-2015 16:55:57                     resp = HTTPResponse.from_httplib(
16-Oct-2015 16:55:57                         r,
16-Oct-2015 16:55:57                         pool=conn,
16-Oct-2015 16:55:57                         connection=low_conn,
16-Oct-2015 16:55:57                         preload_content=False,
16-Oct-2015 16:55:57                         decode_content=False
16-Oct-2015 16:55:57                     )
16-Oct-2015 16:55:57                 except:
16-Oct-2015 16:55:57                     # If we hit any problems here, clean up the connection.
16-Oct-2015 16:55:57                     # Then, reraise so that we can handle the actual exception.
16-Oct-2015 16:55:57                     low_conn.close()
16-Oct-2015 16:55:57                     raise
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except (ProtocolError, socket.error) as err:
16-Oct-2015 16:55:57             raise ConnectionError(err, request=request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except MaxRetryError as e:
16-Oct-2015 16:55:57             if isinstance(e.reason, ConnectTimeoutError):
16-Oct-2015 16:55:57 >               raise ConnectTimeout(e, request=request)
16-Oct-2015 16:55:57 E               ConnectTimeout: HTTPConnectionPool(host='localhost', port=8001): Max retries exceeded with url: /HMI/45/blabla (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f443a715b10>: Failed to establish a new connection: [Errno 111] Connection refused',))
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/adapters.py:415: ConnectTimeout
16-Oct-2015 16:55:57 ______________________ TestEnpoints.test_04_hmi_720_image ______________________
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <tests.api_tests.TestEnpoints testMethod=test_04_hmi_720_image>
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def test_04_hmi_720_image(self):
16-Oct-2015 16:55:57 >       self.image("720")
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 api_tests.py:146:
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57 api_tests.py:111: in image
16-Oct-2015 16:55:57     resp = requests.get(request_url + "/blabla")
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:69: in get
16-Oct-2015 16:55:57     return request('get', url, params=params, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/api.py:50: in request
16-Oct-2015 16:55:57     response = session.request(method=method, url=url, **kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:471: in request
16-Oct-2015 16:55:57     resp = self.send(prep, **send_kwargs)
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/sessions.py:579: in send
16-Oct-2015 16:55:57     r = adapter.send(request, **kwargs)
16-Oct-2015 16:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 self = <requests.adapters.HTTPAdapter object at 0x7f443a70e890>
16-Oct-2015 16:55:57 request = <PreparedRequest [GET]>, stream = False
16-Oct-2015 16:55:57 timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f443a70ed10>
16-Oct-2015 16:55:57 verify = True, cert = None, proxies = OrderedDict()
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57     def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):
16-Oct-2015 16:55:57         """Sends PreparedRequest object. Returns Response object.
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
16-Oct-2015 16:55:57             :param stream: (optional) Whether to stream the request content.
16-Oct-2015 16:55:57             :param timeout: (optional) How long to wait for the server to send
16-Oct-2015 16:55:57                 data before giving up, as a float, or a :ref:`(connect timeout,
16-Oct-2015 16:55:57                 read timeout) <timeouts>` tuple.
16-Oct-2015 16:55:57             :type timeout: float or tuple
16-Oct-2015 16:55:57             :param verify: (optional) Whether to verify SSL certificates.
16-Oct-2015 16:55:57             :param cert: (optional) Any user-provided SSL certificate to be trusted.
16-Oct-2015 16:55:57             :param proxies: (optional) The proxies dictionary to apply to the request.
16-Oct-2015 16:55:57             """
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         conn = self.get_connection(request.url, proxies)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         self.cert_verify(conn, request.url, verify, cert)
16-Oct-2015 16:55:57         url = self.request_url(request, proxies)
16-Oct-2015 16:55:57         self.add_headers(request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         chunked = not (request.body is None or 'Content-Length' in request.headers)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         if isinstance(timeout, tuple):
16-Oct-2015 16:55:57             try:
16-Oct-2015 16:55:57                 connect, read = timeout
16-Oct-2015 16:55:57                 timeout = TimeoutSauce(connect=connect, read=read)
16-Oct-2015 16:55:57             except ValueError as e:
16-Oct-2015 16:55:57                 # this may raise a string formatting error.
16-Oct-2015 16:55:57                 err = ("Invalid timeout {0}. Pass a (connect, read) "
16-Oct-2015 16:55:57                        "timeout tuple, or a single float to set "
16-Oct-2015 16:55:57                        "both timeouts to the same value".format(timeout))
16-Oct-2015 16:55:57                 raise ValueError(err)
16-Oct-2015 16:55:57         else:
16-Oct-2015 16:55:57             timeout = TimeoutSauce(connect=timeout, read=timeout)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         try:
16-Oct-2015 16:55:57             if not chunked:
16-Oct-2015 16:55:57                 resp = conn.urlopen(
16-Oct-2015 16:55:57                     method=request.method,
16-Oct-2015 16:55:57                     url=url,
16-Oct-2015 16:55:57                     body=request.body,
16-Oct-2015 16:55:57                     headers=request.headers,
16-Oct-2015 16:55:57                     redirect=False,
16-Oct-2015 16:55:57                     assert_same_host=False,
16-Oct-2015 16:55:57                     preload_content=False,
16-Oct-2015 16:55:57                     decode_content=False,
16-Oct-2015 16:55:57                     retries=self.max_retries,
16-Oct-2015 16:55:57                     timeout=timeout
16-Oct-2015 16:55:57                 )
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57             # Send the request.
16-Oct-2015 16:55:57             else:
16-Oct-2015 16:55:57                 if hasattr(conn, 'proxy_pool'):
16-Oct-2015 16:55:57                     conn = conn.proxy_pool
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                 try:
16-Oct-2015 16:55:57                     low_conn.putrequest(request.method,
16-Oct-2015 16:55:57                                         url,
16-Oct-2015 16:55:57                                         skip_accept_encoding=True)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for header, value in request.headers.items():
16-Oct-2015 16:55:57                         low_conn.putheader(header, value)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     low_conn.endheaders()
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     for i in request.body:
16-Oct-2015 16:55:57                         low_conn.send(hex(len(i))[2:].encode('utf-8'))
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                         low_conn.send(i)
16-Oct-2015 16:55:57                         low_conn.send(b'\r\n')
16-Oct-2015 16:55:57                     low_conn.send(b'0\r\n\r\n')
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57                     r = low_conn.getresponse()
16-Oct-2015 16:55:57                     resp = HTTPResponse.from_httplib(
16-Oct-2015 16:55:57                         r,
16-Oct-2015 16:55:57                         pool=conn,
16-Oct-2015 16:55:57                         connection=low_conn,
16-Oct-2015 16:55:57                         preload_content=False,
16-Oct-2015 16:55:57                         decode_content=False
16-Oct-2015 16:55:57                     )
16-Oct-2015 16:55:57                 except:
16-Oct-2015 16:55:57                     # If we hit any problems here, clean up the connection.
16-Oct-2015 16:55:57                     # Then, reraise so that we can handle the actual exception.
16-Oct-2015 16:55:57                     low_conn.close()
16-Oct-2015 16:55:57                     raise
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except (ProtocolError, socket.error) as err:
16-Oct-2015 16:55:57             raise ConnectionError(err, request=request)
16-Oct-2015 16:55:57    
16-Oct-2015 16:55:57         except MaxRetryError as e:
16-Oct-2015 16:55:57             if isinstance(e.reason, ConnectTimeoutError):
16-Oct-2015 16:55:57 >               raise ConnectTimeout(e, request=request)
16-Oct-2015 16:55:57 E               ConnectTimeout: HTTPConnectionPool(host='localhost', port=8001): Max retries exceeded with url: /HMI/720/blabla (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f443a70ef10>: Failed to establish a new connection: [Errno 111] Connection refused',))
16-Oct-2015 16:55:57
16-Oct-2015 16:55:57 /usr/local/lib/python2.7/dist-packages/requests/adapters.py:415: ConnectTimeout
16-Oct-2015 16:55:57 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-HMI-JOB1/results.xml
16-Oct-2015 16:55:57 ========================== 5 failed in 25.58 seconds ===========================
16-Oct-2015 16:55:57 Failing task since return code of [/usr/local/bin/py.test --junitxml ../results.xml api_tests.py] was 1 while expected 0
16-Oct-2015 16:55:57 Finished task 'Run pytest' with result: Failed
16-Oct-2015 16:55:57 Running post build plugin 'Sauce OnDemand Post Runner'
16-Oct-2015 16:55:57 Running post build plugin 'Clover Results Collector'
16-Oct-2015 16:55:57 Running post build plugin 'Artifact Copier'
16-Oct-2015 16:55:57 Running post build plugin 'NCover Results Collector'
16-Oct-2015 16:55:57 Running post build plugin 'npm Cache Cleanup'
16-Oct-2015 16:55:57 Finalising the build...
16-Oct-2015 16:55:57 Stopping timer.
16-Oct-2015 16:55:57 Build INFRA-HMI-JOB1-5 completed.
16-Oct-2015 16:55:57 Running on server: post build plugin 'Clover Delta Calculator'
16-Oct-2015 16:55:57 Running on server: post build plugin 'Build Hanging Detection Configuration'
16-Oct-2015 16:55:57 Running on server: post build plugin 'NCover Results Collector'
16-Oct-2015 16:55:57 Running on server: post build plugin 'Maven Dependencies Postprocessor'
16-Oct-2015 16:55:57 All post build plugins have finished
16-Oct-2015 16:55:57 Generating build results summary...
16-Oct-2015 16:55:57 Saving build results to disk...
16-Oct-2015 16:55:57 Indexing build results...
16-Oct-2015 16:55:57 Finished building INFRA-HMI-JOB1-5.