{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2441","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2441/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2441/comments","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2441/events","html_url":"https://github.com/SatelliteQE/robottelo/pull/2441","id":88052926,"number":2441,"title":"[DO NOT MERGE] API test overhaul omnibus","user":{"login":"Ichimonji10","id":1012989,"avatar_url":"https://avatars.githubusercontent.com/u/1012989?v=3","gravatar_id":"","url":"https://api.github.com/users/Ichimonji10","html_url":"https://github.com/Ichimonji10","followers_url":"https://api.github.com/users/Ichimonji10/followers","following_url":"https://api.github.com/users/Ichimonji10/following{/other_user}","gists_url":"https://api.github.com/users/Ichimonji10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ichimonji10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ichimonji10/subscriptions","organizations_url":"https://api.github.com/users/Ichimonji10/orgs","repos_url":"https://api.github.com/users/Ichimonji10/repos","events_url":"https://api.github.com/users/Ichimonji10/events{/privacy}","received_events_url":"https://api.github.com/users/Ichimonji10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-13T19:31:51Z","updated_at":"2015-06-16T14:03:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2441","html_url":"https://github.com/SatelliteQE/robottelo/pull/2441","diff_url":"https://github.com/SatelliteQE/robottelo/pull/2441.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/2441.patch"},"body":"Update to NailGun 0.17.0. Use the updates therein and updates provided by\r\nprevious releases to update nearly every single API test module. Review existing\r\ntests and make them use higher-level methods when possible. For example:\r\n\r\n* Use the `create` method instead of the `create_json` method.\r\n* Use the `update` method instead of the `client.put` function.\r\n\r\nDo not update module `tests.foreman.api.test_multiple_paths`. It is in need of\r\nan update on several levels, and an update to it will come in a separarate pull\r\nrequest. Test results against a downstream RHEL 6.6 system:\r\n\r\n    $ make test-foreman-api\r\n    python -m cProfile -o test-foreman-api.pstats $(which nosetests) --logging-filter=nailgun,robottelo --with-xunit --xunit-file=foreman-results.xml tests/foreman/api\r\n    ......SSS.....................S........E.........E.E......................SSSSSSSSSSSSSSSSSSSSSSSS........SSSSSSSSSSSSSSSSSSSSSSSSS..............SSSSSSSSSSSSS.............S.SSSSSSS.SSSSSS................................................S.........SSSSSSSSSSSSS...S..S...S..SSSSSSSSSS.SSSSSSSS.....S...S......S.....................................................................S...S.......................................................................................S.............................................................SSSSSS..S.SS.SSSSS.S..SSS.SSSSSSSSSSSSSSSSSSSSSSSSSSSSS.S..................S..S...........................................................SE.........................................................SSSSSSSS...SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS..S.SSS.SSSSSSSSSSSSSSSSSSSSSS............................................\r\n    ======================================================================\r\n    ERROR: @Test: Create empty composite view and assign one normal content\r\n    ----------------------------------------------------------------------\r\n    Traceback (most recent call last):\r\n    File \"/home/ichimonji10/code/robottelo/tests/foreman/api/test_contentview.py\", line 759, in test_promote_composite_cv_multiple_1\r\n        composite_cv.version[0].promote(lce.id)\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 911, in promote\r\n        return _handle_response(response, self._server_config, synchronous)\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 105, in _handle_response\r\n        return ForemanTask(server_config, id=response.json()['id']).poll()\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 1471, in poll\r\n        timeout\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entity_mixins.py\", line 104, in _poll_task\r\n        task_info['humanized']['errors']\r\n    TaskFailedError: Task 3421a892-c63c-4a43-9a09-13b93b1b5f9c completed with result error. Error message(s): [u'ERF12-2749 [ProxyAPI::ProxyException]: Unable to get environments from Puppet ([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy https://sat.example.com:9090/puppet']\r\n\r\n    ======================================================================\r\n    ERROR: @Test: Publish a content view that has puppet module\r\n    ----------------------------------------------------------------------\r\n    Traceback (most recent call last):\r\n    File \"/home/ichimonji10/code/robottelo/tests/foreman/api/test_contentview.py\", line 509, in test_publish_cv_with_puppet_multiple\r\n        content_view.publish()\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 1186, in publish\r\n        return _handle_response(response, self._server_config, synchronous)\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 105, in _handle_response\r\n        return ForemanTask(server_config, id=response.json()['id']).poll()\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 1471, in poll\r\n        timeout\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entity_mixins.py\", line 104, in _poll_task\r\n        task_info['humanized']['errors']\r\n    TaskFailedError: Task 68af9b24-109f-4146-a9ab-7153d60ba4e2 completed with result error. Error message(s): [u'ERF12-4115 [ProxyAPI::ProxyException]: Unable to get classes from Puppet for KT_c06d48c6_0d58_4281_a6d4_6e89b84ec169_Library_ea8f7bac_a5a5_4beb_aca3_845d3a331039_1839 ([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy https://sat.example.com:9090/puppet']\r\n\r\n    ======================================================================\r\n    ERROR: test suite for <class 'tests.foreman.api.test_contentview.CVRedHatContent'>\r\n    ----------------------------------------------------------------------\r\n    Traceback (most recent call last):\r\n    File \"/home/ichimonji10/.virtualenvs/robottelo/lib/python2.7/site-packages/nose/suite.py\", line 209, in run\r\n        self.setUp()\r\n    File \"/home/ichimonji10/.virtualenvs/robottelo/lib/python2.7/site-packages/nose/suite.py\", line 292, in setUp\r\n        self.setupContext(ancestor)\r\n    File \"/home/ichimonji10/.virtualenvs/robottelo/lib/python2.7/site-packages/nose/suite.py\", line 315, in setupContext\r\n        try_run(context, names)\r\n    File \"/home/ichimonji10/.virtualenvs/robottelo/lib/python2.7/site-packages/nose/util.py\", line 471, in try_run\r\n        return func()\r\n    File \"/home/ichimonji10/code/robottelo/tests/foreman/api/test_contentview.py\", line 864, in setUpClass\r\n        releasever='7Server',\r\n    File \"robottelo/api/utils.py\", line 118, in enable_rhrepo_and_fetchid\r\n        reposet_id = entities.Product(id=prd_id).fetch_reposet_id(name=reposet)\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 2765, in fetch_reposet_id\r\n        \"The length of the results is:\", len(results))\r\n    APIResponseError: ('The length of the results is:', 0)\r\n\r\n    ======================================================================\r\n    ERROR: @Test: Sync RedHat Repository.\r\n    ----------------------------------------------------------------------\r\n    Traceback (most recent call last):\r\n    File \"/home/ichimonji10/code/robottelo/tests/foreman/api/test_repository.py\", line 257, in test_redhat_sync_1\r\n        '7Server',\r\n    File \"robottelo/api/utils.py\", line 118, in enable_rhrepo_and_fetchid\r\n        reposet_id = entities.Product(id=prd_id).fetch_reposet_id(name=reposet)\r\n    File \"/home/ichimonji10/code/nailgun/nailgun/entities.py\", line 2765, in fetch_reposet_id\r\n        \"The length of the results is:\", len(results))\r\n    APIResponseError: ('The length of the results is:', 0)\r\n\r\n    ----------------------------------------------------------------------\r\n    Ran 841 tests in 5996.317s\r\n\r\n    FAILED (SKIP=236, errors=4)\r\n\r\nFile several bugs and consequently fix several Jenkins failures. See:\r\n\r\n* https://bugzilla.redhat.com/show_bug.cgi?id=1230865\r\n* https://bugzilla.redhat.com/show_bug.cgi?id=1230873\r\n* https://bugzilla.redhat.com/show_bug.cgi?id=1230902"},"comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/comments/112443730","html_url":"https://github.com/SatelliteQE/robottelo/pull/2441#issuecomment-112443730","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2441","id":112443730,"user":{"login":"Ichimonji10","id":1012989,"avatar_url":"https://avatars.githubusercontent.com/u/1012989?v=3","gravatar_id":"","url":"https://api.github.com/users/Ichimonji10","html_url":"https://github.com/Ichimonji10","followers_url":"https://api.github.com/users/Ichimonji10/followers","following_url":"https://api.github.com/users/Ichimonji10/following{/other_user}","gists_url":"https://api.github.com/users/Ichimonji10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ichimonji10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ichimonji10/subscriptions","organizations_url":"https://api.github.com/users/Ichimonji10/orgs","repos_url":"https://api.github.com/users/Ichimonji10/repos","events_url":"https://api.github.com/users/Ichimonji10/events{/privacy}","received_events_url":"https://api.github.com/users/Ichimonji10/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T14:03:46Z","updated_at":"2015-06-16T14:03:46Z","body":"Rebased."}}