jerrypeng commented on a change in pull request #3168: Refactor api commands
URL: https://github.com/apache/pulsar/pull/3168#discussion_r242361509
 
 

 ##########
 File path: 
pulsar-functions/worker/src/test/java/org/apache/pulsar/functions/worker/rest/api/v2/FunctionApiV2ResourceTest.java
 ##########
 @@ -193,7 +199,7 @@ public void testRegisterFunctionMissingTenant() throws 
IOException {
                 "Tenant is not provided");
     }
 
-    @Test
+    @Test(expectedExceptions = RestException.class, 
expectedExceptionsMessageRegExp = "Namespace is not provided")
 
 Review comment:
   We should also check for the status code to see if its correct

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to