simple 19-Jul-2016 17:52:10 Build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354) started building on agent Default Agent simple 19-Jul-2016 17:52:10 simple 19-Jul-2016 17:52:10 Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 simple 19-Jul-2016 17:52:10 Executing build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354) simple 19-Jul-2016 17:52:10 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 19-Jul-2016 17:52:10 Build always requires a clean checkout simple 19-Jul-2016 17:52:10 Cleaning build directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1' simple 19-Jul-2016 17:52:10 Updating source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc simple 19-Jul-2016 17:52:10 Fetching 'refs/heads/master' from 'ssh://git@localhost:7999/fe/propertyservice.git'. simple 19-Jul-2016 17:52:10 Warning: Permanently added '[127.0.0.1]:36628' (RSA) to the list of known hosts. simple 19-Jul-2016 17:52:11 Checking out revision b524294ccde3d9bb69090107037cfb4f00733fbc. simple 19-Jul-2016 17:52:11 Creating local git repository in '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/.git'. simple 19-Jul-2016 17:52:11 Cloning into '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1'... simple 19-Jul-2016 17:52:11 Already on 'master' simple 19-Jul-2016 17:52:11 Your branch is up-to-date with 'origin/master'. simple 19-Jul-2016 17:52:11 Updated source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc simple 19-Jul-2016 17:52:11 Finished task 'Checkout Default Repository' with result: Success simple 19-Jul-2016 17:52:11 Running pre-build action: VCS Version Collector simple 19-Jul-2016 17:52:12 Running pre-build action: Sauce OnDemand Build Configurator simple 19-Jul-2016 17:52:12 Starting task 'Build' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 19-Jul-2016 17:52:12 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'\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_dependency_parent_0=INFRA-BASE-314\nbamboo_dependency_parent_total=1\nbamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354\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_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=354\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-354\nbamboo_repository_2785292_branch_name=master\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_agentId=131073\nbamboo_planName=FLARECAST - propertyservice\nbamboo_shortPlanKey=PROP\nbamboo_repository_2785292_git_username=\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_buildTimeStamp=2016-07-19T17:52:03.923+02:00\nbamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test\nbamboo_buildResultKey=INFRA-PROP-JOB1-354\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=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_name=propertyservice\nbamboo_repository_2785292_git_branch=master\nbamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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=b524294ccde3d9bb69090107037cfb4f00733fbc\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_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_2785292_name=propertyservice\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\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/fe/propertyservice.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 19-Jul-2016 17:52:12 Sending build context to Docker daemon 137.7 kB build 19-Jul-2016 17:52:12 build 19-Jul-2016 17:52:12 Step 1 : FROM flarecast/python-base build 19-Jul-2016 17:52:12 ---> 8bd20b588913 build 19-Jul-2016 17:52:12 Step 2 : MAINTAINER i4Ds build 19-Jul-2016 17:52:12 ---> Using cache build 19-Jul-2016 17:52:12 ---> 2e1c52b4efbd build 19-Jul-2016 17:52:12 Step 3 : COPY . ./property_service build 19-Jul-2016 17:52:12 ---> 69f10f66dcb4 build 19-Jul-2016 17:52:12 Removing intermediate container c3e2d102b9af build 19-Jul-2016 17:52:12 Step 4 : WORKDIR ./property_service build 19-Jul-2016 17:52:12 ---> Running in ee5eacdf7c31 build 19-Jul-2016 17:52:12 ---> 1a031d85c198 build 19-Jul-2016 17:52:12 Removing intermediate container ee5eacdf7c31 build 19-Jul-2016 17:52:12 Step 5 : LABEL eu.flarecast.type "system" eu.flarecast.name "propertyservice" build 19-Jul-2016 17:52:12 ---> Running in 352ffb91213c build 19-Jul-2016 17:52:12 ---> 975366c5856e build 19-Jul-2016 17:52:12 Removing intermediate container 352ffb91213c build 19-Jul-2016 17:52:12 Step 6 : CMD uwsgi --http :8002 -w main -p 16 build 19-Jul-2016 17:52:12 ---> Running in 7be3d056f268 build 19-Jul-2016 17:52:12 ---> ac2ab262c26c build 19-Jul-2016 17:52:12 Removing intermediate container 7be3d056f268 build 19-Jul-2016 17:52:12 Successfully built ac2ab262c26c simple 19-Jul-2016 17:52:12 Finished task 'Build' with result: Success simple 19-Jul-2016 17:52:12 Starting task 'Run tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 19-Jul-2016 17:52:12 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'\n ... running command line: \n/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-4989961792435574524.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_dependency_parent_0=INFRA-BASE-314\nbamboo_dependency_parent_total=1\nbamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354\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_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=354\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-354\nbamboo_repository_2785292_branch_name=master\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_agentId=131073\nbamboo_planName=FLARECAST - propertyservice\nbamboo_shortPlanKey=PROP\nbamboo_repository_2785292_git_username=\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_buildTimeStamp=2016-07-19T17:52:03.923+02:00\nbamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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-354\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=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_name=propertyservice\nbamboo_repository_2785292_git_branch=master\nbamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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=b524294ccde3d9bb69090107037cfb4f00733fbc\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_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_2785292_name=propertyservice\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\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/fe/propertyservice.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 19-Jul-2016 17:52:34 ============================= test session starts ============================== build 19-Jul-2016 17:52:34 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 17:52:34 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 17:52:34 plugins: pep8-1.0.6 build 19-Jul-2016 17:52:34 collected 4 items build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 provenance_tests.py .... build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_provenance_tests.xml build 19-Jul-2016 17:52:34 =========================== 4 passed in 0.20 seconds =========================== build 19-Jul-2016 17:52:34 ============================= test session starts ============================== build 19-Jul-2016 17:52:34 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 17:52:34 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 17:52:34 plugins: pep8-1.0.6 build 19-Jul-2016 17:52:34 collected 2 items build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 property_group_tests.py FF build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 =================================== FAILURES =================================== build 19-Jul-2016 17:52:34 _____________ PropertyGroupTests.test_add_multiple_property_groups _____________ build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 self = build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 def test_add_multiple_property_groups(self): build 19-Jul-2016 17:52:34 result = self.client.insert_regions( build 19-Jul-2016 17:52:34 TEST_DATASET, build 19-Jul-2016 17:52:34 [TEST_PGT_OBJECT, TEST_PGT_OBJECT_WITH_DATA] build 19-Jul-2016 17:52:34 ) build 19-Jul-2016 17:52:34 > self.assertEqual(2, len(result)) build 19-Jul-2016 17:52:34 E AssertionError: 2 != 1 build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 property_group_tests.py:25: AssertionError build 19-Jul-2016 17:52:34 ________________ PropertyGroupTests.test_add_one_property_group ________________ build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 self = build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 def test_add_one_property_group(self): build 19-Jul-2016 17:52:34 result = self.client.add_region( build 19-Jul-2016 17:52:34 TEST_DATASET, build 19-Jul-2016 17:52:34 > time_start=TEST_PGT_TIME_START build 19-Jul-2016 17:52:34 ) build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 property_group_tests.py:16: build 19-Jul-2016 17:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 19-Jul-2016 17:52:34 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:83: in add_region build 19-Jul-2016 17:52:34 return self.__post_request(url, group) build 19-Jul-2016 17:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 url = 'http://localhost:8002/region/test_ds' build 19-Jul-2016 17:52:34 payload = {'time_start': '2002-01-01T00:00:00Z'} build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 @staticmethod build 19-Jul-2016 17:52:34 def __post_request(url, payload): build 19-Jul-2016 17:52:34 headers = {'Content-Type': 'application/json'} build 19-Jul-2016 17:52:34 r = requests.post(url, json=payload, headers=headers) build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 if r.status_code != 200: build 19-Jul-2016 17:52:34 > raise RestException(r) build 19-Jul-2016 17:52:34 E RestException: { build 19-Jul-2016 17:52:34 E "status": 500, build 19-Jul-2016 17:52:34 E "type": "about:blank", build 19-Jul-2016 17:52:34 E "detail": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", build 19-Jul-2016 17:52:34 E "title": "Internal Server Error" build 19-Jul-2016 17:52:34 E } build 19-Jul-2016 17:52:34 build 19-Jul-2016 17:52:34 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:196: RestException build 19-Jul-2016 17:52:34 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_group_tests.xml build 19-Jul-2016 17:52:34 =========================== 2 failed in 0.12 seconds =========================== build 19-Jul-2016 17:52:35 ============================= test session starts ============================== build 19-Jul-2016 17:52:35 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 17:52:35 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 17:52:35 plugins: pep8-1.0.6 build 19-Jul-2016 17:52:35 collected 4 items build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 property_tests.py ...s build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_tests.xml build 19-Jul-2016 17:52:35 ===================== 3 passed, 1 skipped in 0.16 seconds ====================== build 19-Jul-2016 17:52:35 ============================= test session starts ============================== build 19-Jul-2016 17:52:35 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 17:52:35 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 17:52:35 plugins: pep8-1.0.6 build 19-Jul-2016 17:52:35 collected 0 items build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_type_tests.xml build 19-Jul-2016 17:52:35 =============================== in 0.05 seconds =============================== build 19-Jul-2016 17:52:35 ============================= test session starts ============================== build 19-Jul-2016 17:52:35 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 17:52:35 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 17:52:35 plugins: pep8-1.0.6 build 19-Jul-2016 17:52:35 collected 2 items build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 link_tests.py Fs build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 =================================== FAILURES =================================== build 19-Jul-2016 17:52:35 ___________________________ LinkTests.test_add_link ____________________________ build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 self = build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 def test_add_link(self): build 19-Jul-2016 17:52:35 result = self.client.add_link(self.flarecast_ids[0], build 19-Jul-2016 17:52:35 > self.flarecast_ids[1], build 19-Jul-2016 17:52:35 'test link', build 19-Jul-2016 17:52:35 'test description') build 19-Jul-2016 17:52:35 E IndexError: list index out of range build 19-Jul-2016 17:52:35 build 19-Jul-2016 17:52:35 link_tests.py:19: IndexError build 19-Jul-2016 17:52:35 ----------------------------- Captured stdout call ----------------------------- build 19-Jul-2016 17:52:35 [u'flarecast-test_ds-cf3d6bb6-4dc8-11e6-a7e6-0242ac110003'] build 19-Jul-2016 17:52:35 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_link_tests.xml build 19-Jul-2016 17:52:35 ===================== 1 failed, 1 skipped in 0.08 seconds ====================== build 19-Jul-2016 17:52:36 ============================= test session starts ============================== build 19-Jul-2016 17:52:36 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 17:52:36 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 17:52:36 plugins: pep8-1.0.6 build 19-Jul-2016 17:52:36 collected 3 items build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 query_tests.py FF. build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 =================================== FAILURES =================================== build 19-Jul-2016 17:52:36 ___________________ QueryTests.test_get_all_property_groups ____________________ build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 self = build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 def test_get_all_property_groups(self): build 19-Jul-2016 17:52:36 groups = self.client.get_properties(TEST_DATASET) build 19-Jul-2016 17:52:36 > self.assertEqual(3, len(groups)) build 19-Jul-2016 17:52:36 E AssertionError: 3 != 1 build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 query_tests.py:18: AssertionError build 19-Jul-2016 17:52:36 _______________ QueryTests.test_get_all_property_groups_with_eq ________________ build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 self = build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 def test_get_all_property_groups_with_eq(self): build 19-Jul-2016 17:52:36 groups = self.client.get_properties(TEST_DATASET, build 19-Jul-2016 17:52:36 'test1=eq(500)') build 19-Jul-2016 17:52:36 > self.assertEqual(2, len(groups)) build 19-Jul-2016 17:52:36 E AssertionError: 2 != 1 build 19-Jul-2016 17:52:36 build 19-Jul-2016 17:52:36 query_tests.py:28: AssertionError build 19-Jul-2016 17:52:36 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_query_tests.xml build 19-Jul-2016 17:52:36 ====================== 2 failed, 1 passed in 0.13 seconds ====================== simple 19-Jul-2016 17:52:38 Finished task 'Run tests' with result: Success simple 19-Jul-2016 17:52:38 Starting task 'Pep8 tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command' command 19-Jul-2016 17:52:38 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'\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_dependency_parent_0=INFRA-BASE-314\nbamboo_dependency_parent_total=1\nbamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354\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_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=354\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-354\nbamboo_repository_2785292_branch_name=master\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/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-354-ScriptBuildTask-4989961792435574524.sh\nbamboo_shortPlanKey=PROP\nbamboo_repository_2785292_git_username=\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_buildTimeStamp=2016-07-19T17:52:03.923+02:00\nbamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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-354\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=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_name=propertyservice\nbamboo_repository_2785292_git_branch=master\nbamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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=b524294ccde3d9bb69090107037cfb4f00733fbc\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_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_2785292_name=propertyservice\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\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/fe/propertyservice.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 19-Jul-2016 17:52:38 ============================= test session starts ============================== build 19-Jul-2016 17:52:38 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 17:52:38 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1, inifile: build 19-Jul-2016 17:52:38 plugins: pep8-1.0.6 build 19-Jul-2016 17:52:38 collected 27 items build 19-Jul-2016 17:52:38 build 19-Jul-2016 17:52:38 main.py . build 19-Jul-2016 17:52:38 propertyservice/__init__.py . build 19-Jul-2016 17:52:38 propertyservice/config.py . build 19-Jul-2016 17:52:38 propertyservice/util.py . build 19-Jul-2016 17:52:38 propertyservice/data/__init__.py . build 19-Jul-2016 17:52:38 propertyservice/data/extended_queries.py . build 19-Jul-2016 17:52:38 propertyservice/data/property_db_data_source.py . build 19-Jul-2016 17:52:38 propertyservice/data/property_db_query_engine.py . build 19-Jul-2016 17:52:38 propertyservice/data/type_evaluator.py . build 19-Jul-2016 17:52:38 propertyservice/routes/__init__.py . build 19-Jul-2016 17:52:38 propertyservice/routes/dataset.py . build 19-Jul-2016 17:52:38 propertyservice/routes/link.py . build 19-Jul-2016 17:52:38 propertyservice/routes/property.py . build 19-Jul-2016 17:52:38 propertyservice/routes/property_group.py . build 19-Jul-2016 17:52:38 propertyservice/routes/property_type.py . build 19-Jul-2016 17:52:38 propertyservice/routes/query.py . build 19-Jul-2016 17:52:38 propertyservice/routes/query_builder.py . build 19-Jul-2016 17:52:38 tests/__init__.py . build 19-Jul-2016 17:52:38 tests/base_test_case.py . build 19-Jul-2016 17:52:38 tests/cleanup_docker_env.py . build 19-Jul-2016 17:52:38 tests/link_tests.py . build 19-Jul-2016 17:52:38 tests/property_group_tests.py . build 19-Jul-2016 17:52:38 tests/property_tests.py . build 19-Jul-2016 17:52:38 tests/property_type_tests.py . build 19-Jul-2016 17:52:38 tests/provenance_tests.py . build 19-Jul-2016 17:52:38 tests/query_tests.py . build 19-Jul-2016 17:52:38 tests/setup_docker_env.py . build 19-Jul-2016 17:52:38 build 19-Jul-2016 17:52:38 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/pep8_results.xml build 19-Jul-2016 17:52:38 ========================== 27 passed in 0.18 seconds =========================== simple 19-Jul-2016 17:52:38 Finished task 'Pep8 tests' with result: Success simple 19-Jul-2016 17:52:38 Starting task 'Parse pytest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit' simple 19-Jul-2016 17:52:38 Parsing test results under /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1... simple 19-Jul-2016 17:52:38 Failing task since 5 failing test cases were found. simple 19-Jul-2016 17:52:38 Finished task 'Parse pytest output' with result: Failed simple 19-Jul-2016 17:52:38 Running post build plugin 'NCover Results Collector' simple 19-Jul-2016 17:52:38 Running post build plugin 'Artifact Copier' simple 19-Jul-2016 17:52:38 Running post build plugin 'Sauce OnDemand Post Runner' simple 19-Jul-2016 17:52:38 Running post build plugin 'npm Cache Cleanup' simple 19-Jul-2016 17:52:38 Running post build plugin 'Clover Results Collector' simple 19-Jul-2016 17:52:38 Running post build plugin 'Docker Container Cleanup' simple 19-Jul-2016 17:52:38 Finalising the build... simple 19-Jul-2016 17:52:38 Stopping timer. simple 19-Jul-2016 17:52:38 Build INFRA-PROP-JOB1-354 completed. simple 19-Jul-2016 17:52:38 Running on server: post build plugin 'NCover Results Collector' simple 19-Jul-2016 17:52:38 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 19-Jul-2016 17:52:38 Running on server: post build plugin 'Clover Delta Calculator' simple 19-Jul-2016 17:52:38 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 19-Jul-2016 17:52:38 All post build plugins have finished simple 19-Jul-2016 17:52:38 Generating build results summary... simple 19-Jul-2016 17:52:38 Saving build results to disk... simple 19-Jul-2016 17:52:38 Logging substituted variables... simple 19-Jul-2016 17:52:38 Indexing build results... simple 19-Jul-2016 17:52:38 Finished building INFRA-PROP-JOB1-354. simple 19-Jul-2016 18:14:29 Build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354) started building on agent Default Agent simple 19-Jul-2016 18:14:29 simple 19-Jul-2016 18:14:29 Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 simple 19-Jul-2016 18:14:29 Executing build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354) simple 19-Jul-2016 18:14:29 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 19-Jul-2016 18:14:29 Build always requires a clean checkout simple 19-Jul-2016 18:14:29 Cleaning build directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1' simple 19-Jul-2016 18:14:29 Updating source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc simple 19-Jul-2016 18:14:30 Fetching 'refs/heads/master' from 'ssh://git@localhost:7999/fe/propertyservice.git'. simple 19-Jul-2016 18:14:30 Warning: Permanently added '[127.0.0.1]:36628' (RSA) to the list of known hosts. simple 19-Jul-2016 18:14:30 Checking out revision b524294ccde3d9bb69090107037cfb4f00733fbc. simple 19-Jul-2016 18:14:30 Creating local git repository in '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/.git'. simple 19-Jul-2016 18:14:30 Cloning into '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1'... simple 19-Jul-2016 18:14:30 Already on 'master' simple 19-Jul-2016 18:14:30 Your branch is up-to-date with 'origin/master'. simple 19-Jul-2016 18:14:30 Updated source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc simple 19-Jul-2016 18:14:30 Finished task 'Checkout Default Repository' with result: Success simple 19-Jul-2016 18:14:30 Running pre-build action: VCS Version Collector simple 19-Jul-2016 18:14:30 Running pre-build action: Sauce OnDemand Build Configurator simple 19-Jul-2016 18:14:30 Starting task 'Build' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 19-Jul-2016 18:14:30 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'\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_dependency_parent_0=INFRA-BASE-314\nbamboo_dependency_parent_total=1\nbamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354\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_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=354\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-354\nbamboo_repository_2785292_branch_name=master\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/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-354-ScriptBuildTask-4989961792435574524.sh\nbamboo_shortPlanKey=PROP\nbamboo_repository_2785292_git_username=\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_buildTimeStamp=2016-07-19T18:14:29.076+02:00\nbamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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-354\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=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_name=propertyservice\nbamboo_repository_2785292_git_branch=master\nbamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_planRepository_branch=master\nbamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_repository_git_username=\nbamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_planRepository_1_type=stash-rep\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_2785292_name=propertyservice\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_DependencyTriggerReason_triggeringBuildResultKey=INFRA-BASE-314\nbamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_command_6=/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml\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/fe/propertyservice.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 19-Jul-2016 18:14:30 Sending build context to Docker daemon 137.7 kB build 19-Jul-2016 18:14:30 build 19-Jul-2016 18:14:30 Step 1 : FROM flarecast/python-base build 19-Jul-2016 18:14:30 ---> 8bd20b588913 build 19-Jul-2016 18:14:30 Step 2 : MAINTAINER i4Ds build 19-Jul-2016 18:14:30 ---> Using cache build 19-Jul-2016 18:14:30 ---> 2e1c52b4efbd build 19-Jul-2016 18:14:30 Step 3 : COPY . ./property_service build 19-Jul-2016 18:14:31 ---> 73c95b2fad97 build 19-Jul-2016 18:14:31 Removing intermediate container db796da9b6b1 build 19-Jul-2016 18:14:31 Step 4 : WORKDIR ./property_service build 19-Jul-2016 18:14:31 ---> Running in d79ce52fa9ae build 19-Jul-2016 18:14:31 ---> af82101321ea build 19-Jul-2016 18:14:31 Removing intermediate container d79ce52fa9ae build 19-Jul-2016 18:14:31 Step 5 : LABEL eu.flarecast.type "system" eu.flarecast.name "propertyservice" build 19-Jul-2016 18:14:31 ---> Running in b777f0a76d92 build 19-Jul-2016 18:14:31 ---> 29cb96eecb71 build 19-Jul-2016 18:14:31 Removing intermediate container b777f0a76d92 build 19-Jul-2016 18:14:31 Step 6 : CMD uwsgi --http :8002 -w main -p 16 build 19-Jul-2016 18:14:31 ---> Running in e79138aa4ee7 build 19-Jul-2016 18:14:31 ---> 584e5f0337e4 build 19-Jul-2016 18:14:31 Removing intermediate container e79138aa4ee7 build 19-Jul-2016 18:14:31 Successfully built 584e5f0337e4 simple 19-Jul-2016 18:14:32 Finished task 'Build' with result: Success simple 19-Jul-2016 18:14:32 Starting task 'Run tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 19-Jul-2016 18:14:32 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'\n ... running command line: \n/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-254362499466697886.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_dependency_parent_0=INFRA-BASE-314\nbamboo_dependency_parent_total=1\nbamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354\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_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=354\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-354\nbamboo_repository_2785292_branch_name=master\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/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-354-ScriptBuildTask-4989961792435574524.sh\nbamboo_shortPlanKey=PROP\nbamboo_repository_2785292_git_username=\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_buildTimeStamp=2016-07-19T18:14:29.076+02:00\nbamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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-354\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=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_name=propertyservice\nbamboo_repository_2785292_git_branch=master\nbamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_planRepository_branch=master\nbamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_repository_git_username=\nbamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_planRepository_1_type=stash-rep\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_2785292_name=propertyservice\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_DependencyTriggerReason_triggeringBuildResultKey=INFRA-BASE-314\nbamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_command_6=/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml\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/fe/propertyservice.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 19-Jul-2016 18:14:53 ============================= test session starts ============================== build 19-Jul-2016 18:14:53 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 18:14:53 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 18:14:53 plugins: pep8-1.0.6 build 19-Jul-2016 18:14:53 collected 4 items build 19-Jul-2016 18:14:53 build 19-Jul-2016 18:14:53 provenance_tests.py .... build 19-Jul-2016 18:14:53 build 19-Jul-2016 18:14:53 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_provenance_tests.xml build 19-Jul-2016 18:14:53 =========================== 4 passed in 0.15 seconds =========================== build 19-Jul-2016 18:14:53 ============================= test session starts ============================== build 19-Jul-2016 18:14:53 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 18:14:53 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 18:14:53 plugins: pep8-1.0.6 build 19-Jul-2016 18:14:53 collected 2 items build 19-Jul-2016 18:14:53 build 19-Jul-2016 18:14:54 property_group_tests.py FF build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 =================================== FAILURES =================================== build 19-Jul-2016 18:14:54 _____________ PropertyGroupTests.test_add_multiple_property_groups _____________ build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 self = build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 def test_add_multiple_property_groups(self): build 19-Jul-2016 18:14:54 result = self.client.insert_regions( build 19-Jul-2016 18:14:54 TEST_DATASET, build 19-Jul-2016 18:14:54 [TEST_PGT_OBJECT, TEST_PGT_OBJECT_WITH_DATA] build 19-Jul-2016 18:14:54 ) build 19-Jul-2016 18:14:54 > self.assertEqual(2, len(result)) build 19-Jul-2016 18:14:54 E AssertionError: 2 != 1 build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 property_group_tests.py:25: AssertionError build 19-Jul-2016 18:14:54 ________________ PropertyGroupTests.test_add_one_property_group ________________ build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 self = build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 def test_add_one_property_group(self): build 19-Jul-2016 18:14:54 result = self.client.add_region( build 19-Jul-2016 18:14:54 TEST_DATASET, build 19-Jul-2016 18:14:54 > time_start=TEST_PGT_TIME_START build 19-Jul-2016 18:14:54 ) build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 property_group_tests.py:16: build 19-Jul-2016 18:14:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 19-Jul-2016 18:14:54 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:83: in add_region build 19-Jul-2016 18:14:54 return self.__post_request(url, group) build 19-Jul-2016 18:14:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 url = 'http://localhost:8002/region/test_ds' build 19-Jul-2016 18:14:54 payload = {'time_start': '2002-01-01T00:00:00Z'} build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 @staticmethod build 19-Jul-2016 18:14:54 def __post_request(url, payload): build 19-Jul-2016 18:14:54 headers = {'Content-Type': 'application/json'} build 19-Jul-2016 18:14:54 r = requests.post(url, json=payload, headers=headers) build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 if r.status_code != 200: build 19-Jul-2016 18:14:54 > raise RestException(r) build 19-Jul-2016 18:14:54 E RestException: { build 19-Jul-2016 18:14:54 E "status": 500, build 19-Jul-2016 18:14:54 E "type": "about:blank", build 19-Jul-2016 18:14:54 E "detail": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", build 19-Jul-2016 18:14:54 E "title": "Internal Server Error" build 19-Jul-2016 18:14:54 E } build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:196: RestException build 19-Jul-2016 18:14:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_group_tests.xml build 19-Jul-2016 18:14:54 =========================== 2 failed in 0.13 seconds =========================== build 19-Jul-2016 18:14:54 ============================= test session starts ============================== build 19-Jul-2016 18:14:54 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 18:14:54 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 18:14:54 plugins: pep8-1.0.6 build 19-Jul-2016 18:14:54 collected 4 items build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 property_tests.py ...s build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_tests.xml build 19-Jul-2016 18:14:54 ===================== 3 passed, 1 skipped in 0.19 seconds ====================== build 19-Jul-2016 18:14:54 ============================= test session starts ============================== build 19-Jul-2016 18:14:54 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 18:14:54 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 18:14:54 plugins: pep8-1.0.6 build 19-Jul-2016 18:14:54 collected 0 items build 19-Jul-2016 18:14:54 build 19-Jul-2016 18:14:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_type_tests.xml build 19-Jul-2016 18:14:54 =============================== in 0.05 seconds =============================== build 19-Jul-2016 18:14:55 ============================= test session starts ============================== build 19-Jul-2016 18:14:55 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 18:14:55 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 18:14:55 plugins: pep8-1.0.6 build 19-Jul-2016 18:14:55 collected 2 items build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 link_tests.py Fs build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 =================================== FAILURES =================================== build 19-Jul-2016 18:14:55 ___________________________ LinkTests.test_add_link ____________________________ build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 self = build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 def test_add_link(self): build 19-Jul-2016 18:14:55 result = self.client.add_link(self.flarecast_ids[0], build 19-Jul-2016 18:14:55 > self.flarecast_ids[1], build 19-Jul-2016 18:14:55 'test link', build 19-Jul-2016 18:14:55 'test description') build 19-Jul-2016 18:14:55 E IndexError: list index out of range build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 link_tests.py:19: IndexError build 19-Jul-2016 18:14:55 ----------------------------- Captured stdout call ----------------------------- build 19-Jul-2016 18:14:55 [u'flarecast-test_ds-ed832fc2-4dcb-11e6-9027-0242ac110003'] build 19-Jul-2016 18:14:55 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_link_tests.xml build 19-Jul-2016 18:14:55 ===================== 1 failed, 1 skipped in 0.07 seconds ====================== build 19-Jul-2016 18:14:55 ============================= test session starts ============================== build 19-Jul-2016 18:14:55 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 18:14:55 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: build 19-Jul-2016 18:14:55 plugins: pep8-1.0.6 build 19-Jul-2016 18:14:55 collected 3 items build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 query_tests.py FF. build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 =================================== FAILURES =================================== build 19-Jul-2016 18:14:55 ___________________ QueryTests.test_get_all_property_groups ____________________ build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 self = build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 def test_get_all_property_groups(self): build 19-Jul-2016 18:14:55 groups = self.client.get_properties(TEST_DATASET) build 19-Jul-2016 18:14:55 > self.assertEqual(3, len(groups)) build 19-Jul-2016 18:14:55 E AssertionError: 3 != 1 build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 query_tests.py:18: AssertionError build 19-Jul-2016 18:14:55 _______________ QueryTests.test_get_all_property_groups_with_eq ________________ build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 self = build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 def test_get_all_property_groups_with_eq(self): build 19-Jul-2016 18:14:55 groups = self.client.get_properties(TEST_DATASET, build 19-Jul-2016 18:14:55 'test1=eq(500)') build 19-Jul-2016 18:14:55 > self.assertEqual(2, len(groups)) build 19-Jul-2016 18:14:55 E AssertionError: 2 != 1 build 19-Jul-2016 18:14:55 build 19-Jul-2016 18:14:55 query_tests.py:28: AssertionError build 19-Jul-2016 18:14:55 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_query_tests.xml build 19-Jul-2016 18:14:55 ====================== 2 failed, 1 passed in 0.12 seconds ====================== simple 19-Jul-2016 18:14:56 Finished task 'Run tests' with result: Success simple 19-Jul-2016 18:14:56 Starting task 'Pep8 tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command' command 19-Jul-2016 18:14:56 Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'\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_dependency_parent_0=INFRA-BASE-314\nbamboo_dependency_parent_total=1\nbamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354\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_shortPlanName=propertyservice\nbamboo_planRepository_name=propertyservice\nbamboo_buildNumber=354\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-354\nbamboo_repository_2785292_branch_name=master\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/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-354-ScriptBuildTask-254362499466697886.sh\nbamboo_shortPlanKey=PROP\nbamboo_repository_2785292_git_username=\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_buildTimeStamp=2016-07-19T18:14:29.076+02:00\nbamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\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-354\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=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_repository_name=propertyservice\nbamboo_repository_2785292_git_branch=master\nbamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_planRepository_branch=master\nbamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_repository_git_username=\nbamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc\nbamboo_planRepository_1_type=stash-rep\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_planRepository_type=stash-rep\nbamboo_planRepository_1_username=\nbamboo_repository_2785292_name=propertyservice\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git\nbamboo_DependencyTriggerReason_triggeringBuildResultKey=INFRA-BASE-314\nbamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_command_6=/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml\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/fe/propertyservice.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64\nbamboo_planRepository_1_branchName=master\n build 19-Jul-2016 18:14:57 ============================= test session starts ============================== build 19-Jul-2016 18:14:57 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 build 19-Jul-2016 18:14:57 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1, inifile: build 19-Jul-2016 18:14:57 plugins: pep8-1.0.6 build 19-Jul-2016 18:14:57 collected 27 items build 19-Jul-2016 18:14:57 build 19-Jul-2016 18:14:57 main.py . build 19-Jul-2016 18:14:57 propertyservice/__init__.py . build 19-Jul-2016 18:14:57 propertyservice/config.py . build 19-Jul-2016 18:14:57 propertyservice/util.py . build 19-Jul-2016 18:14:57 propertyservice/data/__init__.py . build 19-Jul-2016 18:14:57 propertyservice/data/extended_queries.py . build 19-Jul-2016 18:14:57 propertyservice/data/property_db_data_source.py . build 19-Jul-2016 18:14:57 propertyservice/data/property_db_query_engine.py . build 19-Jul-2016 18:14:57 propertyservice/data/type_evaluator.py . build 19-Jul-2016 18:14:57 propertyservice/routes/__init__.py . build 19-Jul-2016 18:14:57 propertyservice/routes/dataset.py . build 19-Jul-2016 18:14:57 propertyservice/routes/link.py . build 19-Jul-2016 18:14:57 propertyservice/routes/property.py . build 19-Jul-2016 18:14:57 propertyservice/routes/property_group.py . build 19-Jul-2016 18:14:57 propertyservice/routes/property_type.py . build 19-Jul-2016 18:14:57 propertyservice/routes/query.py . build 19-Jul-2016 18:14:57 propertyservice/routes/query_builder.py . build 19-Jul-2016 18:14:57 tests/__init__.py . build 19-Jul-2016 18:14:57 tests/base_test_case.py . build 19-Jul-2016 18:14:57 tests/cleanup_docker_env.py . build 19-Jul-2016 18:14:57 tests/link_tests.py . build 19-Jul-2016 18:14:57 tests/property_group_tests.py . build 19-Jul-2016 18:14:57 tests/property_tests.py . build 19-Jul-2016 18:14:57 tests/property_type_tests.py . build 19-Jul-2016 18:14:57 tests/provenance_tests.py . build 19-Jul-2016 18:14:57 tests/query_tests.py . build 19-Jul-2016 18:14:57 tests/setup_docker_env.py . build 19-Jul-2016 18:14:57 build 19-Jul-2016 18:14:57 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/pep8_results.xml build 19-Jul-2016 18:14:57 ========================== 27 passed in 0.19 seconds =========================== simple 19-Jul-2016 18:14:57 Finished task 'Pep8 tests' with result: Success simple 19-Jul-2016 18:14:57 Starting task 'Parse pytest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit' simple 19-Jul-2016 18:14:57 Parsing test results under /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1... simple 19-Jul-2016 18:14:57 Failing task since 5 failing test cases were found. simple 19-Jul-2016 18:14:57 Finished task 'Parse pytest output' with result: Failed simple 19-Jul-2016 18:14:57 Running post build plugin 'NCover Results Collector' simple 19-Jul-2016 18:14:57 Running post build plugin 'Artifact Copier' simple 19-Jul-2016 18:14:57 Running post build plugin 'Sauce OnDemand Post Runner' simple 19-Jul-2016 18:14:57 Running post build plugin 'npm Cache Cleanup' simple 19-Jul-2016 18:14:57 Running post build plugin 'Clover Results Collector' simple 19-Jul-2016 18:14:57 Running post build plugin 'Docker Container Cleanup' simple 19-Jul-2016 18:14:57 Finalising the build... simple 19-Jul-2016 18:14:57 Stopping timer. simple 19-Jul-2016 18:14:57 Build INFRA-PROP-JOB1-354 completed. simple 19-Jul-2016 18:14:57 Running on server: post build plugin 'NCover Results Collector' simple 19-Jul-2016 18:14:57 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 19-Jul-2016 18:14:57 Running on server: post build plugin 'Clover Delta Calculator' simple 19-Jul-2016 18:14:57 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 19-Jul-2016 18:14:57 All post build plugins have finished simple 19-Jul-2016 18:14:57 Generating build results summary... simple 19-Jul-2016 18:14:57 Saving build results to disk... simple 19-Jul-2016 18:14:57 Logging substituted variables... simple 19-Jul-2016 18:14:57 Indexing build results... simple 19-Jul-2016 18:14:57 Finished building INFRA-PROP-JOB1-354.