standalone/src/test/java/io/pravega/local/AuthEnabledInProcPravegaClusterTest.java
/**
     * This test verifies that create stream fails when the client config is invalid.
     *
     * Note: The timeout being used for the test is kept rather large so that there is ample time for the expected
     * exception to be raised even in case of abnormal delays in test environments.
     */
This test verifies that create stream fails when the client config is invalid.
Note: The timeout being used for the test is kept rather large so that there is ample time for the expected
exception to be raised even in case of abnormal delays in test environments.
This test verifies that create stream fails when the client config is invalid . Note : The timeout being used for the test is kept rather large so that there is ample time for the expected exception to be raised even in case of abnormal delays in test environments .
@Test(timeout = 30000)
    public void testCreateStreamFailsWithInvalidClientConfig() {
       ClientConfig clientConfig = ClientConfig.builder()
                .credentials(new DefaultCredentials("", ""))
                .controllerURI(URI.create(EMULATOR.pravega.getInProcPravegaCluster().getControllerURI()))
                .build();
        @Cleanup
        StreamManager streamManager = StreamManager.create(clientConfig);
        AssertExtensions.assertThrows("Auth exception did not occur.",
                () -> streamManager.createScope(scope),
                e -> hasAuthExceptionAsRootCause(e));
    }
@ Test ( timeout = 30000 ) public void testCreateStreamFailsWithInvalidClientConfig ( ) { ClientConfig clientConfig = ClientConfig . builder ( ) . credentials ( new DefaultCredentials ( "" , "" ) ) . controllerURI ( URI . create ( EMULATOR . pravega . getInProcPravegaCluster ( ) . getControllerURI ( ) ) ) . build ( ) ; @ Cleanup StreamManager streamManager = StreamManager . create ( clientConfig ) ; AssertExtensions . assertThrows ( "Auth exception did not occur." , ( ) -> streamManager . createScope ( scope ) , e -> hasAuthExceptionAsRootCause ( e ) ) ; }
This test verifies that create stream fails when the client config is invalid.
This test verifies that create stream fails when the client config is invalid .