Search in sources :

Example 1 with PravegaAuthManager

use of io.pravega.controller.server.rpc.auth.PravegaAuthManager in project pravega by pravega.

the class SecureStreamMetaDataTests method setup.

@Override
@Before
public void setup() {
    this.authManager = new PravegaAuthManager(GRPCServerConfigImpl.builder().authorizationEnabled(true).tlsCertFile("../config/cert.pem").tlsKeyFile("../config/key.pem").userPasswordFile("../config/passwd").port(1000).build());
    ServerBuilder<?> server = ServerBuilder.forPort(TestUtils.getAvailableListenPort());
    this.authManager.registerInterceptors(server);
    super.setup();
}
Also used : PravegaAuthManager(io.pravega.controller.server.rpc.auth.PravegaAuthManager) Before(org.junit.Before)

Example 2 with PravegaAuthManager

use of io.pravega.controller.server.rpc.auth.PravegaAuthManager in project pravega by pravega.

the class FailingSecureStreamMetaDataTests method setup.

@Override
@Before
public void setup() {
    this.authManager = new PravegaAuthManager(GRPCServerConfigImpl.builder().authorizationEnabled(true).tlsCertFile("../config/cert.pem").tlsKeyFile("../config/key.pem").userPasswordFile("../config/passwd").port(1000).build());
    ServerBuilder<?> server = ServerBuilder.forPort(TestUtils.getAvailableListenPort());
    this.authManager.registerInterceptors(server);
    super.setup();
}
Also used : PravegaAuthManager(io.pravega.controller.server.rpc.auth.PravegaAuthManager) Before(org.junit.Before)

Aggregations

PravegaAuthManager (io.pravega.controller.server.rpc.auth.PravegaAuthManager)2 Before (org.junit.Before)2