)]}'
{"patrole_tempest_plugin/tests/api/volume/test_volume_hosts_rbac.py":[{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"cca20d6d5e0f91ca1ee5935288af1c6934cbe3fd","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        self.rbac_utils.switch_role(self, toggle_rbac_role\u003dTrue)"},{"line_number":29,"context_line":"        self.volume_hosts_client.list_hosts()"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    @decorators.idempotent_id(\u00279ddf321e-788f-4787-b8cc-dfa59e264143\u0027)"},{"line_number":32,"context_line":"    @rbac_rule_validation.action(service\u003d\"cinder\","},{"line_number":33,"context_line":"                                 admin_only\u003dTrue)"},{"line_number":34,"context_line":"    def test_show_host(self):"},{"line_number":35,"context_line":"        hosts \u003d self.volume_hosts_client.list_hosts()[\u0027hosts\u0027]"},{"line_number":36,"context_line":"        host_names \u003d [host[\u0027host_name\u0027] for host in hosts]"},{"line_number":37,"context_line":"        self.assertNotEmpty(host_names, \"No available volume host was found, \""},{"line_number":38,"context_line":"                                        \"all hosts found were: %s\" % hosts)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        self.rbac_utils.switch_role(self, toggle_rbac_role\u003dTrue)"},{"line_number":41,"context_line":"        self.volume_hosts_client.show_host(host_names[0])"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_92fdcf6f","line":38,"range":{"start_line":31,"start_character":0,"end_line":38,"end_character":75},"updated":"2017-11-17 00:49:37.000000000","message":"if no policy are enforced, then is it cinder bug? at least doc and code should match.\nIf it allow policy control for updating the host then it can be same for show host also.\n\nregistered bug in cinder [1] and accordingly we can fix here. if no policy then i will suggest to remove this test as patrole scope is just policy verification.\n\n..1 https://bugs.launchpad.net/cinder/+bug/1732808","commit_id":"e4215cca8c065453cd9905eda80d10941ecee1ac"}]}
