use of io.pravega.auth.FakeAuthHandler in project pravega by pravega.
the class RESTAuthHelperTest method init.
@Before
public void init() {
RESTServerConfig config = RESTServerConfigImpl.builder().host("localhost").port(TestUtils.getAvailableListenPort()).authorizationEnabled(true).userPasswordFile("passwd").tlsEnabled(false).build();
AuthHandlerManager authManager = new AuthHandlerManager(config);
authManager.registerHandler(new FakeAuthHandler());
authHelper = new RESTAuthHelper(authManager);
}
Aggregations