{"action":"closed","issue":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6160","repository_url":"https://api.github.com/repos/SatelliteQE/robottelo","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6160/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6160/comments","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6160/events","html_url":"https://github.com/SatelliteQE/robottelo/issues/6160","id":346166145,"node_id":"MDU6SXNzdWUzNDYxNjYxNDU=","number":6160,"title":"tests.foreman.api.test_host.HostTestCase.test_positive_create_with_inherited_params does not count with global params","user":{"login":"jhutar","id":3397250,"node_id":"MDQ6VXNlcjMzOTcyNTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3397250?v=4","gravatar_id":"","url":"https://api.github.com/users/jhutar","html_url":"https://github.com/jhutar","followers_url":"https://api.github.com/users/jhutar/followers","following_url":"https://api.github.com/users/jhutar/following{/other_user}","gists_url":"https://api.github.com/users/jhutar/gists{/gist_id}","starred_url":"https://api.github.com/users/jhutar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhutar/subscriptions","organizations_url":"https://api.github.com/users/jhutar/orgs","repos_url":"https://api.github.com/users/jhutar/repos","events_url":"https://api.github.com/users/jhutar/events{/privacy}","received_events_url":"https://api.github.com/users/jhutar/received_events","type":"User","site_admin":false},"labels":[{"id":882222241,"node_id":"MDU6TGFiZWw4ODIyMjIyNDE=","url":"https://api.github.com/repos/SatelliteQE/robottelo/labels/6.4","name":"6.4","color":"efd3aa","default":false},{"id":404622871,"node_id":"MDU6TGFiZWw0MDQ2MjI4NzE=","url":"https://api.github.com/repos/SatelliteQE/robottelo/labels/review","name":"review","color":"00ff00","default":false}],"state":"closed","locked":false,"assignee":{"login":"pondrejk","id":8287578,"node_id":"MDQ6VXNlcjgyODc1Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8287578?v=4","gravatar_id":"","url":"https://api.github.com/users/pondrejk","html_url":"https://github.com/pondrejk","followers_url":"https://api.github.com/users/pondrejk/followers","following_url":"https://api.github.com/users/pondrejk/following{/other_user}","gists_url":"https://api.github.com/users/pondrejk/gists{/gist_id}","starred_url":"https://api.github.com/users/pondrejk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pondrejk/subscriptions","organizations_url":"https://api.github.com/users/pondrejk/orgs","repos_url":"https://api.github.com/users/pondrejk/repos","events_url":"https://api.github.com/users/pondrejk/events{/privacy}","received_events_url":"https://api.github.com/users/pondrejk/received_events","type":"User","site_admin":false},"assignees":[{"login":"pondrejk","id":8287578,"node_id":"MDQ6VXNlcjgyODc1Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8287578?v=4","gravatar_id":"","url":"https://api.github.com/users/pondrejk","html_url":"https://github.com/pondrejk","followers_url":"https://api.github.com/users/pondrejk/followers","following_url":"https://api.github.com/users/pondrejk/following{/other_user}","gists_url":"https://api.github.com/users/pondrejk/gists{/gist_id}","starred_url":"https://api.github.com/users/pondrejk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pondrejk/subscriptions","organizations_url":"https://api.github.com/users/pondrejk/orgs","repos_url":"https://api.github.com/users/pondrejk/repos","events_url":"https://api.github.com/users/pondrejk/events{/privacy}","received_events_url":"https://api.github.com/users/pondrejk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-31T12:30:10Z","updated_at":"2018-08-23T11:11:28Z","closed_at":"2018-08-23T11:11:28Z","author_association":"CONTRIBUTOR","body":"This test expect there are no global parameters, but there are (or there can be). This is what is in the `host.all_parameters` right before the asserts when I have global parameter `MyGlobalParameter`:\r\n\r\n```\r\n[{'created_at': '2018-07-31 10:32:41 UTC',\r\n  'id': 15,\r\n  'name': 'vxgdBHX',\r\n  'priority': 20,\r\n  'updated_at': '2018-07-31 10:32:41 UTC',\r\n  'value': 'ꄖ딈胿阪𐤆㷓鰍轒亐럚浮'},\r\n {'created_at': '2018-07-31 10:32:40 UTC',\r\n  'id': 14,\r\n  'name': 'tbjSXm',\r\n  'priority': 10,\r\n  'updated_at': '2018-07-31 10:32:40 UTC',\r\n  'value': '𞡭딾𗘫䶱䘤𗀰顁𝜪デ䊢𘪲갥湵鶶ꐪ𛱢洪柆ᯅ뒍糧㧭鮾佼'},\r\n {'created_at': '2018-07-27 09:31:05 UTC',\r\n  'id': 3,\r\n  'name': 'MyGlobalParameter',\r\n  'priority': 0,\r\n  'updated_at': '2018-07-27 09:34:54 UTC',\r\n  'value': 'global hello'}]\r\n```\r\n\r\nStacktrace:\r\n\r\n```\r\nself = <tests.foreman.api.test_host.HostTestCase testMethod=test_positive_create_with_inherited_params>\r\n\r\n    @tier2\r\n    def test_positive_create_with_inherited_params(self):\r\n        \"\"\"Create a new Host in organization and location with parameters\r\n    \r\n            :BZ: 1287223\r\n    \r\n            :id: 5e17e968-7fe2-4e5b-90ca-ae66f4e5307a\r\n    \r\n            :customerscenario: true\r\n    \r\n            :expectedresults: Host has inherited parameters from organization and\r\n                location\r\n    \r\n            :CaseImportance: High\r\n            \"\"\"\r\n        org = entities.Organization().create()\r\n        org_param = entities.Parameter(organization=org).create()\r\n        loc = entities.Location().create()\r\n        loc_param = entities.Parameter(location=loc).create()\r\n        host = entities.Host(\r\n            location=loc,\r\n            organization=org,\r\n        ).create()\r\n>       self.assertEqual(len(host.all_parameters), 2)\r\nE       AssertionError: 4 != 2\r\n\r\ntests/foreman/api/test_host.py:301: AssertionError\r\n```"}}
{"actor":{"display_login":"pondrejk"}}