{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/329","repository_url":"https://api.github.com/repos/SatelliteQE/nailgun","labels_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/329/comments","events_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/329/events","html_url":"https://github.com/SatelliteQE/nailgun/pull/329","id":185061304,"number":329,"title":"Fixed download_policy required flag only if content_type='yum' (#309)","user":{"login":"rplevka","id":11773362,"avatar_url":"https://avatars.githubusercontent.com/u/11773362?v=3","gravatar_id":"","url":"https://api.github.com/users/rplevka","html_url":"https://github.com/rplevka","followers_url":"https://api.github.com/users/rplevka/followers","following_url":"https://api.github.com/users/rplevka/following{/other_user}","gists_url":"https://api.github.com/users/rplevka/gists{/gist_id}","starred_url":"https://api.github.com/users/rplevka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rplevka/subscriptions","organizations_url":"https://api.github.com/users/rplevka/orgs","repos_url":"https://api.github.com/users/rplevka/repos","events_url":"https://api.github.com/users/rplevka/events{/privacy}","received_events_url":"https://api.github.com/users/rplevka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SatelliteQE/nailgun/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-25T09:15:09Z","updated_at":"2016-10-25T09:25:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/pulls/329","html_url":"https://github.com/SatelliteQE/nailgun/pull/329","diff_url":"https://github.com/SatelliteQE/nailgun/pull/329.diff","patch_url":"https://github.com/SatelliteQE/nailgun/pull/329.patch"},"body":"cherry-picking: https://github.com/SatelliteQE/nailgun/pull/309\r\n\r\n![cherry_img](https://media.giphy.com/media/3logyGUisMJKE/giphy.gif)\r\n\r\nbefore\r\n```bash\r\n2016-10-25 10:42:38 - nailgun.client - DEBUG - Making HTTP POST request to https://sat6.com/katello/api/v2/repositories with options {'verify': False, 'auth': ('admin', 'changeme'), 'headers': {'content-type': 'application/json'}} and data {\"product_id\": 2, \"url\": \"http://davidd.fedorapeople.org/repos/random_puppet/\", \"download_policy\": \"immediate\", \"content_type\": \"puppet\", \"name\": \"BPoKqNJKzmC\"}.\r\n\r\n2016-10-25 10:42:39 - nailgun.client - WARNING - Received HTTP 422 response: {\"displayMessage\":\"Validation failed: Download policy cannot be set for non-yum repositories.\",\"errors\":{\"download_policy\":[\"cannot be set for non-yum repositories.\"]}}\r\nE\r\n======================================================================\r\nERROR: test suite for <class 'tests.foreman.api.test_contentview.ContentViewPublishPromoteTestCase'>\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 209, in run\r\n    self.setUp()\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 292, in setUp\r\n    self.setupContext(ancestor)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 315, in setupContext\r\n    try_run(context, names)\r\n  File \"/usr/lib/python2.7/site-packages/nose/util.py\", line 471, in try_run\r\n    return func()\r\n  File \"/home/w1pko/work/robottelo/tests/foreman/api/test_contentview.py\", line 353, in setUpClass\r\n    url=FAKE_0_PUPPET_REPO,\r\n  File \"/usr/lib/python2.7/site-packages/blinker_herald/base.py\", line 137, in wrapper\r\n    result = fn(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/nailgun/entity_mixins.py\", line 846, in create\r\n    return self.read(attrs=self.create_json(create_missing))\r\n  File \"/usr/lib/python2.7/site-packages/nailgun/entity_mixins.py\", line 816, in create_json\r\n    response.raise_for_status()\r\n  File \"/usr/lib/python2.7/site-packages/requests/models.py\", line 862, in raise_for_status\r\n    raise HTTPError(http_error_msg, response=self)\r\nHTTPError: 422 Client Error: Unprocessable Entity for url: https://qe-sat62-rhel7.satqe.lab.eng.rdu2.redhat.com/katello/api/v2/repositories\r\n\r\n----------------------------------------------------------------------\r\nRan 0 tests in 22.901s\r\n\r\nFAILED (errors=1)\r\n```\r\n\r\nafter:\r\n```bash\r\n2016-10-25 11:02:15 - nailgun.client - DEBUG - Making HTTP POST request to https://qe-sat62-rhel7.sat6.com/katello/api/v2/repositories with options {'verify': False, 'auth': ('admin', 'changeme'), 'headers': {'content-type': 'application/json'}} and data {\"product_id\": 4, \"content_type\": \"puppet\", \"url\": \"http://davidd.fedorapeople.org/repos/random_puppet/\", \"name\": \"xsbuwLWRfNxg\"}.\r\n2016-10-25 11:02:18 - nailgun.client - DEBUG - Received HTTP 200 response:   {\"content_type\":\"puppet\",\"docker_upstream_name\":null,\"mirror_on_sync\":true,\"unprotected\":true,\"full_path\":\"http://qe-sat62-rhel7.satqe.lab.eng.rdu2.redhat.com/pulp/puppet/dMsWWISo-uSuZuDHZX-xsbuwLWRfNxg/\",\"checksum_type\":null,\"container_repository_name\":null,\"download_policy\":null,\"url\":\"http://davidd.fedorapeople.org/repos/random_puppet/\",\"relative_path\":\"dMsWWISo/Library/custom/uSuZuDHZX/xsbuwLWRfNxg\",\"major\":null,\"minor\":null,\"gpg_key_id\":null,\"content_id\":\"1477386137721\",\"content_view_version_id\":7,\"library_instance_id\":null,\"product_type\":\"custom\",\"promoted\":false,\"ostree_branches\":[],\"organization\":{\"name\":\"dMsWWISo\",\"label\":\"dMsWWISo\",\"id\":6},\"created_at\":\"2016-10-25 09:02:16 UTC\",\"updated_at\":\"2016-10-25 09:02:18 UTC\",\"id\":7,\"name\":\"xsbuwLWRfNxg\",\"label\":\"xsbuwLWRfNxg\",\"product\":{\"id\":4,\"cp_id\":\"1477386112735\",\"name\":\"uSuZuDHZX\",\"sync_plan\":[\"name\",\"description\",\"sync_date\",\"interval\",\"next_sync\"]},\"last_sync\":null,\"content_counts\":{\"ostree_branch\":0,\"docker_manifest\":0,\"docker_tag\":0,\"rpm\":0,\"package\":0,\"package_group\":0,\"erratum\":0,\"puppet_module\":0},\"last_sync_words\":null,\"gpg_key\":null,\"environment\":{\"id\":11},\"permissions\":{\"deletable\":true}}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/comments/255983895","html_url":"https://github.com/SatelliteQE/nailgun/pull/329#issuecomment-255983895","issue_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/329","id":255983895,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T09:25:51Z","updated_at":"2016-10-25T09:25:51Z","body":"\n[![Coverage Status](https://coveralls.io/builds/8494100/badge)](https://coveralls.io/builds/8494100)\n\nCoverage decreased (-0.06%) to 98.388% when pulling **bb9ae0cc37786081718ebd0fe83ff8c613b47900 on rplevka:6.2.z_download_policy_fix** into **4ebb98b1e36ce5fe9bba2afd6efe508c9b39404b on SatelliteQE:6.2.z**.\n"}}
{"actor":{"display_login":"coveralls"}}