)]}'
{"contrib/tempest/tempest/api/share/test_rules.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"96554e0fb7daade01b22d6d6fca7e96f68e9823d","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        # testing common rules functionality,"},{"line_number":212,"context_line":"        # that isn\u0027t dependent on protocol or rule type."},{"line_number":213,"context_line":"        super(ShareRulesTest, self).setUp()"},{"line_number":214,"context_line":"        if CONF.share.enable_cert_rules_for_protocols:"},{"line_number":215,"context_line":"            self.access_type \u003d \"cert\""},{"line_number":216,"context_line":"            self.access_to \u003d \"client3.com\""},{"line_number":217,"context_line":"            protocol \u003d CONF.share.enable_cert_rules_for_protocols[0]"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_29abe48a","line":214,"updated":"2015-08-25 12:09:34.000000000","message":"Why it is first? First should be thing that is used in most cases.","commit_id":"c41ddf6ebdf117f439b107a2617cfa67cf1763a1"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"fd322c0ee831824ebefebb147421757d9f7e2bbb","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        # testing common rules functionality,"},{"line_number":212,"context_line":"        # that isn\u0027t dependent on protocol or rule type."},{"line_number":213,"context_line":"        super(ShareRulesTest, self).setUp()"},{"line_number":214,"context_line":"        if CONF.share.enable_cert_rules_for_protocols:"},{"line_number":215,"context_line":"            self.access_type \u003d \"cert\""},{"line_number":216,"context_line":"            self.access_to \u003d \"client3.com\""},{"line_number":217,"context_line":"            protocol \u003d CONF.share.enable_cert_rules_for_protocols[0]"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_328a3965","line":214,"in_reply_to":"fa1b9901_29abe48a","updated":"2015-08-26 09:25:33.000000000","message":"Earlier, even when  \"enable_cert_rules_for_protocols\" was set, this test suite ran with  access_type \"ip\" irrespective of the protocol type - nfs, cifs, glusterfs, hdfs . However,  \"ip\" access type is not compatible with \"glusterfs\" protocol. So this entire test suite failed for testing general access rules with \"glusterfs\" protcol.  I try here to fix this issue in the easiest (may be the dumbest)  way, by testing if \"enable_cert_rules_for_protocols\", whose default value I\u0027ve made \"None\" in this fix, is set and then check for \"enable_ip_rules_for_protocols\",  whose value is set by default to [\"nfs\", \"cifs\"].  Can you suggest a better fix for this issue?\n\nIs it OK if I do the following?\n\n\nif CONF.share.enable_ip_rules_for_protocols and (CONF.share.enable_protocols[0] !\u003d \"glusterfs\"):\n\n\n\nand leave the order as is before, ip_rules followed by user_rules followed by cert_rules.","commit_id":"c41ddf6ebdf117f439b107a2617cfa67cf1763a1"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"c63456ca8092712051acf7970079fdda581bd26e","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        # testing common rules functionality,"},{"line_number":212,"context_line":"        # that isn\u0027t dependent on protocol or rule type."},{"line_number":213,"context_line":"        super(ShareRulesTest, self).setUp()"},{"line_number":214,"context_line":"        if CONF.share.enable_cert_rules_for_protocols:"},{"line_number":215,"context_line":"            self.access_type \u003d \"cert\""},{"line_number":216,"context_line":"            self.access_to \u003d \"client3.com\""},{"line_number":217,"context_line":"            protocol \u003d CONF.share.enable_cert_rules_for_protocols[0]"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_e9784f80","line":214,"in_reply_to":"fa1b9901_328a3965","updated":"2015-08-26 12:12:00.000000000","message":"I\u0027ve made the change, which I suggested in my earlier comment (see above),\n\nif CONF.share.enable_ip_rules_for_protocols and (CONF.share.enable_protocols[0] !\u003d \"glusterfs\"):\n \nin the new patch set. Hope this change is OK.","commit_id":"c41ddf6ebdf117f439b107a2617cfa67cf1763a1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"cf53068a87e50fb47c9aca92547a4ca64807ccfa","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        # testing common rules functionality,"},{"line_number":212,"context_line":"        # that isn\u0027t dependent on protocol or rule type."},{"line_number":213,"context_line":"        super(ShareRulesTest, self).setUp()"},{"line_number":214,"context_line":"        if CONF.share.enable_cert_rules_for_protocols:"},{"line_number":215,"context_line":"            self.access_type \u003d \"cert\""},{"line_number":216,"context_line":"            self.access_to \u003d \"client3.com\""},{"line_number":217,"context_line":"            protocol \u003d CONF.share.enable_cert_rules_for_protocols[0]"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_25d98357","line":214,"in_reply_to":"fa1b9901_e9784f80","updated":"2015-08-26 14:12:59.000000000","message":"I guess you have improper configuration. just need to redefine opt \"enable_ip_rules_for_protocols\" with empty value.","commit_id":"c41ddf6ebdf117f439b107a2617cfa67cf1763a1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"eee5c5b16c928139beb84da388efcfb5b39eb804","unresolved":false,"context_lines":[{"line_number":212,"context_line":"        # that isn\u0027t dependent on protocol or rule type."},{"line_number":213,"context_line":"        super(ShareRulesTest, self).setUp()"},{"line_number":214,"context_line":"        if CONF.share.enable_ip_rules_for_protocols and ("},{"line_number":215,"context_line":"            CONF.share.enable_protocols[0] !\u003d \u0027glusterfs\u0027"},{"line_number":216,"context_line":"        ):"},{"line_number":217,"context_line":"            self.access_type \u003d \"ip\""},{"line_number":218,"context_line":"            self.access_to \u003d \"8.8.8.8\""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_0590ff41","line":215,"updated":"2015-08-26 14:13:22.000000000","message":"It is redundant, proper approach is to redefine opt \"enable_ip_rules_for_protocols\" with empty value.","commit_id":"1da2eade204e51769631377bc89806bb04771afe"}],"contrib/tempest/tempest/api/share/test_rules_negative.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41a318848ff4bddfcd02574f71a659b57eec704a","unresolved":false,"context_lines":[{"line_number":212,"context_line":"        cls.share \u003d cls.create_share(cls.protocol)"},{"line_number":213,"context_line":"        if CONF.share.run_snapshot_tests:"},{"line_number":214,"context_line":"            # create snapshot"},{"line_number":215,"context_line":"            cls.snap \u003d cls.create_snapshot_wait_for_active(cls.share[\"id\"])"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    @test.attr(type\u003d[\"negative\", \"gate\", ])"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_1c643c47","line":215,"updated":"2015-08-19 01:42:58.000000000","message":"too many blank lines","commit_id":"936ac00cf788ed78534b11e3459199c472a5bc3f"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"434fd68831be06a0b8f298a6e2e7735ce2042bb3","unresolved":false,"context_lines":[{"line_number":212,"context_line":"        cls.share \u003d cls.create_share(cls.protocol)"},{"line_number":213,"context_line":"        if CONF.share.run_snapshot_tests:"},{"line_number":214,"context_line":"            # create snapshot"},{"line_number":215,"context_line":"            cls.snap \u003d cls.create_snapshot_wait_for_active(cls.share[\"id\"])"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    @test.attr(type\u003d[\"negative\", \"gate\", ])"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_feae1d84","line":215,"in_reply_to":"fa1b9901_1c643c47","updated":"2015-08-19 02:47:10.000000000","message":"Done","commit_id":"936ac00cf788ed78534b11e3459199c472a5bc3f"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41a318848ff4bddfcd02574f71a659b57eec704a","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                          self.shares_client.create_access_rule,"},{"line_number":251,"context_line":"                          \"wrong_share_id\","},{"line_number":252,"context_line":"                          access_type\u003d\"cert\","},{"line_number":253,"context_line":"                          access_to\u003d\"fakeclient2.com\")"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":""},{"line_number":256,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_dc5d647a","line":253,"updated":"2015-08-19 01:42:58.000000000","message":"too many blank lines","commit_id":"936ac00cf788ed78534b11e3459199c472a5bc3f"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"434fd68831be06a0b8f298a6e2e7735ce2042bb3","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                          self.shares_client.create_access_rule,"},{"line_number":251,"context_line":"                          \"wrong_share_id\","},{"line_number":252,"context_line":"                          access_type\u003d\"cert\","},{"line_number":253,"context_line":"                          access_to\u003d\"fakeclient2.com\")"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":""},{"line_number":256,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_1eaaf170","line":253,"in_reply_to":"fa1b9901_dc5d647a","updated":"2015-08-19 02:47:10.000000000","message":"Done","commit_id":"936ac00cf788ed78534b11e3459199c472a5bc3f"}],"contrib/tempest/tempest/config_share.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"96554e0fb7daade01b22d6d6fca7e96f68e9823d","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                help\u003d\"Selection of protocols, that should \""},{"line_number":64,"context_line":"                     \"be covered with user rule tests\"),"},{"line_number":65,"context_line":"    cfg.ListOpt(\"enable_cert_rules_for_protocols\","},{"line_number":66,"context_line":"                default\u003d[],"},{"line_number":67,"context_line":"                help\u003d\"Protocols that should be covered with cert rule tests.\"),"},{"line_number":68,"context_line":"    cfg.StrOpt(\"username_for_user_rules\","},{"line_number":69,"context_line":"               default\u003d\"Administrator\","}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_41ce1683","line":66,"updated":"2015-08-25 12:09:34.000000000","message":"It was OK to have \"GlusterFS\" here, because it also requires this protocol be added to \"enable_protocols\" to make some effect.","commit_id":"c41ddf6ebdf117f439b107a2617cfa67cf1763a1"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"c63456ca8092712051acf7970079fdda581bd26e","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                help\u003d\"Selection of protocols, that should \""},{"line_number":64,"context_line":"                     \"be covered with user rule tests\"),"},{"line_number":65,"context_line":"    cfg.ListOpt(\"enable_cert_rules_for_protocols\","},{"line_number":66,"context_line":"                default\u003d[],"},{"line_number":67,"context_line":"                help\u003d\"Protocols that should be covered with cert rule tests.\"),"},{"line_number":68,"context_line":"    cfg.StrOpt(\"username_for_user_rules\","},{"line_number":69,"context_line":"               default\u003d\"Administrator\","}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_49effb1d","line":66,"in_reply_to":"fa1b9901_41ce1683","updated":"2015-08-26 12:12:00.000000000","message":"Done","commit_id":"c41ddf6ebdf117f439b107a2617cfa67cf1763a1"}]}
