mirror of https://github.com/apache/druid.git
use other authmapper
This commit is contained in:
parent
7740832995
commit
23c6f3bd96
|
@ -34,6 +34,7 @@ import org.apache.druid.server.QuerySchedulerProvider;
|
|||
import org.apache.druid.server.log.RequestLogger;
|
||||
import org.apache.druid.server.log.TestRequestLogger;
|
||||
import org.apache.druid.server.metrics.NoopServiceEmitter;
|
||||
import org.apache.druid.server.security.AuthTestUtils;
|
||||
import org.apache.druid.server.security.AuthenticatorMapper;
|
||||
import org.apache.druid.server.security.AuthorizerMapper;
|
||||
import org.apache.druid.server.security.Escalator;
|
||||
|
@ -65,7 +66,7 @@ public class TestSqlModule extends TestDruidModule
|
|||
.in(LazySingleton.class);
|
||||
binder.bind(QuerySchedulerProvider.class).in(LazySingleton.class);
|
||||
binder.bind(AuthenticatorMapper.class).toInstance(CalciteTests.TEST_AUTHENTICATOR_MAPPER);
|
||||
binder.bind(AuthorizerMapper.class).toInstance(CalciteTests.TEST_AUTHORIZER_MAPPER);
|
||||
binder.bind(AuthorizerMapper.class).toInstance(AuthTestUtils.TEST_AUTHORIZER_MAPPER);
|
||||
binder.bind(Escalator.class).toInstance(CalciteTests.TEST_AUTHENTICATOR_ESCALATOR);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,7 +155,6 @@ public class CalciteTests
|
|||
} else {
|
||||
return Access.OK;
|
||||
}
|
||||
case ResourceType.STATE:
|
||||
case ResourceType.QUERY_CONTEXT:
|
||||
return Access.OK;
|
||||
case ResourceType.EXTERNAL:
|
||||
|
|
Loading…
Reference in New Issue