addTextElement(rootNode, "maxEventDrivenThreadCount", String.valueOf(coreProperties.getMaxConcurrentThreads())); FlowControllerSchema flowControllerProperties = configSchema.getFlowControllerProperties();
@Test public void testUser3() throws Exception { SSLContext sslContext = loadSslContext("user3"); assertReturnCode("", sslContext, 400); ConfigSchema configSchema = assertReturnCode("?class=raspi2", sslContext, 200); assertEquals("raspi2.v1", configSchema.getFlowControllerProperties().getName()); configSchema = assertReturnCode("?class=raspi3", sslContext, 200); assertEquals("raspi3.v2", configSchema.getFlowControllerProperties().getName()); }
@Test public void testCurrentVersion() throws IOException, SchemaLoaderException { ConfigSchema configSchema = getConfigSchema(c2Url + "?class=raspi3"); assertEquals(3, configSchema.getVersion()); assertEquals("raspi3.v2", configSchema.getFlowControllerProperties().getName()); }
@Test public void testVersion1() throws IOException, SchemaLoaderException { ConfigSchema configSchema = getConfigSchema(c2Url + "?class=raspi3&version=1"); assertEquals(3, configSchema.getVersion()); assertEquals("raspi3.v1", configSchema.getFlowControllerProperties().getName()); }
@Test public void testVersion2() throws IOException, SchemaLoaderException { ConfigSchema configSchema = getConfigSchema(c2Url + "?class=raspi3&version=2"); assertEquals(3, configSchema.getVersion()); assertEquals("raspi3.v2", configSchema.getFlowControllerProperties().getName()); }
@Test public void testUser1() throws Exception { SSLContext sslContext = loadSslContext("user1"); assertReturnCode("", sslContext, 403); ConfigSchema configSchema = assertReturnCode("?class=raspi2", sslContext, 200); assertEquals("raspi2.v1", configSchema.getFlowControllerProperties().getName()); assertReturnCode("?class=raspi3", sslContext, 403); }
@Test public void testUser2() throws Exception { SSLContext sslContext = loadSslContext("user2"); assertReturnCode("", sslContext, 403); assertReturnCode("?class=raspi2", sslContext, 403); ConfigSchema configSchema = assertReturnCode("?class=raspi3", sslContext, 200); assertEquals("raspi3.v2", configSchema.getFlowControllerProperties().getName()); }