This is an automated email from the ASF dual-hosted git repository.

jenniferdai pushed a commit to branch tenantNotFound
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/tenantNotFound by this push:
     new 25bfe80  Add error for empty instance list for tenant API
25bfe80 is described below

commit 25bfe802c2d66c68c32d04055bc80c54b9d72543
Author: Jennifer Dai <[email protected]>
AuthorDate: Thu Jan 9 15:36:32 2020 -0800

    Add error for empty instance list for tenant API
---
 .../apache/pinot/controller/helix/ControllerTenantTest.java    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/pinot-controller/src/test/java/org/apache/pinot/controller/helix/ControllerTenantTest.java
 
b/pinot-controller/src/test/java/org/apache/pinot/controller/helix/ControllerTenantTest.java
index fbfbb88..c2406d3 100644
--- 
a/pinot-controller/src/test/java/org/apache/pinot/controller/helix/ControllerTenantTest.java
+++ 
b/pinot-controller/src/test/java/org/apache/pinot/controller/helix/ControllerTenantTest.java
@@ -106,6 +106,16 @@ public class ControllerTenantTest extends ControllerTest {
   }
 
   @Test
+  public void testEmptyServerTenant() {
+    try {
+      
sendGetRequest(_controllerRequestURLBuilder.forServerTenantGet("doesn't_exist"));
+      Assert.fail();
+    } catch (Exception e) {
+
+    }
+  }
+
+  @Test
   public void testServerTenant()
       throws IOException {
     // Create server tenants


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to