vrajat commented on code in PR #15720: URL: https://github.com/apache/pinot/pull/15720#discussion_r2079027965
########## pinot-controller/src/test/java/org/apache/pinot/controller/api/resources/PinotLogicalTableResourceTest.java: ########## @@ -129,90 +133,191 @@ public void testCreateUpdateDeleteLogicalTables(String logicalTableName, List<St } @Test - public void testLogicalTableValidationTests() + public void testLogicalTableQuoteConfigValidation() throws IOException { - String addLogicalTableUrl = _controllerRequestURLBuilder.forLogicalTableCreate(); + List<String> physicalTableNamesWithType = createHybridTables(List.of("test_table_1")); + LogicalTableConfig logicalTableConfig = + getDummyLogicalTableConfig(LOGICAL_TABLE_NAME, physicalTableNamesWithType, BROKER_TENANT); + logicalTableConfig.setQuotaConfig(new QuotaConfig("10G", "999")); + try { + ControllerTest.sendPostRequest(_addLogicalTableUrl, logicalTableConfig.toSingleLineJsonString(), getHeaders()); + fail("Logical Table POST request should have failed"); + } catch (IOException e) { + assertTrue(e.getMessage().contains("Reason: 'quota.storage' should not be set for logical table"), + e.getMessage()); + } Review Comment: Oh - sorry - I mis-read the test. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org