{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/3372","repository_url":"https://api.github.com/repos/ckan/ckan","labels_url":"https://api.github.com/repos/ckan/ckan/issues/3372/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/3372/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/3372/events","html_url":"https://github.com/ckan/ckan/issues/3372","id":196413693,"number":3372,"title":"CKAN 2.6.0 tests fail","user":{"login":"rwillmer","id":589821,"avatar_url":"https://avatars.githubusercontent.com/u/589821?v=3","gravatar_id":"","url":"https://api.github.com/users/rwillmer","html_url":"https://github.com/rwillmer","followers_url":"https://api.github.com/users/rwillmer/followers","following_url":"https://api.github.com/users/rwillmer/following{/other_user}","gists_url":"https://api.github.com/users/rwillmer/gists{/gist_id}","starred_url":"https://api.github.com/users/rwillmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwillmer/subscriptions","organizations_url":"https://api.github.com/users/rwillmer/orgs","repos_url":"https://api.github.com/users/rwillmer/repos","events_url":"https://api.github.com/users/rwillmer/events{/privacy}","received_events_url":"https://api.github.com/users/rwillmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-19T13:29:51Z","updated_at":"2016-12-19T13:30:32Z","closed_at":null,"body":"### CKAN Version if known (or site URL)\r\n2.6.0\r\n\r\n\r\n### Please describe the expected behaviour\r\nI run the nosetests. \r\nThe tests all work.\r\n\r\n### Please describe the actual behaviour\r\nSeveral tests fail. I will add the failure messages in a comment.\r\nThis is the command I use:\r\n```\r\n./../bin/nosetests --ckan --reset-db --with-pylons=test-core.ini ckan\r\n```\r\n\r\n### What steps can be taken to reproduce the issue? \r\nI can repeat it by rerunning the tests."},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/267964163","html_url":"https://github.com/ckan/ckan/issues/3372#issuecomment-267964163","issue_url":"https://api.github.com/repos/ckan/ckan/issues/3372","id":267964163,"user":{"login":"rwillmer","id":589821,"avatar_url":"https://avatars.githubusercontent.com/u/589821?v=3","gravatar_id":"","url":"https://api.github.com/users/rwillmer","html_url":"https://github.com/rwillmer","followers_url":"https://api.github.com/users/rwillmer/followers","following_url":"https://api.github.com/users/rwillmer/following{/other_user}","gists_url":"https://api.github.com/users/rwillmer/gists{/gist_id}","starred_url":"https://api.github.com/users/rwillmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwillmer/subscriptions","organizations_url":"https://api.github.com/users/rwillmer/orgs","repos_url":"https://api.github.com/users/rwillmer/repos","events_url":"https://api.github.com/users/rwillmer/events{/privacy}","received_events_url":"https://api.github.com/users/rwillmer/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T13:30:32Z","updated_at":"2016-12-19T13:30:32Z","body":"<../bin/nosetests --ckan --reset-db --with-pylons=test-core.ini ckan         \r\n........................../usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py:79: SAWarning: Usage of the 'related attribute set' operation is not currently supported within the execution stage of the flush process. Results may not be consistent.  Consider using alternative event listeners or connection-level operations instead.\r\n  sess._flush_warning(\"related attribute set\")\r\n...................................................................F............................F......................................................................................................................................................................................................................................................S.S.S.S...........................................................................................................................................................................................................................................................................SS......F.FS..............................F.FS..............................F.F...............................................................................................................................................................................................................................................S...........S..........................F......................S..............S.................................................................................................................................................................................................................................................................................................You are using pip version 8.1.1, however version 9.0.1 is available.\r\nYou should consider upgrading via the 'pip install --upgrade pip' command.\r\nF...........................................................................EF.........................................................................E.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F..............................\r\n======================================================================\r\nERROR: ckan.tests.lib.test_cli.TestUserAdd.test_cli_user_add_unicode_fullname_system_exit\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/lib/test_cli.py\", line 70, in test_cli_user_add_unicode_fullname_system_exit\r\n    self.user_cmd.add()\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py\", line 829, in add\r\n    data_dict['fullname'] = data_dict['fullname'].decode(sys.getfilesystemencoding())\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)\r\n-------------------- >> begin captured logging << --------------------\r\nckan.model: INFO: Database table data deleted\r\nckan.model: INFO: Database initialised\r\nckan.model: INFO: Database rebuilt\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nERROR: ckan.tests.lib.test_io.TestDecodeEncodePath.test_decode_encode_path\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/lib/test_io.py\", line 34, in test_decode_encode_path\r\n    with io.open(ckan_io.encode_path(path), u'w',\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/lib/io.py\", line 33, in encode_path\r\n    return p.encode(_FILESYSTEM_ENCODING)\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 15-17: ordinal not in range(128)\r\n\r\n======================================================================\r\nFAIL: ckan.tests.controllers.test_group.TestGroupInnerSearch.test_group_search_within_org_results\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/controllers/test_group.py\", line 617, in test_group_search_within_org_results\r\n    assert_true('1 dataset found for &#34;One&#34;' in search_response)\r\nAssertionError: False is not true\r\n-------------------- >> begin captured logging << --------------------\r\nckan.model: INFO: Database table data deleted\r\nckan.model: INFO: Database initialised\r\nckan.model: INFO: Database rebuilt\r\nckan.lib.maintain: WARNING: Use `c.search_facets` instead.\r\nckan.lib.base: INFO:  /group/7bb4d870-4639-4d00-b83f-7894a42aaace render time 0.132 seconds\r\nckan.lib.maintain: WARNING: Use `c.search_facets` instead.\r\nckan.lib.base: INFO:  /group/7bb4d870-4639-4d00-b83f-7894a42aaace render time 0.111 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.controllers.test_organization.TestOrganizationInnerSearch.test_organization_search_within_org_results\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/controllers/test_organization.py\", line 403, in test_organization_search_within_org_results\r\n    assert_true('1 dataset found for &#34;One&#34;' in search_response)\r\nAssertionError: False is not true\r\n-------------------- >> begin captured logging << --------------------\r\nckan.model: INFO: Database table data deleted\r\nckan.model: INFO: Database initialised\r\nckan.model: INFO: Database rebuilt\r\nckan.lib.maintain: WARNING: Use `c.search_facets` instead.\r\nckan.lib.base: INFO:  /organization/25d7ae8f-ba60-4415-8a5f-a5c63cb79513 render time 0.132 seconds\r\nckan.lib.maintain: WARNING: Use `c.search_facets` instead.\r\nckan.lib.base: INFO:  /organization/25d7ae8f-ba60-4415-8a5f-a5c63cb79513 render time 0.147 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.functional.api.test_package_search.TestPackageSearchApi1.test_05_uri_json_tags\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 112, in test_05_uri_json_tags\r\n    self.assert_results(res_dict, [u'annakarenina'])\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 44, in assert_results\r\n    assert_equal(set(res_dict['results']), set(expected_pkgs))\r\nAssertionError: Items in the second set but not the first:\r\nu'annakarenina'\r\n-------------------- >> begin captured logging << --------------------\r\nckan.lib.base: INFO:  /api/1/search/dataset render time 0.018 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.functional.api.test_package_search.TestPackageSearchApi1.test_06_uri_q_tags\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 129, in test_06_uri_q_tags\r\n    self.assert_results(res_dict, [u'annakarenina'])\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 44, in assert_results\r\n    assert_equal(set(res_dict['results']), set(expected_pkgs))\r\nAssertionError: Items in the second set but not the first:\r\nu'annakarenina'\r\n-------------------- >> begin captured logging << --------------------\r\nckan.lib.base: INFO:  /api/1/search/dataset render time 0.024 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.functional.api.test_package_search.TestPackageSearchApi2.test_05_uri_json_tags\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 112, in test_05_uri_json_tags\r\n    self.assert_results(res_dict, [u'annakarenina'])\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 44, in assert_results\r\n    assert_equal(set(res_dict['results']), set(expected_pkgs))\r\nAssertionError: Items in the second set but not the first:\r\nu'00e2ee37-a128-4aa7-b493-568f45f961eb'\r\n-------------------- >> begin captured logging << --------------------\r\nckan.lib.base: INFO:  /api/2/search/dataset render time 0.014 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.functional.api.test_package_search.TestPackageSearchApi2.test_06_uri_q_tags\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 129, in test_06_uri_q_tags\r\n    self.assert_results(res_dict, [u'annakarenina'])\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 44, in assert_results\r\n    assert_equal(set(res_dict['results']), set(expected_pkgs))\r\nAssertionError: Items in the second set but not the first:\r\nu'00e2ee37-a128-4aa7-b493-568f45f961eb'\r\n-------------------- >> begin captured logging << --------------------\r\nckan.lib.base: INFO:  /api/2/search/dataset render time 0.014 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.functional.api.test_package_search.TestPackageSearchApi3.test_05_uri_json_tags\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 112, in test_05_uri_json_tags\r\n    self.assert_results(res_dict, [u'annakarenina'])\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 44, in assert_results\r\n    assert_equal(set(res_dict['results']), set(expected_pkgs))\r\nAssertionError: Items in the second set but not the first:\r\nu'annakarenina'\r\n-------------------- >> begin captured logging << --------------------\r\nckan.lib.base: INFO:  /api/3/search/dataset render time 0.027 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.functional.api.test_package_search.TestPackageSearchApi3.test_06_uri_q_tags\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 129, in test_06_uri_q_tags\r\n    self.assert_results(res_dict, [u'annakarenina'])\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/functional/api/test_package_search.py\", line 44, in assert_results\r\n    assert_equal(set(res_dict['results']), set(expected_pkgs))\r\nAssertionError: Items in the second set but not the first:\r\nu'annakarenina'\r\n-------------------- >> begin captured logging << --------------------\r\nckan.lib.base: INFO:  /api/3/search/dataset render time 0.026 seconds\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.lib.test_solr_search_index.TestSolrSearch.test_1_basic\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/lib/test_solr_search_index.py\", line 54, in test_1_basic\r\n    assert len(results) == 2\r\nAssertionError\r\n\r\n======================================================================\r\nFAIL: ckan.tests.legacy.test_versions.TestVersions.test_pylons\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/legacy/test_versions.py\", line 14, in test_pylons\r\n    assert pylons_version == \"Pylons==0.9.7\"\r\nAssertionError\r\n\r\n======================================================================\r\nFAIL: ckan.tests.lib.test_cli.TestUserAdd.test_cli_user_add_unicode_fullname_unicode_decode_error\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/lib/test_cli.py\", line 59, in test_cli_user_add_unicode_fullname_unicode_decode_error\r\n    assert False, \"UnicodeDecodeError exception shouldn't be raised\"\r\nAssertionError: UnicodeDecodeError exception shouldn't be raised\r\n-------------------- >> begin captured logging << --------------------\r\nckan.model: INFO: Database table data deleted\r\nckan.model: INFO: Database initialised\r\nckan.model: INFO: Database rebuilt\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: ckan.tests.test_coding_standards.test_building_the_docs\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/usr/lib/ckan/default/src/ckan/ckan/tests/test_coding_standards.py\", line 79, in test_building_the_docs\r\n    code=err.returncode))\r\nAssertionError: Building the docs failed with return code: 1\r\n\r\n----------------------------------------------------------------------\r\nRan 2036 tests in 1658.168s\r\n\r\nFAILED (SKIP=12, errors=2, failures=12)\r\nException TypeError: TypeError('getattr(): attribute name must be string',) in <bound method Solr.__del__ of <pysolr.Solr object at 0x7f182b75d610>> ignored\r\nroot@9247f3b76dea:/usr/lib/ckan/default/src/ckan# \r\n"}}
{"actor":{"display_login":"rwillmer"}}