use other authmapper

This commit is contained in:
Zoltan Haindrich 2024-08-06 16:33:16 +00:00
parent 7740832995
commit 23c6f3bd96
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,7 @@ import org.apache.druid.server.QuerySchedulerProvider;
import org.apache.druid.server.log.RequestLogger; import org.apache.druid.server.log.RequestLogger;
import org.apache.druid.server.log.TestRequestLogger; import org.apache.druid.server.log.TestRequestLogger;
import org.apache.druid.server.metrics.NoopServiceEmitter; 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.AuthenticatorMapper;
import org.apache.druid.server.security.AuthorizerMapper; import org.apache.druid.server.security.AuthorizerMapper;
import org.apache.druid.server.security.Escalator; import org.apache.druid.server.security.Escalator;
@ -65,7 +66,7 @@ public class TestSqlModule extends TestDruidModule
.in(LazySingleton.class); .in(LazySingleton.class);
binder.bind(QuerySchedulerProvider.class).in(LazySingleton.class); binder.bind(QuerySchedulerProvider.class).in(LazySingleton.class);
binder.bind(AuthenticatorMapper.class).toInstance(CalciteTests.TEST_AUTHENTICATOR_MAPPER); 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); binder.bind(Escalator.class).toInstance(CalciteTests.TEST_AUTHENTICATOR_ESCALATOR);
} }
} }

View File

@ -155,7 +155,6 @@ public class CalciteTests
} else { } else {
return Access.OK; return Access.OK;
} }
case ResourceType.STATE:
case ResourceType.QUERY_CONTEXT: case ResourceType.QUERY_CONTEXT:
return Access.OK; return Access.OK;
case ResourceType.EXTERNAL: case ResourceType.EXTERNAL: