You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2022/09/08 09:09:33 UTC

[GitHub] [drill] jnturton commented on a diff in pull request #2499: DRILL-8117: Clean up deprecated Apache code in Drill

jnturton commented on code in PR #2499:
URL: https://github.com/apache/drill/pull/2499#discussion_r965700029


##########
exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/TestInboundImpersonation.java:
##########
@@ -156,22 +159,25 @@ public void unauthorizedTarget() throws Exception {
 
   @Test
   public void invalidPolicy() throws Exception {
-    thrownException.expect(new UserExceptionMatcher(UserBitShared.DrillPBError.ErrorType.VALIDATION,
-        "Invalid impersonation policies."));
+    String query = "ALTER SYSTEM SET `%s`='%s'";

Review Comment:
   Did you try the following here?
   ```
   client.alterSystem(...);
   try {
     // run test
   } finally {
     client.resetSystem(...);
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@drill.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org