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();
}
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();
}
Aggregations