)]}'
{"patrole_tempest_plugin/tests/api/image/v2/test_image_namespace_property_rbac.py":[{"author":{"_account_id":23185,"name":"Samantha Blanco","email":"samantha.blanco@att.com","username":"sblanco"},"change_message_id":"a35286dece061b15de3b9845e8d49b9c8695d320","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        RBAC test for the glance add_metadef_property policy"},{"line_number":36,"context_line":"        \"\"\""},{"line_number":37,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":38,"context_line":"        body \u003d self.resource_types_client.list_resource_types()"},{"line_number":39,"context_line":"        resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_6c01056a","line":37,"updated":"2017-01-30 19:14:19.000000000","message":"Is there a reason you\u0027re not creating one namespace and using that for each test?","commit_id":"ec44ed27e116f1d6a40ea5fd4e22ae7f753036fe"},{"author":{"_account_id":23184,"name":"DavidPurcell","email":"d.purcell222@gmail.com","username":"DavidPurcell"},"change_message_id":"c2fb50b98927467871ec5bd8f0cfe20b02f9a094","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        RBAC test for the glance add_metadef_property policy"},{"line_number":36,"context_line":"        \"\"\""},{"line_number":37,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":38,"context_line":"        body \u003d self.resource_types_client.list_resource_types()"},{"line_number":39,"context_line":"        resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_8c60f102","line":37,"in_reply_to":"3a461143_6c01056a","updated":"2017-01-30 19:24:50.000000000","message":"Good point.","commit_id":"ec44ed27e116f1d6a40ea5fd4e22ae7f753036fe"},{"author":{"_account_id":23185,"name":"Samantha Blanco","email":"samantha.blanco@att.com","username":"sblanco"},"change_message_id":"a35286dece061b15de3b9845e8d49b9c8695d320","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        RBAC test for the glance add_metadef_property policy"},{"line_number":36,"context_line":"        \"\"\""},{"line_number":37,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":38,"context_line":"        body \u003d self.resource_types_client.list_resource_types()"},{"line_number":39,"context_line":"        resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dTrue)"},{"line_number":42,"context_line":"        property_name \u003d data_utils.rand_name(\u0027test-ns-property\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_0c916147","line":39,"range":{"start_line":38,"start_character":0,"end_line":39,"end_character":57},"updated":"2017-01-30 19:14:19.000000000","message":"This seems a roundabout way to get this information. Is there a set type for what you\u0027re testing? Will the client accept a randomly generated name? Is this information even required by the client?","commit_id":"ec44ed27e116f1d6a40ea5fd4e22ae7f753036fe"},{"author":{"_account_id":23184,"name":"DavidPurcell","email":"d.purcell222@gmail.com","username":"DavidPurcell"},"change_message_id":"c2fb50b98927467871ec5bd8f0cfe20b02f9a094","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        RBAC test for the glance add_metadef_property policy"},{"line_number":36,"context_line":"        \"\"\""},{"line_number":37,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":38,"context_line":"        body \u003d self.resource_types_client.list_resource_types()"},{"line_number":39,"context_line":"        resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dTrue)"},{"line_number":42,"context_line":"        property_name \u003d data_utils.rand_name(\u0027test-ns-property\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_2c38ddee","line":39,"range":{"start_line":38,"start_character":0,"end_line":39,"end_character":57},"in_reply_to":"3a461143_0c916147","updated":"2017-01-30 19:24:50.000000000","message":"The namespace_properties_client requires a resource_name to work off of, and this is the only way to get it.  To your above point, it could probably be the same one across all tests.","commit_id":"ec44ed27e116f1d6a40ea5fd4e22ae7f753036fe"},{"author":{"_account_id":23185,"name":"Samantha Blanco","email":"samantha.blanco@att.com","username":"sblanco"},"change_message_id":"a35286dece061b15de3b9845e8d49b9c8695d320","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        RBAC test for the glance get_metadef_property policy"},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":70,"context_line":"        body \u003d self.resource_types_client.list_resource_types()"},{"line_number":71,"context_line":"        resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":72,"context_line":"        property_name \u003d data_utils.rand_name(\u0027test-ns-property\u0027)"},{"line_number":73,"context_line":"        self.namespace_properties_client.create_namespace_property("},{"line_number":74,"context_line":"            namespace\u003dnamespace[\u0027namespace\u0027], type\u003d\"string\","}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_8ccc716b","line":71,"range":{"start_line":70,"start_character":0,"end_line":71,"end_character":57},"updated":"2017-01-30 19:14:19.000000000","message":"See L38-39","commit_id":"ec44ed27e116f1d6a40ea5fd4e22ae7f753036fe"},{"author":{"_account_id":23185,"name":"Samantha Blanco","email":"samantha.blanco@att.com","username":"sblanco"},"change_message_id":"a35286dece061b15de3b9845e8d49b9c8695d320","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        RBAC test for the glance modify_metadef_property policy"},{"line_number":88,"context_line":"        \"\"\""},{"line_number":89,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":90,"context_line":"        body \u003d self.resource_types_client.list_resource_types()"},{"line_number":91,"context_line":"        resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":92,"context_line":"        property_name \u003d data_utils.rand_name(\u0027test-ns-property\u0027)"},{"line_number":93,"context_line":"        self.namespace_properties_client.create_namespace_property("},{"line_number":94,"context_line":"            namespace\u003dnamespace[\u0027namespace\u0027], type\u003d\"string\","}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_0cdfa10d","line":91,"range":{"start_line":90,"start_character":0,"end_line":91,"end_character":57},"updated":"2017-01-30 19:14:19.000000000","message":"See L38-39","commit_id":"ec44ed27e116f1d6a40ea5fd4e22ae7f753036fe"},{"author":{"_account_id":23184,"name":"DavidPurcell","email":"d.purcell222@gmail.com","username":"DavidPurcell"},"change_message_id":"92f359ac84853d31b43411b9eb956e9d6436df42","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        RBAC test for the glance add_metadef_property policy"},{"line_number":42,"context_line":"        \"\"\""},{"line_number":43,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":44,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dTrue)"},{"line_number":45,"context_line":"        property_name \u003d data_utils.rand_name(\u0027test-ns-property\u0027)"},{"line_number":46,"context_line":"        self.namespace_properties_client.create_namespace_property("}],"source_content_type":"text/x-python","patch_set":2,"id":"3a461143_19335eac","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":43},"updated":"2017-01-30 20:07:20.000000000","message":"This throws a type error when run in resource_setup().","commit_id":"4a6e069d72c93700e5d13a5e8fa3c593cf4292b8"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"4ab808baeffb0545d8f5668295152b8af19ae49a","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    @classmethod"},{"line_number":30,"context_line":"    def resource_setup(cls):"},{"line_number":31,"context_line":"        super(NamespacesPropertyRbacTest, cls).resource_setup()"},{"line_number":32,"context_line":"        body \u003d cls.resource_types_client.list_resource_types()"},{"line_number":33,"context_line":"        cls.resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def tearDown(self):"},{"line_number":36,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a461143_df9d08bd","line":33,"range":{"start_line":32,"start_character":8,"end_line":33,"end_character":61},"updated":"2017-01-31 21:01:44.000000000","message":"You could automatically generate a resource_name by:\n1) Creating a namespace (API is /v2/metadefs/namespaces, only need a randomly generated name in payload)\n2) Creating an association with the namespace (API is /v2/metadefs/namespaces/{namespace_name}/resource_types, only need a namespace name and a randomly generated name in payload)\n\nhttp://developer.openstack.org/api-ref/image/v2/metadefs-index.html?expanded\u003dcreate-namespace-detail,create-resource-type-association-detail#create-resource-type-association","commit_id":"575dd64b574db15ae7e176e3960af3eeeca66b45"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"d20df38ecbf3ba6f565542eac3ec9a57152b9564","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    @classmethod"},{"line_number":30,"context_line":"    def resource_setup(cls):"},{"line_number":31,"context_line":"        super(NamespacesPropertyRbacTest, cls).resource_setup()"},{"line_number":32,"context_line":"        body \u003d cls.resource_types_client.list_resource_types()"},{"line_number":33,"context_line":"        cls.resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def tearDown(self):"},{"line_number":36,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a461143_8836a1b2","line":33,"range":{"start_line":32,"start_character":8,"end_line":33,"end_character":61},"in_reply_to":"3a461143_d32f94a5","updated":"2017-02-02 14:44:20.000000000","message":"Interesting. If this is the only way, then this is fine, so long as at least one resource type is guaranteed to exist.","commit_id":"575dd64b574db15ae7e176e3960af3eeeca66b45"},{"author":{"_account_id":23184,"name":"DavidPurcell","email":"d.purcell222@gmail.com","username":"DavidPurcell"},"change_message_id":"c0b6eb9b4478a3f0272b91dca7927996fa0a3589","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    @classmethod"},{"line_number":30,"context_line":"    def resource_setup(cls):"},{"line_number":31,"context_line":"        super(NamespacesPropertyRbacTest, cls).resource_setup()"},{"line_number":32,"context_line":"        body \u003d cls.resource_types_client.list_resource_types()"},{"line_number":33,"context_line":"        cls.resource_name \u003d body[\u0027resource_types\u0027][0][\u0027name\u0027]"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def tearDown(self):"},{"line_number":36,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a461143_d32f94a5","line":33,"range":{"start_line":32,"start_character":8,"end_line":33,"end_character":61},"in_reply_to":"3a461143_df9d08bd","updated":"2017-02-01 22:24:24.000000000","message":"If the name doesn\u0027t match up to an existing resource, the test returns a 404.","commit_id":"575dd64b574db15ae7e176e3960af3eeeca66b45"},{"author":{"_account_id":23625,"name":"Nicolas Helgeson","email":"nh202b@att.com","username":"nhelgeson"},"change_message_id":"bfe8cd4644d675e88966dfa6078bcfb2104d61c1","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        RBAC test for the glance add_metadef_property policy"},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":48,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dTrue)"},{"line_number":49,"context_line":"        property_name \u003d data_utils.rand_name(\u0027test-ns-property\u0027)"},{"line_number":50,"context_line":"        self.namespace_properties_client.create_namespace_property("}],"source_content_type":"text/x-python","patch_set":4,"id":"1a430d35_94c6ea14","line":47,"range":{"start_line":47,"start_character":25,"end_line":47,"end_character":41},"updated":"2017-02-03 00:39:58.000000000","message":"does create_namespace have a cleanup?","commit_id":"575dd64b574db15ae7e176e3960af3eeeca66b45"},{"author":{"_account_id":23184,"name":"DavidPurcell","email":"d.purcell222@gmail.com","username":"DavidPurcell"},"change_message_id":"916bc401ead3ef4e210b51701ebb0a5368b65fd4","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        RBAC test for the glance add_metadef_property policy"},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        namespace \u003d self.create_namespace()"},{"line_number":48,"context_line":"        rbac_utils.switch_role(self, switchToRbacRole\u003dTrue)"},{"line_number":49,"context_line":"        property_name \u003d data_utils.rand_name(\u0027test-ns-property\u0027)"},{"line_number":50,"context_line":"        self.namespace_properties_client.create_namespace_property("}],"source_content_type":"text/x-python","patch_set":4,"id":"1a430d35_57a0ff90","line":47,"range":{"start_line":47,"start_character":25,"end_line":47,"end_character":41},"in_reply_to":"1a430d35_94c6ea14","updated":"2017-02-03 04:58:26.000000000","message":"yep\nhttps://github.com/openstack/tempest/blob/master/tempest/api/image/base.py","commit_id":"575dd64b574db15ae7e176e3960af3eeeca66b45"}]}
