{"action":"closed","issue":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6285","repository_url":"https://api.github.com/repos/SatelliteQE/robottelo","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6285/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6285/comments","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/6285/events","html_url":"https://github.com/SatelliteQE/robottelo/issues/6285","id":363451720,"node_id":"MDU6SXNzdWUzNjM0NTE3MjA=","number":6285,"title":"repo create in DockerRepositoryTestCase.test_negative_synchronize_private_registry_no_passwd fails with validation error","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":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":0,"created_at":"2018-09-25T07:49:51Z","updated_at":"2018-10-04T20:02:08Z","closed_at":"2018-10-04T20:02:08Z","author_association":"CONTRIBUTOR","body":"```\r\n DockerRepositoryTestCase.test_negative_synchronize_private_registry_no_passwd _\r\n\r\nself = <tests.foreman.api.test_repository.DockerRepositoryTestCase testMethod=test_negative_synchronize_private_registry_no_passwd>\r\n\r\n    @tier2\r\n    @run_only_on('sat')\r\n    def test_negative_synchronize_private_registry_no_passwd(self):\r\n        \"\"\"Create and try to sync a Docker-type repository from a private\r\n            registry providing empty password and the sync must fail with\r\n            reasonable error message.\r\n    \r\n            :id: 86bde2f1-4761-4045-aa54-c7be7715cd3a\r\n    \r\n            :expectedresults: A repository is created with a private Docker \\\r\n                repository and sync fails with reasonable error message.\r\n    \r\n            :customerscenario: true\r\n    \r\n            :BZ: 1475121, 1580510\r\n    \r\n            :CaseLevel: Integration\r\n            \"\"\"\r\n        product = entities.Product(organization=self.org).create()\r\n        repo = entities.Repository(\r\n            content_type=u'docker',\r\n            docker_upstream_name=settings.docker.private_registry_name,\r\n            name=gen_string('alpha'),\r\n            product=product,\r\n            url=settings.docker.private_registry_url,\r\n>           upstream_username=settings.docker.private_registry_username,\r\n        ).create()\r\n```\r\n\r\nFails with:\r\n\r\n```\r\n2018-09-25 09:44:56 - nailgun.client - DEBUG - Making HTTP POST request to https://sat640snap17.example.com/katello/api/v2/repositories with options {'auth': ('admin', 'changeme'), 'verify': False, 'headers': {'content-type': 'application/json'}}, no params and data {\"content_type\": \"docker\", \"docker_upstream_name\": \"satqeauto/alpine\", \"name\": \"mfEOmgYnTz\", \"url\": \"https://registry.hub.docker.com\", \"upstream_username\": \"satqeauto\", \"product_id\": 530}.\r\n2018-09-25 09:44:57 - nailgun.client - WARNING - Received HTTP 422 response: {\"displayMessage\":\"Validation failed: Upstream username requires upstream password be set.\",\"errors\":{\"base\":[\"Upstream username requires upstream password be set.\"]}}\r\n```"}}
{"actor":{"display_login":"rplevka"}}