simple 24-Jul-2017 00:00:35 Build FLARECAST - propertyservice - Default Job #641 (INFRA-PROP-JOB1-641) started building on agent Default Agent simple 24-Jul-2017 00:00:35 simple 24-Jul-2017 00:00:35 Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 simple 24-Jul-2017 00:00:35 Executing build FLARECAST - propertyservice - Default Job #641 (INFRA-PROP-JOB1-641) simple 24-Jul-2017 00:00:35 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 24-Jul-2017 00:00:35 Build always requires a clean checkout simple 24-Jul-2017 00:00:35 Cleaning build directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1' simple 24-Jul-2017 00:00:35 Updating source code to revision: 2243c535cba8ec933b7c32bb1bb2953253546757 simple 24-Jul-2017 00:00:35 Fetching 'refs/heads/master' from 'ssh://git@localhost:7999/infra/propertyservice.git'. simple 24-Jul-2017 00:00:35 Warning: Permanently added '[127.0.0.1]:50342' (RSA) to the list of known hosts. simple 24-Jul-2017 00:00:36 Checking out revision 2243c535cba8ec933b7c32bb1bb2953253546757. simple 24-Jul-2017 00:00:36 Creating local git repository in '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/.git'. simple 24-Jul-2017 00:00:36 Cloning into '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1'... simple 24-Jul-2017 00:00:36 Already on 'master' simple 24-Jul-2017 00:00:36 Your branch is up-to-date with 'origin/master'. simple 24-Jul-2017 00:00:36 Updated source code to revision: 2243c535cba8ec933b7c32bb1bb2953253546757 simple 24-Jul-2017 00:00:36 Finished task 'Checkout Default Repository' with result: Success simple 24-Jul-2017 00:00:36 Running pre-build action: VCS Version Collector simple 24-Jul-2017 00:00:36 Running pre-build action: Sauce OnDemand Build Configurator simple 24-Jul-2017 00:00:37 Starting task 'Build' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 24-Jul-2017 00:00:37 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #641 (INFRA-PROP-JOB1-641)'\n ... running command line: \n/bin/sh ./build.sh\n ... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\n ... using extra environment variables: \nbamboo_planRepository_1_branch=master\nbamboo_repository_18776066_branch_name=master\nbamboo_repository_18776066_git_username=\nbamboo_repository_revision_number=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-641\nbamboo_planRepository_1_name=propertyservice\nbamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\nbamboo_buildKey=INFRA-PROP-JOB1\nbamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose\nbamboo_repository_18776066_name=propertyservice\nbamboo_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=641\nbamboo_shortJobName=Default Job\nbamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run\nbamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-641\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_agentId=131073\nbamboo_planName=FLARECAST - propertyservice\nbamboo_shortPlanKey=PROP\nbamboo_repository_18776066_git_branch=master\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_previous_revision_number=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_buildTimeStamp=2017-07-24T00:00:31.036+02:00\nbamboo_planRepository_previousRevision=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test\nbamboo_buildResultKey=INFRA-PROP-JOB1-641\nbamboo_capability_system_builder_command_Docker=/usr/bin/docker\nbamboo_repository_git_branch=master\nbamboo_repository_branch_name=master\nbamboo_buildPlanName=FLARECAST - propertyservice - Default Job\nbamboo_planRepository_1_revision=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_18776066_revision_number=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_name=propertyservice\nbamboo_planRepository_branch=master\nbamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_planRepository_1_previousRevision=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_repository_git_username=\nbamboo_planRepository_1_type=stash-rep\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_repository_18776066_previous_revision_number=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\nbamboo_planKey=INFRA-PROP\nbamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_planRepository_username=\nbamboo_repository_18776066_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 24-Jul-2017 00:00:37 Sending build context to Docker daemon 182.8 kB build 24-Jul-2017 00:00:37 build 24-Jul-2017 00:00:37 Step 1 : FROM flarecast/python-base build 24-Jul-2017 00:00:38 latest: Pulling from flarecast/python-base build 24-Jul-2017 00:00:38 6d827a3ef358: Pulling fs layer build 24-Jul-2017 00:00:38 2726297beaf1: Pulling fs layer build 24-Jul-2017 00:00:38 7d27bd3d7fec: Pulling fs layer build 24-Jul-2017 00:00:38 44ae682c18a3: Pulling fs layer build 24-Jul-2017 00:00:38 824bd01a76a3: Pulling fs layer build 24-Jul-2017 00:00:38 69702776c399: Pulling fs layer build 24-Jul-2017 00:00:38 7be4e7612dd4: Pulling fs layer build 24-Jul-2017 00:00:38 5241d175641b: Pulling fs layer build 24-Jul-2017 00:00:38 8bb5576e2588: Pulling fs layer build 24-Jul-2017 00:00:38 e308a269c6f6: Pulling fs layer build 24-Jul-2017 00:00:38 f06080bc7b72: Pulling fs layer build 24-Jul-2017 00:00:38 7be4e7612dd4: Waiting build 24-Jul-2017 00:00:38 44ae682c18a3: Waiting build 24-Jul-2017 00:00:38 824bd01a76a3: Waiting build 24-Jul-2017 00:00:38 5241d175641b: Waiting build 24-Jul-2017 00:00:38 69702776c399: Waiting build 24-Jul-2017 00:00:38 8bb5576e2588: Waiting build 24-Jul-2017 00:00:38 e308a269c6f6: Waiting build 24-Jul-2017 00:00:38 f06080bc7b72: Waiting build 24-Jul-2017 00:00:41 6d827a3ef358: Verifying Checksum build 24-Jul-2017 00:00:41 6d827a3ef358: Download complete build 24-Jul-2017 00:00:42 2726297beaf1: Verifying Checksum build 24-Jul-2017 00:00:42 2726297beaf1: Download complete build 24-Jul-2017 00:00:43 7d27bd3d7fec: Verifying Checksum build 24-Jul-2017 00:00:43 7d27bd3d7fec: Download complete build 24-Jul-2017 00:00:45 824bd01a76a3: Verifying Checksum build 24-Jul-2017 00:00:45 824bd01a76a3: Download complete build 24-Jul-2017 00:00:47 69702776c399: Verifying Checksum build 24-Jul-2017 00:00:47 69702776c399: Download complete build 24-Jul-2017 00:00:47 6d827a3ef358: Pull complete build 24-Jul-2017 00:00:48 7be4e7612dd4: Verifying Checksum build 24-Jul-2017 00:00:48 7be4e7612dd4: Download complete build 24-Jul-2017 00:00:49 2726297beaf1: Pull complete build 24-Jul-2017 00:00:49 8bb5576e2588: Verifying Checksum build 24-Jul-2017 00:00:49 8bb5576e2588: Download complete build 24-Jul-2017 00:00:50 e308a269c6f6: Download complete build 24-Jul-2017 00:00:51 f06080bc7b72: Verifying Checksum build 24-Jul-2017 00:00:51 5241d175641b: Verifying Checksum build 24-Jul-2017 00:00:51 5241d175641b: Download complete build 24-Jul-2017 00:00:54 7d27bd3d7fec: Pull complete build 24-Jul-2017 00:00:56 44ae682c18a3: Verifying Checksum build 24-Jul-2017 00:00:56 44ae682c18a3: Download complete build 24-Jul-2017 00:01:09 44ae682c18a3: Pull complete build 24-Jul-2017 00:01:10 824bd01a76a3: Pull complete build 24-Jul-2017 00:01:12 69702776c399: Pull complete build 24-Jul-2017 00:01:12 7be4e7612dd4: Pull complete build 24-Jul-2017 00:01:14 5241d175641b: Pull complete build 24-Jul-2017 00:01:14 8bb5576e2588: Pull complete build 24-Jul-2017 00:01:14 e308a269c6f6: Pull complete build 24-Jul-2017 00:01:14 f06080bc7b72: Pull complete build 24-Jul-2017 00:01:15 Digest: sha256:fa6dfbbf0b29cbc72c0d0aa1d50467d94f2a52f9a1f2275c7901689fbe060f98 build 24-Jul-2017 00:01:15 Status: Downloaded newer image for flarecast/python-base:latest build 24-Jul-2017 00:01:15 ---> 26b5f78f8f6f build 24-Jul-2017 00:01:15 Step 2 : MAINTAINER i4Ds build 24-Jul-2017 00:01:15 ---> Running in 0d08ca621ea4 build 24-Jul-2017 00:01:16 ---> 934515fe5b2b build 24-Jul-2017 00:01:17 Removing intermediate container 0d08ca621ea4 build 24-Jul-2017 00:01:17 Step 3 : LABEL eu.flarecast.type "system" eu.flarecast.name "propertyservice" build 24-Jul-2017 00:01:18 ---> Running in 2aa70adb46cb build 24-Jul-2017 00:01:18 ---> 70f0aa5ba4d9 build 24-Jul-2017 00:01:19 Removing intermediate container 2aa70adb46cb build 24-Jul-2017 00:01:19 Step 4 : RUN pip install --no-cache-dir svgwrite numpy scipy build 24-Jul-2017 00:01:19 ---> Running in c136e0c52024 build 24-Jul-2017 00:01:22 Collecting svgwrite build 24-Jul-2017 00:01:22 Downloading svgwrite-1.1.11-py2.py3-none-any.whl (64kB) build 24-Jul-2017 00:01:22 Collecting numpy build 24-Jul-2017 00:01:22 Downloading numpy-1.13.1-cp27-cp27mu-manylinux1_x86_64.whl (16.6MB) build 24-Jul-2017 00:01:24 Collecting scipy build 24-Jul-2017 00:01:24 Downloading scipy-0.19.1-cp27-cp27mu-manylinux1_x86_64.whl (45.0MB) build 24-Jul-2017 00:01:28 Requirement already satisfied: pyparsing>=2.0.1 in /usr/local/lib/python2.7/site-packages (from svgwrite) build 24-Jul-2017 00:01:28 Installing collected packages: svgwrite, numpy, scipy build 24-Jul-2017 00:01:34 Successfully installed numpy-1.13.1 scipy-0.19.1 svgwrite-1.1.11 build 24-Jul-2017 00:01:43 ---> a4cf30dcdf2b build 24-Jul-2017 00:01:44 Removing intermediate container c136e0c52024 build 24-Jul-2017 00:01:44 Step 5 : CMD uwsgi --http :8002 --http-timeout 6000 --http-headers-timeout 6000 --http-connect-timeout 6000 --harakiri 6000 -w main -p 16 build 24-Jul-2017 00:01:45 ---> Running in c60e86a0ddda build 24-Jul-2017 00:01:45 ---> b01f4c914b5f build 24-Jul-2017 00:01:45 Removing intermediate container c60e86a0ddda build 24-Jul-2017 00:01:45 Step 6 : WORKDIR /service/ build 24-Jul-2017 00:01:46 ---> Running in 91a0f3ff62b9 build 24-Jul-2017 00:01:46 ---> 71411acd4adb build 24-Jul-2017 00:01:48 Removing intermediate container 91a0f3ff62b9 build 24-Jul-2017 00:01:48 Step 7 : COPY ./main.py /service/main.py build 24-Jul-2017 00:01:49 ---> 86ec3dc7bf7f build 24-Jul-2017 00:01:51 Removing intermediate container f1e81d793555 build 24-Jul-2017 00:01:51 Step 8 : COPY ./propertyservice /service/propertyservice build 24-Jul-2017 00:01:51 ---> 12e7e4552412 build 24-Jul-2017 00:01:51 Removing intermediate container 0885d204e87b build 24-Jul-2017 00:01:51 Successfully built 12e7e4552412 simple 24-Jul-2017 00:01:51 Finished task 'Build' with result: Success simple 24-Jul-2017 00:01:51 Starting task 'Run tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 24-Jul-2017 00:01:51 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #641 (INFRA-PROP-JOB1-641)'\n ... running command line: \n/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-641-ScriptBuildTask-2142346670916860894.sh\n ... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests\n ... using extra environment variables: \nbamboo_planRepository_1_branch=master\nbamboo_repository_18776066_branch_name=master\nbamboo_repository_18776066_git_username=\nbamboo_repository_revision_number=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-641\nbamboo_planRepository_1_name=propertyservice\nbamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\nbamboo_buildKey=INFRA-PROP-JOB1\nbamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose\nbamboo_repository_18776066_name=propertyservice\nbamboo_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=641\nbamboo_shortJobName=Default Job\nbamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run\nbamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-641\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_agentId=131073\nbamboo_planName=FLARECAST - propertyservice\nbamboo_shortPlanKey=PROP\nbamboo_repository_18776066_git_branch=master\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_previous_revision_number=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_buildTimeStamp=2017-07-24T00:00:31.036+02:00\nbamboo_planRepository_previousRevision=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh\nbamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test\nbamboo_buildResultKey=INFRA-PROP-JOB1-641\nbamboo_capability_system_builder_command_Docker=/usr/bin/docker\nbamboo_repository_git_branch=master\nbamboo_repository_branch_name=master\nbamboo_buildPlanName=FLARECAST - propertyservice - Default Job\nbamboo_planRepository_1_revision=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_18776066_revision_number=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_name=propertyservice\nbamboo_planRepository_branch=master\nbamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_planRepository_1_previousRevision=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_repository_git_username=\nbamboo_planRepository_1_type=stash-rep\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_repository_18776066_previous_revision_number=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\nbamboo_planKey=INFRA-PROP\nbamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_planRepository_username=\nbamboo_repository_18776066_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 24-Jul-2017 00:01:52 Traceback (most recent call last): build 24-Jul-2017 00:01:52 File "./setup_docker_env.py", line 32, in build 24-Jul-2017 00:01:52 labels={"eu.flarecast.testing": "1"} build 24-Jul-2017 00:01:52 File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 116, in create_container build 24-Jul-2017 00:01:52 return self.create_container_from_config(config, name) build 24-Jul-2017 00:01:52 File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 127, in create_container_from_config build 24-Jul-2017 00:01:52 return self._result(res, True) build 24-Jul-2017 00:01:52 File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 146, in _result build 24-Jul-2017 00:01:52 self._raise_for_status(response) build 24-Jul-2017 00:01:52 File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 141, in _raise_for_status build 24-Jul-2017 00:01:52 raise errors.NotFound(e, response, explanation=explanation) build 24-Jul-2017 00:01:52 NotFound: 404 Client Error: Not Found ("No such image: flarecast/postgres:latest") build 24-Jul-2017 00:01:52 error 24-Jul-2017 00:01:52 Traceback (most recent call last): error 24-Jul-2017 00:01:52 File "./setup_docker_env.py", line 51, in error 24-Jul-2017 00:01:52 docker_client.stop(dbservice) error 24-Jul-2017 00:01:52 NameError: name 'dbservice' is not defined build 24-Jul-2017 00:01:52 ============================= test session starts ============================== build 24-Jul-2017 00:01:52 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 24-Jul-2017 00:01:52 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 24-Jul-2017 00:01:52 plugins: pep8-1.0.6 build 24-Jul-2017 00:01:52 collected 3 items build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 dataset_tests.py FFFE build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 ==================================== ERRORS ==================================== build 24-Jul-2017 00:01:52 _____________ ERROR at teardown of DatasetTests.test_3_get_dataset _____________ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 @classmethod build 24-Jul-2017 00:01:52 def tearDownClass(self): build 24-Jul-2017 00:01:52 delete_request( build 24-Jul-2017 00:01:52 (self.service_url + self.__DELETE_DATASET) % build 24-Jul-2017 00:01:52 > (TEST_DATASETS[0]["name"]) build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 dataset_tests.py:38: build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 util.py:17: in delete_request build 24-Jul-2017 00:01:52 r = requests.delete(url) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:152: in delete build 24-Jul-2017 00:01:52 return request('delete', url, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:52 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:52 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:52 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 request = , stream = False build 24-Jul-2017 00:01:52 timeout = , verify = True build 24-Jul-2017 00:01:52 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:52 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:52 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:52 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:52 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:52 read timeout) ` tuple. build 24-Jul-2017 00:01:52 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:52 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:52 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:52 must be a path to a CA bundle to use build 24-Jul-2017 00:01:52 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:52 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:52 :rtype: requests.Response build 24-Jul-2017 00:01:52 """ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:52 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:52 self.add_headers(request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 connect, read = timeout build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:52 except ValueError as e: build 24-Jul-2017 00:01:52 # this may raise a string formatting error. build 24-Jul-2017 00:01:52 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:52 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:52 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:52 raise ValueError(err) build 24-Jul-2017 00:01:52 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:52 pass build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 if not chunked: build 24-Jul-2017 00:01:52 resp = conn.urlopen( build 24-Jul-2017 00:01:52 method=request.method, build 24-Jul-2017 00:01:52 url=url, build 24-Jul-2017 00:01:52 body=request.body, build 24-Jul-2017 00:01:52 headers=request.headers, build 24-Jul-2017 00:01:52 redirect=False, build 24-Jul-2017 00:01:52 assert_same_host=False, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False, build 24-Jul-2017 00:01:52 retries=self.max_retries, build 24-Jul-2017 00:01:52 timeout=timeout build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Send the request. build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:52 conn = conn.proxy_pool build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:52 url, build 24-Jul-2017 00:01:52 skip_accept_encoding=True) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for header, value in request.headers.items(): build 24-Jul-2017 00:01:52 low_conn.putheader(header, value) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn.endheaders() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for i in request.body: build 24-Jul-2017 00:01:52 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(i) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Receive the response from the server build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:52 # responses build 24-Jul-2017 00:01:52 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:52 except TypeError: build 24-Jul-2017 00:01:52 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:52 r = low_conn.getresponse() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:52 r, build 24-Jul-2017 00:01:52 pool=conn, build 24-Jul-2017 00:01:52 connection=low_conn, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 except: build 24-Jul-2017 00:01:52 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:52 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:52 low_conn.close() build 24-Jul-2017 00:01:52 raise build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:52 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except MaxRetryError as e: build 24-Jul-2017 00:01:52 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:52 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:52 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:52 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:52 raise RetryError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:52 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:52 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/test_ds1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:52 =================================== FAILURES =================================== build 24-Jul-2017 00:01:52 _______________________ DatasetTests.test_1_add_datasets _______________________ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 def test_1_add_datasets(self): build 24-Jul-2017 00:01:52 result = post_request( build 24-Jul-2017 00:01:52 > self.service_url + self.__ADD_DATASETS, TEST_DATASETS build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 dataset_tests.py:20: build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 util.py:8: in post_request build 24-Jul-2017 00:01:52 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:52 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:52 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:52 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:52 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 request = , stream = False build 24-Jul-2017 00:01:52 timeout = , verify = True build 24-Jul-2017 00:01:52 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:52 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:52 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:52 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:52 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:52 read timeout) ` tuple. build 24-Jul-2017 00:01:52 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:52 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:52 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:52 must be a path to a CA bundle to use build 24-Jul-2017 00:01:52 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:52 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:52 :rtype: requests.Response build 24-Jul-2017 00:01:52 """ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:52 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:52 self.add_headers(request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 connect, read = timeout build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:52 except ValueError as e: build 24-Jul-2017 00:01:52 # this may raise a string formatting error. build 24-Jul-2017 00:01:52 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:52 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:52 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:52 raise ValueError(err) build 24-Jul-2017 00:01:52 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:52 pass build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 if not chunked: build 24-Jul-2017 00:01:52 resp = conn.urlopen( build 24-Jul-2017 00:01:52 method=request.method, build 24-Jul-2017 00:01:52 url=url, build 24-Jul-2017 00:01:52 body=request.body, build 24-Jul-2017 00:01:52 headers=request.headers, build 24-Jul-2017 00:01:52 redirect=False, build 24-Jul-2017 00:01:52 assert_same_host=False, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False, build 24-Jul-2017 00:01:52 retries=self.max_retries, build 24-Jul-2017 00:01:52 timeout=timeout build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Send the request. build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:52 conn = conn.proxy_pool build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:52 url, build 24-Jul-2017 00:01:52 skip_accept_encoding=True) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for header, value in request.headers.items(): build 24-Jul-2017 00:01:52 low_conn.putheader(header, value) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn.endheaders() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for i in request.body: build 24-Jul-2017 00:01:52 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(i) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Receive the response from the server build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:52 # responses build 24-Jul-2017 00:01:52 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:52 except TypeError: build 24-Jul-2017 00:01:52 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:52 r = low_conn.getresponse() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:52 r, build 24-Jul-2017 00:01:52 pool=conn, build 24-Jul-2017 00:01:52 connection=low_conn, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 except: build 24-Jul-2017 00:01:52 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:52 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:52 low_conn.close() build 24-Jul-2017 00:01:52 raise build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:52 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except MaxRetryError as e: build 24-Jul-2017 00:01:52 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:52 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:52 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:52 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:52 raise RetryError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:52 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:52 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:52 ____________________ DatasetTests.test_2_add_dataset_twice _____________________ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 def test_2_add_dataset_twice(self): build 24-Jul-2017 00:01:52 result = post_request( build 24-Jul-2017 00:01:52 > self.service_url + self.__ADD_DATASETS, [TEST_DATASETS[0]] build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 dataset_tests.py:26: build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 util.py:8: in post_request build 24-Jul-2017 00:01:52 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:52 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:52 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:52 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:52 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 request = , stream = False build 24-Jul-2017 00:01:52 timeout = , verify = True build 24-Jul-2017 00:01:52 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:52 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:52 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:52 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:52 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:52 read timeout) ` tuple. build 24-Jul-2017 00:01:52 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:52 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:52 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:52 must be a path to a CA bundle to use build 24-Jul-2017 00:01:52 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:52 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:52 :rtype: requests.Response build 24-Jul-2017 00:01:52 """ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:52 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:52 self.add_headers(request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 connect, read = timeout build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:52 except ValueError as e: build 24-Jul-2017 00:01:52 # this may raise a string formatting error. build 24-Jul-2017 00:01:52 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:52 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:52 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:52 raise ValueError(err) build 24-Jul-2017 00:01:52 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:52 pass build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 if not chunked: build 24-Jul-2017 00:01:52 resp = conn.urlopen( build 24-Jul-2017 00:01:52 method=request.method, build 24-Jul-2017 00:01:52 url=url, build 24-Jul-2017 00:01:52 body=request.body, build 24-Jul-2017 00:01:52 headers=request.headers, build 24-Jul-2017 00:01:52 redirect=False, build 24-Jul-2017 00:01:52 assert_same_host=False, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False, build 24-Jul-2017 00:01:52 retries=self.max_retries, build 24-Jul-2017 00:01:52 timeout=timeout build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Send the request. build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:52 conn = conn.proxy_pool build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:52 url, build 24-Jul-2017 00:01:52 skip_accept_encoding=True) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for header, value in request.headers.items(): build 24-Jul-2017 00:01:52 low_conn.putheader(header, value) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn.endheaders() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for i in request.body: build 24-Jul-2017 00:01:52 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(i) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Receive the response from the server build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:52 # responses build 24-Jul-2017 00:01:52 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:52 except TypeError: build 24-Jul-2017 00:01:52 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:52 r = low_conn.getresponse() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:52 r, build 24-Jul-2017 00:01:52 pool=conn, build 24-Jul-2017 00:01:52 connection=low_conn, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 except: build 24-Jul-2017 00:01:52 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:52 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:52 low_conn.close() build 24-Jul-2017 00:01:52 raise build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:52 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except MaxRetryError as e: build 24-Jul-2017 00:01:52 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:52 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:52 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:52 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:52 raise RetryError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:52 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:52 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:52 _______________________ DatasetTests.test_3_get_dataset ________________________ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 def test_3_get_dataset(self): build 24-Jul-2017 00:01:52 > result = get_request(self.service_url + self.__GET_DATASETS) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 dataset_tests.py:31: build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 util.py:26: in get_request build 24-Jul-2017 00:01:52 r = requests.get(url, params=params) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:72: in get build 24-Jul-2017 00:01:52 return request('get', url, params=params, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:52 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:52 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:52 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self = build 24-Jul-2017 00:01:52 request = , stream = False build 24-Jul-2017 00:01:52 timeout = , verify = True build 24-Jul-2017 00:01:52 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:52 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:52 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:52 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:52 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:52 read timeout) ` tuple. build 24-Jul-2017 00:01:52 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:52 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:52 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:52 must be a path to a CA bundle to use build 24-Jul-2017 00:01:52 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:52 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:52 :rtype: requests.Response build 24-Jul-2017 00:01:52 """ build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:52 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:52 self.add_headers(request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 connect, read = timeout build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:52 except ValueError as e: build 24-Jul-2017 00:01:52 # this may raise a string formatting error. build 24-Jul-2017 00:01:52 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:52 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:52 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:52 raise ValueError(err) build 24-Jul-2017 00:01:52 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:52 pass build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 if not chunked: build 24-Jul-2017 00:01:52 resp = conn.urlopen( build 24-Jul-2017 00:01:52 method=request.method, build 24-Jul-2017 00:01:52 url=url, build 24-Jul-2017 00:01:52 body=request.body, build 24-Jul-2017 00:01:52 headers=request.headers, build 24-Jul-2017 00:01:52 redirect=False, build 24-Jul-2017 00:01:52 assert_same_host=False, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False, build 24-Jul-2017 00:01:52 retries=self.max_retries, build 24-Jul-2017 00:01:52 timeout=timeout build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Send the request. build 24-Jul-2017 00:01:52 else: build 24-Jul-2017 00:01:52 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:52 conn = conn.proxy_pool build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:52 url, build 24-Jul-2017 00:01:52 skip_accept_encoding=True) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for header, value in request.headers.items(): build 24-Jul-2017 00:01:52 low_conn.putheader(header, value) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 low_conn.endheaders() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 for i in request.body: build 24-Jul-2017 00:01:52 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(i) build 24-Jul-2017 00:01:52 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:52 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 # Receive the response from the server build 24-Jul-2017 00:01:52 try: build 24-Jul-2017 00:01:52 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:52 # responses build 24-Jul-2017 00:01:52 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:52 except TypeError: build 24-Jul-2017 00:01:52 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:52 r = low_conn.getresponse() build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:52 r, build 24-Jul-2017 00:01:52 pool=conn, build 24-Jul-2017 00:01:52 connection=low_conn, build 24-Jul-2017 00:01:52 preload_content=False, build 24-Jul-2017 00:01:52 decode_content=False build 24-Jul-2017 00:01:52 ) build 24-Jul-2017 00:01:52 except: build 24-Jul-2017 00:01:52 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:52 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:52 low_conn.close() build 24-Jul-2017 00:01:52 raise build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:52 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 except MaxRetryError as e: build 24-Jul-2017 00:01:52 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:52 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:52 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:52 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:52 raise RetryError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:52 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:52 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/list (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:52 build 24-Jul-2017 00:01:52 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:52 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_dataset_tests.xml build 24-Jul-2017 00:01:52 ====================== 3 failed, 1 error in 0.30 seconds ======================= build 24-Jul-2017 00:01:53 ============================= test session starts ============================== build 24-Jul-2017 00:01:53 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 24-Jul-2017 00:01:53 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 24-Jul-2017 00:01:53 plugins: pep8-1.0.6 build 24-Jul-2017 00:01:53 collected 4 items build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 property_group_tests.py EEEE build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 ==================================== ERRORS ==================================== build 24-Jul-2017 00:01:53 _______ ERROR at setup of PropertyGroupTests.test_1_add_property_groups ________ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self = build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 @classmethod build 24-Jul-2017 00:01:53 def setUpClass(self): build 24-Jul-2017 00:01:53 super(PropertyGroupTests, self).setUpClass() build 24-Jul-2017 00:01:53 > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 property_group_tests.py:20: build 24-Jul-2017 00:01:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:53 util.py:8: in post_request build 24-Jul-2017 00:01:53 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:53 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:53 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:53 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:53 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self = build 24-Jul-2017 00:01:53 request = , stream = False build 24-Jul-2017 00:01:53 timeout = , verify = True build 24-Jul-2017 00:01:53 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:53 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:53 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:53 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:53 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:53 read timeout) ` tuple. build 24-Jul-2017 00:01:53 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:53 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:53 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:53 must be a path to a CA bundle to use build 24-Jul-2017 00:01:53 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:53 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:53 :rtype: requests.Response build 24-Jul-2017 00:01:53 """ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:53 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:53 self.add_headers(request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 connect, read = timeout build 24-Jul-2017 00:01:53 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:53 except ValueError as e: build 24-Jul-2017 00:01:53 # this may raise a string formatting error. build 24-Jul-2017 00:01:53 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:53 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:53 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:53 raise ValueError(err) build 24-Jul-2017 00:01:53 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:53 pass build 24-Jul-2017 00:01:53 else: build 24-Jul-2017 00:01:53 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 if not chunked: build 24-Jul-2017 00:01:53 resp = conn.urlopen( build 24-Jul-2017 00:01:53 method=request.method, build 24-Jul-2017 00:01:53 url=url, build 24-Jul-2017 00:01:53 body=request.body, build 24-Jul-2017 00:01:53 headers=request.headers, build 24-Jul-2017 00:01:53 redirect=False, build 24-Jul-2017 00:01:53 assert_same_host=False, build 24-Jul-2017 00:01:53 preload_content=False, build 24-Jul-2017 00:01:53 decode_content=False, build 24-Jul-2017 00:01:53 retries=self.max_retries, build 24-Jul-2017 00:01:53 timeout=timeout build 24-Jul-2017 00:01:53 ) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 # Send the request. build 24-Jul-2017 00:01:53 else: build 24-Jul-2017 00:01:53 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:53 conn = conn.proxy_pool build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:53 url, build 24-Jul-2017 00:01:53 skip_accept_encoding=True) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 for header, value in request.headers.items(): build 24-Jul-2017 00:01:53 low_conn.putheader(header, value) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 low_conn.endheaders() build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 for i in request.body: build 24-Jul-2017 00:01:53 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:53 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:53 low_conn.send(i) build 24-Jul-2017 00:01:53 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:53 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 # Receive the response from the server build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:53 # responses build 24-Jul-2017 00:01:53 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:53 except TypeError: build 24-Jul-2017 00:01:53 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:53 r = low_conn.getresponse() build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:53 r, build 24-Jul-2017 00:01:53 pool=conn, build 24-Jul-2017 00:01:53 connection=low_conn, build 24-Jul-2017 00:01:53 preload_content=False, build 24-Jul-2017 00:01:53 decode_content=False build 24-Jul-2017 00:01:53 ) build 24-Jul-2017 00:01:53 except: build 24-Jul-2017 00:01:53 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:53 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:53 low_conn.close() build 24-Jul-2017 00:01:53 raise build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:53 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 except MaxRetryError as e: build 24-Jul-2017 00:01:53 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:53 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:53 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:53 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:53 raise RetryError(e, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:53 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:53 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:53 _____ ERROR at setup of PropertyGroupTests.test_2_add_property_group_twice _____ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self = build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 @classmethod build 24-Jul-2017 00:01:53 def setUpClass(self): build 24-Jul-2017 00:01:53 super(PropertyGroupTests, self).setUpClass() build 24-Jul-2017 00:01:53 > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 property_group_tests.py:20: build 24-Jul-2017 00:01:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:53 util.py:8: in post_request build 24-Jul-2017 00:01:53 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:53 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:53 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:53 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:53 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self = build 24-Jul-2017 00:01:53 request = , stream = False build 24-Jul-2017 00:01:53 timeout = , verify = True build 24-Jul-2017 00:01:53 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:53 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:53 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:53 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:53 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:53 read timeout) ` tuple. build 24-Jul-2017 00:01:53 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:53 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:53 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:53 must be a path to a CA bundle to use build 24-Jul-2017 00:01:53 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:53 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:53 :rtype: requests.Response build 24-Jul-2017 00:01:53 """ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:53 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:53 self.add_headers(request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 connect, read = timeout build 24-Jul-2017 00:01:53 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:53 except ValueError as e: build 24-Jul-2017 00:01:53 # this may raise a string formatting error. build 24-Jul-2017 00:01:53 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:53 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:53 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:53 raise ValueError(err) build 24-Jul-2017 00:01:53 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:53 pass build 24-Jul-2017 00:01:53 else: build 24-Jul-2017 00:01:53 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 if not chunked: build 24-Jul-2017 00:01:53 resp = conn.urlopen( build 24-Jul-2017 00:01:53 method=request.method, build 24-Jul-2017 00:01:53 url=url, build 24-Jul-2017 00:01:53 body=request.body, build 24-Jul-2017 00:01:53 headers=request.headers, build 24-Jul-2017 00:01:53 redirect=False, build 24-Jul-2017 00:01:53 assert_same_host=False, build 24-Jul-2017 00:01:53 preload_content=False, build 24-Jul-2017 00:01:53 decode_content=False, build 24-Jul-2017 00:01:53 retries=self.max_retries, build 24-Jul-2017 00:01:53 timeout=timeout build 24-Jul-2017 00:01:53 ) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 # Send the request. build 24-Jul-2017 00:01:53 else: build 24-Jul-2017 00:01:53 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:53 conn = conn.proxy_pool build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:53 url, build 24-Jul-2017 00:01:53 skip_accept_encoding=True) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 for header, value in request.headers.items(): build 24-Jul-2017 00:01:53 low_conn.putheader(header, value) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 low_conn.endheaders() build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 for i in request.body: build 24-Jul-2017 00:01:53 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:53 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:53 low_conn.send(i) build 24-Jul-2017 00:01:53 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:53 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 # Receive the response from the server build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:53 # responses build 24-Jul-2017 00:01:53 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:53 except TypeError: build 24-Jul-2017 00:01:53 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:53 r = low_conn.getresponse() build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:53 r, build 24-Jul-2017 00:01:53 pool=conn, build 24-Jul-2017 00:01:53 connection=low_conn, build 24-Jul-2017 00:01:53 preload_content=False, build 24-Jul-2017 00:01:53 decode_content=False build 24-Jul-2017 00:01:53 ) build 24-Jul-2017 00:01:53 except: build 24-Jul-2017 00:01:53 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:53 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:53 low_conn.close() build 24-Jul-2017 00:01:53 raise build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:53 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 except MaxRetryError as e: build 24-Jul-2017 00:01:53 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:53 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:53 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:53 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:53 raise RetryError(e, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:53 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:53 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:53 _______ ERROR at setup of PropertyGroupTests.test_3_get_property_groups ________ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self = build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 @classmethod build 24-Jul-2017 00:01:53 def setUpClass(self): build 24-Jul-2017 00:01:53 super(PropertyGroupTests, self).setUpClass() build 24-Jul-2017 00:01:53 > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 property_group_tests.py:20: build 24-Jul-2017 00:01:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:53 util.py:8: in post_request build 24-Jul-2017 00:01:53 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:53 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:53 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:53 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:53 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:53 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self = build 24-Jul-2017 00:01:53 request = , stream = False build 24-Jul-2017 00:01:53 timeout = , verify = True build 24-Jul-2017 00:01:53 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:53 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:53 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:53 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:53 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:53 read timeout) ` tuple. build 24-Jul-2017 00:01:53 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:53 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:53 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:53 must be a path to a CA bundle to use build 24-Jul-2017 00:01:53 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:53 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:53 :rtype: requests.Response build 24-Jul-2017 00:01:53 """ build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:53 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:53 self.add_headers(request) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 connect, read = timeout build 24-Jul-2017 00:01:53 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:53 except ValueError as e: build 24-Jul-2017 00:01:53 # this may raise a string formatting error. build 24-Jul-2017 00:01:53 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:53 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:53 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:53 raise ValueError(err) build 24-Jul-2017 00:01:53 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:53 pass build 24-Jul-2017 00:01:53 else: build 24-Jul-2017 00:01:53 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:53 build 24-Jul-2017 00:01:53 try: build 24-Jul-2017 00:01:53 if not chunked: build 24-Jul-2017 00:01:53 resp = conn.urlopen( build 24-Jul-2017 00:01:53 method=request.method, build 24-Jul-2017 00:01:53 url=url, build 24-Jul-2017 00:01:53 body=request.body, build 24-Jul-2017 00:01:53 headers=request.headers, build 24-Jul-2017 00:01:53 redirect=False, build 24-Jul-2017 00:01:53 assert_same_host=False, build 24-Jul-2017 00:01:53 preload_content=False, build 24-Jul-2017 00:01:53 decode_content=False, build 24-Jul-2017 00:01:54 retries=self.max_retries, build 24-Jul-2017 00:01:54 timeout=timeout build 24-Jul-2017 00:01:54 ) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 # Send the request. build 24-Jul-2017 00:01:54 else: build 24-Jul-2017 00:01:54 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:54 conn = conn.proxy_pool build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 try: build 24-Jul-2017 00:01:54 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:54 url, build 24-Jul-2017 00:01:54 skip_accept_encoding=True) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 for header, value in request.headers.items(): build 24-Jul-2017 00:01:54 low_conn.putheader(header, value) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 low_conn.endheaders() build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 for i in request.body: build 24-Jul-2017 00:01:54 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:54 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:54 low_conn.send(i) build 24-Jul-2017 00:01:54 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:54 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 # Receive the response from the server build 24-Jul-2017 00:01:54 try: build 24-Jul-2017 00:01:54 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:54 # responses build 24-Jul-2017 00:01:54 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:54 except TypeError: build 24-Jul-2017 00:01:54 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:54 r = low_conn.getresponse() build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:54 r, build 24-Jul-2017 00:01:54 pool=conn, build 24-Jul-2017 00:01:54 connection=low_conn, build 24-Jul-2017 00:01:54 preload_content=False, build 24-Jul-2017 00:01:54 decode_content=False build 24-Jul-2017 00:01:54 ) build 24-Jul-2017 00:01:54 except: build 24-Jul-2017 00:01:54 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:54 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:54 low_conn.close() build 24-Jul-2017 00:01:54 raise build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:54 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 except MaxRetryError as e: build 24-Jul-2017 00:01:54 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:54 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:54 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:54 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:54 raise RetryError(e, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:54 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:54 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:54 ______ ERROR at setup of PropertyGroupTests.test_4_delete_property_groups ______ build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 self = build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 @classmethod build 24-Jul-2017 00:01:54 def setUpClass(self): build 24-Jul-2017 00:01:54 super(PropertyGroupTests, self).setUpClass() build 24-Jul-2017 00:01:54 > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 property_group_tests.py:20: build 24-Jul-2017 00:01:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:54 util.py:8: in post_request build 24-Jul-2017 00:01:54 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:54 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:54 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:54 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:54 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:54 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:54 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:54 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:54 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 self = build 24-Jul-2017 00:01:54 request = , stream = False build 24-Jul-2017 00:01:54 timeout = , verify = True build 24-Jul-2017 00:01:54 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:54 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:54 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:54 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:54 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:54 read timeout) ` tuple. build 24-Jul-2017 00:01:54 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:54 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:54 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:54 must be a path to a CA bundle to use build 24-Jul-2017 00:01:54 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:54 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:54 :rtype: requests.Response build 24-Jul-2017 00:01:54 """ build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:54 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:54 self.add_headers(request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:54 try: build 24-Jul-2017 00:01:54 connect, read = timeout build 24-Jul-2017 00:01:54 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:54 except ValueError as e: build 24-Jul-2017 00:01:54 # this may raise a string formatting error. build 24-Jul-2017 00:01:54 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:54 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:54 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:54 raise ValueError(err) build 24-Jul-2017 00:01:54 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:54 pass build 24-Jul-2017 00:01:54 else: build 24-Jul-2017 00:01:54 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 try: build 24-Jul-2017 00:01:54 if not chunked: build 24-Jul-2017 00:01:54 resp = conn.urlopen( build 24-Jul-2017 00:01:54 method=request.method, build 24-Jul-2017 00:01:54 url=url, build 24-Jul-2017 00:01:54 body=request.body, build 24-Jul-2017 00:01:54 headers=request.headers, build 24-Jul-2017 00:01:54 redirect=False, build 24-Jul-2017 00:01:54 assert_same_host=False, build 24-Jul-2017 00:01:54 preload_content=False, build 24-Jul-2017 00:01:54 decode_content=False, build 24-Jul-2017 00:01:54 retries=self.max_retries, build 24-Jul-2017 00:01:54 timeout=timeout build 24-Jul-2017 00:01:54 ) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 # Send the request. build 24-Jul-2017 00:01:54 else: build 24-Jul-2017 00:01:54 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:54 conn = conn.proxy_pool build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 try: build 24-Jul-2017 00:01:54 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:54 url, build 24-Jul-2017 00:01:54 skip_accept_encoding=True) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 for header, value in request.headers.items(): build 24-Jul-2017 00:01:54 low_conn.putheader(header, value) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 low_conn.endheaders() build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 for i in request.body: build 24-Jul-2017 00:01:54 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:54 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:54 low_conn.send(i) build 24-Jul-2017 00:01:54 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:54 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 # Receive the response from the server build 24-Jul-2017 00:01:54 try: build 24-Jul-2017 00:01:54 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:54 # responses build 24-Jul-2017 00:01:54 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:54 except TypeError: build 24-Jul-2017 00:01:54 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:54 r = low_conn.getresponse() build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:54 r, build 24-Jul-2017 00:01:54 pool=conn, build 24-Jul-2017 00:01:54 connection=low_conn, build 24-Jul-2017 00:01:54 preload_content=False, build 24-Jul-2017 00:01:54 decode_content=False build 24-Jul-2017 00:01:54 ) build 24-Jul-2017 00:01:54 except: build 24-Jul-2017 00:01:54 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:54 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:54 low_conn.close() build 24-Jul-2017 00:01:54 raise build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:54 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 except MaxRetryError as e: build 24-Jul-2017 00:01:54 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:54 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:54 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:54 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:54 raise RetryError(e, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:54 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:54 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_group_tests.xml build 24-Jul-2017 00:01:54 =========================== 4 error in 0.28 seconds ============================ build 24-Jul-2017 00:01:54 ============================= test session starts ============================== build 24-Jul-2017 00:01:54 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 24-Jul-2017 00:01:54 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 24-Jul-2017 00:01:54 plugins: pep8-1.0.6 build 24-Jul-2017 00:01:54 collected 0 items build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_tests.xml build 24-Jul-2017 00:01:54 =============================== in 0.08 seconds =============================== build 24-Jul-2017 00:01:54 ============================= test session starts ============================== build 24-Jul-2017 00:01:54 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 24-Jul-2017 00:01:54 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 24-Jul-2017 00:01:54 plugins: pep8-1.0.6 build 24-Jul-2017 00:01:54 collected 0 items build 24-Jul-2017 00:01:54 build 24-Jul-2017 00:01:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_type_tests.xml build 24-Jul-2017 00:01:54 =============================== in 0.08 seconds =============================== build 24-Jul-2017 00:01:54 ============================= test session starts ============================== build 24-Jul-2017 00:01:54 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 24-Jul-2017 00:01:54 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 24-Jul-2017 00:01:54 plugins: pep8-1.0.6 build 24-Jul-2017 00:01:55 collected 3 items build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 link_tests.py EEE build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 ==================================== ERRORS ==================================== build 24-Jul-2017 00:01:55 _________________ ERROR at setup of LinkTests.test_1_add_links _________________ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self = build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 @classmethod build 24-Jul-2017 00:01:55 def setUpClass(self): build 24-Jul-2017 00:01:55 super(LinkTests, self).setUpClass() build 24-Jul-2017 00:01:55 > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 link_tests.py:24: build 24-Jul-2017 00:01:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:55 util.py:8: in post_request build 24-Jul-2017 00:01:55 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:55 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:55 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:55 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:55 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self = build 24-Jul-2017 00:01:55 request = , stream = False build 24-Jul-2017 00:01:55 timeout = , verify = True build 24-Jul-2017 00:01:55 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:55 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:55 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:55 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:55 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:55 read timeout) ` tuple. build 24-Jul-2017 00:01:55 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:55 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:55 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:55 must be a path to a CA bundle to use build 24-Jul-2017 00:01:55 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:55 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:55 :rtype: requests.Response build 24-Jul-2017 00:01:55 """ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:55 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:55 self.add_headers(request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 connect, read = timeout build 24-Jul-2017 00:01:55 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:55 except ValueError as e: build 24-Jul-2017 00:01:55 # this may raise a string formatting error. build 24-Jul-2017 00:01:55 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:55 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:55 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:55 raise ValueError(err) build 24-Jul-2017 00:01:55 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:55 pass build 24-Jul-2017 00:01:55 else: build 24-Jul-2017 00:01:55 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 if not chunked: build 24-Jul-2017 00:01:55 resp = conn.urlopen( build 24-Jul-2017 00:01:55 method=request.method, build 24-Jul-2017 00:01:55 url=url, build 24-Jul-2017 00:01:55 body=request.body, build 24-Jul-2017 00:01:55 headers=request.headers, build 24-Jul-2017 00:01:55 redirect=False, build 24-Jul-2017 00:01:55 assert_same_host=False, build 24-Jul-2017 00:01:55 preload_content=False, build 24-Jul-2017 00:01:55 decode_content=False, build 24-Jul-2017 00:01:55 retries=self.max_retries, build 24-Jul-2017 00:01:55 timeout=timeout build 24-Jul-2017 00:01:55 ) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 # Send the request. build 24-Jul-2017 00:01:55 else: build 24-Jul-2017 00:01:55 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:55 conn = conn.proxy_pool build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:55 url, build 24-Jul-2017 00:01:55 skip_accept_encoding=True) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 for header, value in request.headers.items(): build 24-Jul-2017 00:01:55 low_conn.putheader(header, value) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 low_conn.endheaders() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 for i in request.body: build 24-Jul-2017 00:01:55 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:55 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:55 low_conn.send(i) build 24-Jul-2017 00:01:55 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:55 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 # Receive the response from the server build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:55 # responses build 24-Jul-2017 00:01:55 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:55 except TypeError: build 24-Jul-2017 00:01:55 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:55 r = low_conn.getresponse() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:55 r, build 24-Jul-2017 00:01:55 pool=conn, build 24-Jul-2017 00:01:55 connection=low_conn, build 24-Jul-2017 00:01:55 preload_content=False, build 24-Jul-2017 00:01:55 decode_content=False build 24-Jul-2017 00:01:55 ) build 24-Jul-2017 00:01:55 except: build 24-Jul-2017 00:01:55 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:55 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:55 low_conn.close() build 24-Jul-2017 00:01:55 raise build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:55 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 except MaxRetryError as e: build 24-Jul-2017 00:01:55 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:55 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:55 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:55 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:55 raise RetryError(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:55 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:55 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:55 _______________ ERROR at setup of LinkTests.test_2_get_link_list _______________ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self = build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 @classmethod build 24-Jul-2017 00:01:55 def setUpClass(self): build 24-Jul-2017 00:01:55 super(LinkTests, self).setUpClass() build 24-Jul-2017 00:01:55 > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 link_tests.py:24: build 24-Jul-2017 00:01:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:55 util.py:8: in post_request build 24-Jul-2017 00:01:55 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:55 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:55 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:55 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:55 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self = build 24-Jul-2017 00:01:55 request = , stream = False build 24-Jul-2017 00:01:55 timeout = , verify = True build 24-Jul-2017 00:01:55 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:55 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:55 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:55 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:55 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:55 read timeout) ` tuple. build 24-Jul-2017 00:01:55 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:55 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:55 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:55 must be a path to a CA bundle to use build 24-Jul-2017 00:01:55 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:55 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:55 :rtype: requests.Response build 24-Jul-2017 00:01:55 """ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:55 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:55 self.add_headers(request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 connect, read = timeout build 24-Jul-2017 00:01:55 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:55 except ValueError as e: build 24-Jul-2017 00:01:55 # this may raise a string formatting error. build 24-Jul-2017 00:01:55 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:55 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:55 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:55 raise ValueError(err) build 24-Jul-2017 00:01:55 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:55 pass build 24-Jul-2017 00:01:55 else: build 24-Jul-2017 00:01:55 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 if not chunked: build 24-Jul-2017 00:01:55 resp = conn.urlopen( build 24-Jul-2017 00:01:55 method=request.method, build 24-Jul-2017 00:01:55 url=url, build 24-Jul-2017 00:01:55 body=request.body, build 24-Jul-2017 00:01:55 headers=request.headers, build 24-Jul-2017 00:01:55 redirect=False, build 24-Jul-2017 00:01:55 assert_same_host=False, build 24-Jul-2017 00:01:55 preload_content=False, build 24-Jul-2017 00:01:55 decode_content=False, build 24-Jul-2017 00:01:55 retries=self.max_retries, build 24-Jul-2017 00:01:55 timeout=timeout build 24-Jul-2017 00:01:55 ) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 # Send the request. build 24-Jul-2017 00:01:55 else: build 24-Jul-2017 00:01:55 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:55 conn = conn.proxy_pool build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:55 url, build 24-Jul-2017 00:01:55 skip_accept_encoding=True) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 for header, value in request.headers.items(): build 24-Jul-2017 00:01:55 low_conn.putheader(header, value) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 low_conn.endheaders() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 for i in request.body: build 24-Jul-2017 00:01:55 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:55 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:55 low_conn.send(i) build 24-Jul-2017 00:01:55 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:55 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 # Receive the response from the server build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:55 # responses build 24-Jul-2017 00:01:55 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:55 except TypeError: build 24-Jul-2017 00:01:55 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:55 r = low_conn.getresponse() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:55 r, build 24-Jul-2017 00:01:55 pool=conn, build 24-Jul-2017 00:01:55 connection=low_conn, build 24-Jul-2017 00:01:55 preload_content=False, build 24-Jul-2017 00:01:55 decode_content=False build 24-Jul-2017 00:01:55 ) build 24-Jul-2017 00:01:55 except: build 24-Jul-2017 00:01:55 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:55 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:55 low_conn.close() build 24-Jul-2017 00:01:55 raise build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:55 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 except MaxRetryError as e: build 24-Jul-2017 00:01:55 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:55 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:55 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:55 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:55 raise RetryError(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:55 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:55 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:55 ______________ ERROR at setup of LinkTests.test_3_get_link_graph _______________ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self = build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 @classmethod build 24-Jul-2017 00:01:55 def setUpClass(self): build 24-Jul-2017 00:01:55 super(LinkTests, self).setUpClass() build 24-Jul-2017 00:01:55 > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 link_tests.py:24: build 24-Jul-2017 00:01:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:55 util.py:8: in post_request build 24-Jul-2017 00:01:55 r = requests.post(url, json=payload, headers=headers) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:112: in post build 24-Jul-2017 00:01:55 return request('post', url, data=data, json=json, **kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:58: in request build 24-Jul-2017 00:01:55 return session.request(method=method, url=url, **kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:502: in request build 24-Jul-2017 00:01:55 resp = self.send(prep, **send_kwargs) build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:612: in send build 24-Jul-2017 00:01:55 r = adapter.send(request, **kwargs) build 24-Jul-2017 00:01:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self = build 24-Jul-2017 00:01:55 request = , stream = False build 24-Jul-2017 00:01:55 timeout = , verify = True build 24-Jul-2017 00:01:55 cert = None, proxies = OrderedDict() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): build 24-Jul-2017 00:01:55 """Sends PreparedRequest object. Returns Response object. build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 :param request: The :class:`PreparedRequest ` being sent. build 24-Jul-2017 00:01:55 :param stream: (optional) Whether to stream the request content. build 24-Jul-2017 00:01:55 :param timeout: (optional) How long to wait for the server to send build 24-Jul-2017 00:01:55 data before giving up, as a float, or a :ref:`(connect timeout, build 24-Jul-2017 00:01:55 read timeout) ` tuple. build 24-Jul-2017 00:01:55 :type timeout: float or tuple or urllib3 Timeout object build 24-Jul-2017 00:01:55 :param verify: (optional) Either a boolean, in which case it controls whether build 24-Jul-2017 00:01:55 we verify the server's TLS certificate, or a string, in which case it build 24-Jul-2017 00:01:55 must be a path to a CA bundle to use build 24-Jul-2017 00:01:55 :param cert: (optional) Any user-provided SSL certificate to be trusted. build 24-Jul-2017 00:01:55 :param proxies: (optional) The proxies dictionary to apply to the request. build 24-Jul-2017 00:01:55 :rtype: requests.Response build 24-Jul-2017 00:01:55 """ build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 conn = self.get_connection(request.url, proxies) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 self.cert_verify(conn, request.url, verify, cert) build 24-Jul-2017 00:01:55 url = self.request_url(request, proxies) build 24-Jul-2017 00:01:55 self.add_headers(request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 chunked = not (request.body is None or 'Content-Length' in request.headers) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(timeout, tuple): build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 connect, read = timeout build 24-Jul-2017 00:01:55 timeout = TimeoutSauce(connect=connect, read=read) build 24-Jul-2017 00:01:55 except ValueError as e: build 24-Jul-2017 00:01:55 # this may raise a string formatting error. build 24-Jul-2017 00:01:55 err = ("Invalid timeout {0}. Pass a (connect, read) " build 24-Jul-2017 00:01:55 "timeout tuple, or a single float to set " build 24-Jul-2017 00:01:55 "both timeouts to the same value".format(timeout)) build 24-Jul-2017 00:01:55 raise ValueError(err) build 24-Jul-2017 00:01:55 elif isinstance(timeout, TimeoutSauce): build 24-Jul-2017 00:01:55 pass build 24-Jul-2017 00:01:55 else: build 24-Jul-2017 00:01:55 timeout = TimeoutSauce(connect=timeout, read=timeout) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 if not chunked: build 24-Jul-2017 00:01:55 resp = conn.urlopen( build 24-Jul-2017 00:01:55 method=request.method, build 24-Jul-2017 00:01:55 url=url, build 24-Jul-2017 00:01:55 body=request.body, build 24-Jul-2017 00:01:55 headers=request.headers, build 24-Jul-2017 00:01:55 redirect=False, build 24-Jul-2017 00:01:55 assert_same_host=False, build 24-Jul-2017 00:01:55 preload_content=False, build 24-Jul-2017 00:01:55 decode_content=False, build 24-Jul-2017 00:01:55 retries=self.max_retries, build 24-Jul-2017 00:01:55 timeout=timeout build 24-Jul-2017 00:01:55 ) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 # Send the request. build 24-Jul-2017 00:01:55 else: build 24-Jul-2017 00:01:55 if hasattr(conn, 'proxy_pool'): build 24-Jul-2017 00:01:55 conn = conn.proxy_pool build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 low_conn.putrequest(request.method, build 24-Jul-2017 00:01:55 url, build 24-Jul-2017 00:01:55 skip_accept_encoding=True) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 for header, value in request.headers.items(): build 24-Jul-2017 00:01:55 low_conn.putheader(header, value) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 low_conn.endheaders() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 for i in request.body: build 24-Jul-2017 00:01:55 low_conn.send(hex(len(i))[2:].encode('utf-8')) build 24-Jul-2017 00:01:55 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:55 low_conn.send(i) build 24-Jul-2017 00:01:55 low_conn.send(b'\r\n') build 24-Jul-2017 00:01:55 low_conn.send(b'0\r\n\r\n') build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 # Receive the response from the server build 24-Jul-2017 00:01:55 try: build 24-Jul-2017 00:01:55 # For Python 2.7+ versions, use buffering of HTTP build 24-Jul-2017 00:01:55 # responses build 24-Jul-2017 00:01:55 r = low_conn.getresponse(buffering=True) build 24-Jul-2017 00:01:55 except TypeError: build 24-Jul-2017 00:01:55 # For compatibility with Python 2.6 versions and back build 24-Jul-2017 00:01:55 r = low_conn.getresponse() build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 resp = HTTPResponse.from_httplib( build 24-Jul-2017 00:01:55 r, build 24-Jul-2017 00:01:55 pool=conn, build 24-Jul-2017 00:01:55 connection=low_conn, build 24-Jul-2017 00:01:55 preload_content=False, build 24-Jul-2017 00:01:55 decode_content=False build 24-Jul-2017 00:01:55 ) build 24-Jul-2017 00:01:55 except: build 24-Jul-2017 00:01:55 # If we hit any problems here, clean up the connection. build 24-Jul-2017 00:01:55 # Then, reraise so that we can handle the actual exception. build 24-Jul-2017 00:01:55 low_conn.close() build 24-Jul-2017 00:01:55 raise build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 except (ProtocolError, socket.error) as err: build 24-Jul-2017 00:01:55 raise ConnectionError(err, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 except MaxRetryError as e: build 24-Jul-2017 00:01:55 if isinstance(e.reason, ConnectTimeoutError): build 24-Jul-2017 00:01:55 # TODO: Remove this in 3.0.0: see #2811 build 24-Jul-2017 00:01:55 if not isinstance(e.reason, NewConnectionError): build 24-Jul-2017 00:01:55 raise ConnectTimeout(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(e.reason, ResponseError): build 24-Jul-2017 00:01:55 raise RetryError(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 if isinstance(e.reason, _ProxyError): build 24-Jul-2017 00:01:55 raise ProxyError(e, request=request) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 > raise ConnectionError(e, request=request) build 24-Jul-2017 00:01:55 E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',)) build 24-Jul-2017 00:01:55 build 24-Jul-2017 00:01:55 /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:504: ConnectionError build 24-Jul-2017 00:01:55 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_link_tests.xml build 24-Jul-2017 00:01:55 =========================== 3 error in 0.49 seconds ============================ simple 24-Jul-2017 00:01:55 Finished task 'Run tests' with result: Success simple 24-Jul-2017 00:01:55 Starting task 'Pep8 tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command' command 24-Jul-2017 00:01:55 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #641 (INFRA-PROP-JOB1-641)'\n ... running command line: \n/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml\n ... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\n ... using extra environment variables: \nbamboo_planRepository_1_branch=master\nbamboo_repository_18776066_branch_name=master\nbamboo_repository_18776066_git_username=\nbamboo_repository_revision_number=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-641\nbamboo_planRepository_1_name=propertyservice\nbamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\nbamboo_buildKey=INFRA-PROP-JOB1\nbamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose\nbamboo_repository_18776066_name=propertyservice\nbamboo_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=641\nbamboo_shortJobName=Default Job\nbamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run\nbamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-641\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_agentId=131073\nbamboo_planName=FLARECAST - propertyservice\nbamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_7=/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-641-ScriptBuildTask-2142346670916860894.sh\nbamboo_shortPlanKey=PROP\nbamboo_repository_18776066_git_branch=master\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_previous_revision_number=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_buildTimeStamp=2017-07-24T00:00:31.036+02:00\nbamboo_planRepository_previousRevision=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh\nbamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test\nbamboo_buildResultKey=INFRA-PROP-JOB1-641\nbamboo_capability_system_builder_command_Docker=/usr/bin/docker\nbamboo_repository_git_branch=master\nbamboo_repository_branch_name=master\nbamboo_buildPlanName=FLARECAST - propertyservice - Default Job\nbamboo_planRepository_1_revision=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_18776066_revision_number=2243c535cba8ec933b7c32bb1bb2953253546757\nbamboo_repository_name=propertyservice\nbamboo_planRepository_branch=master\nbamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_planRepository_1_previousRevision=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_repository_git_username=\nbamboo_planRepository_1_type=stash-rep\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_repository_18776066_previous_revision_number=671177684813bbfba4f60f20244089cca1d93fe5\nbamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1\nbamboo_planKey=INFRA-PROP\nbamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_planRepository_username=\nbamboo_repository_18776066_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 24-Jul-2017 00:01:56 ============================= test session starts ============================== build 24-Jul-2017 00:01:56 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 24-Jul-2017 00:01:56 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1, inifile: build 24-Jul-2017 00:01:56 plugins: pep8-1.0.6 build 24-Jul-2017 00:01:56 collected 24 items build 24-Jul-2017 00:01:56 build 24-Jul-2017 00:01:56 main.py . build 24-Jul-2017 00:01:56 propertyservice/__init__.py . build 24-Jul-2017 00:01:56 propertyservice/config.py . build 24-Jul-2017 00:01:56 propertyservice/sirql_util.py . build 24-Jul-2017 00:01:56 propertyservice/util.py . build 24-Jul-2017 00:01:56 propertyservice/data/__init__.py . build 24-Jul-2017 00:01:56 propertyservice/data/property_dao.py . build 24-Jul-2017 00:01:56 propertyservice/routes/__init__.py . build 24-Jul-2017 00:01:56 propertyservice/routes/analysis.py . build 24-Jul-2017 00:01:56 propertyservice/routes/dataset.py . build 24-Jul-2017 00:01:56 propertyservice/routes/link.py . build 24-Jul-2017 00:01:56 propertyservice/routes/property_group.py . build 24-Jul-2017 00:01:56 propertyservice/routes/property_types.py . build 24-Jul-2017 00:01:56 propertyservice/routes/summary.py . build 24-Jul-2017 00:01:56 tests/__init__.py . build 24-Jul-2017 00:01:56 tests/base_test_case.py . build 24-Jul-2017 00:01:56 tests/cleanup_docker_env.py . build 24-Jul-2017 00:01:56 tests/dataset_tests.py . build 24-Jul-2017 00:01:56 tests/link_tests.py . build 24-Jul-2017 00:01:56 tests/property_group_tests.py . build 24-Jul-2017 00:01:56 tests/property_tests.py . build 24-Jul-2017 00:01:56 tests/property_type_tests.py . build 24-Jul-2017 00:01:56 tests/setup_docker_env.py . build 24-Jul-2017 00:01:56 tests/util.py . build 24-Jul-2017 00:01:56 build 24-Jul-2017 00:01:56 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/pep8_results.xml build 24-Jul-2017 00:01:56 ========================== 24 passed in 0.31 seconds =========================== simple 24-Jul-2017 00:01:56 Finished task 'Pep8 tests' with result: Success simple 24-Jul-2017 00:01:56 Starting task 'Parse pytest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit' simple 24-Jul-2017 00:01:56 Parsing test results under /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1... simple 24-Jul-2017 00:01:56 Failing task since 10 failing test cases were found. simple 24-Jul-2017 00:01:56 Finished task 'Parse pytest output' with result: Failed simple 24-Jul-2017 00:01:56 Running post build plugin 'NCover Results Collector' simple 24-Jul-2017 00:01:56 Running post build plugin 'Artifact Copier' simple 24-Jul-2017 00:01:56 Running post build plugin 'Sauce OnDemand Post Runner' simple 24-Jul-2017 00:01:56 Running post build plugin 'npm Cache Cleanup' simple 24-Jul-2017 00:01:56 Running post build plugin 'Clover Results Collector' simple 24-Jul-2017 00:01:56 Running post build plugin 'Docker Container Cleanup' simple 24-Jul-2017 00:01:56 Finalising the build... simple 24-Jul-2017 00:01:56 Stopping timer. simple 24-Jul-2017 00:01:56 Build INFRA-PROP-JOB1-641 completed. simple 24-Jul-2017 00:01:56 Running on server: post build plugin 'NCover Results Collector' simple 24-Jul-2017 00:01:56 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 24-Jul-2017 00:01:56 Running on server: post build plugin 'Clover Delta Calculator' simple 24-Jul-2017 00:01:56 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 24-Jul-2017 00:01:56 All post build plugins have finished simple 24-Jul-2017 00:01:56 Generating build results summary... simple 24-Jul-2017 00:01:57 Saving build results to disk... simple 24-Jul-2017 00:01:57 Logging substituted variables... simple 24-Jul-2017 00:01:57 Indexing build results... simple 24-Jul-2017 00:01:57 Finished building INFRA-PROP-JOB1-641.