Fredy Wijaya has posted comments on this change. ( http://gerrit.cloudera.org:8080/11696 )
Change subject: IMPALA-7713: Add test coverage for catalogd restart when authorization is enabled ...................................................................... Patch Set 4: (1 comment) http://gerrit.cloudera.org:8080/#/c/11696/3/tests/authorization/test_authorization.py File tests/authorization/test_authorization.py: http://gerrit.cloudera.org:8080/#/c/11696/3/tests/authorization/test_authorization.py@409 PS3, Line 409: : result = self.client.execute("show grant role %s_baz" % unique_role) : assert len(result.data) == 1 : TestAuthorization._check_privileges(result.data[0].split("\t"), : ["database", "functional_avro", "", "", "", : "all", "false"]) : : self.role_cleanup(unique_role) : try: : self.client.execute("create role %s_foo" % unique_role) : self.client.execute("create role %s_bar" % unique_role) : self.client.execute("create role %s_baz" % unique_role) : self.client.execute("grant all on database functional to role %s_foo" % : unique_role) : self.client.execute("grant all on database functional_kudu to role %s_bar" % : unique_role) : self.client.execute("grant all on database functional > Can you wrap this in a function (can be local) and then run it twice? Done -- To view, visit http://gerrit.cloudera.org:8080/11696 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ib9a168697401cf0b83c7a193fa477888b48cb369 Gerrit-Change-Number: 11696 Gerrit-PatchSet: 4 Gerrit-Owner: Fredy Wijaya <fwij...@cloudera.com> Gerrit-Reviewer: Csaba Ringhofer <csringho...@cloudera.com> Gerrit-Reviewer: Fredy Wijaya <fwij...@cloudera.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Philip Zeyliger <phi...@cloudera.com> Gerrit-Reviewer: Vuk Ercegovac <vercego...@cloudera.com> Gerrit-Comment-Date: Tue, 16 Oct 2018 20:39:57 +0000 Gerrit-HasComments: Yes