Skip to content

Commit

Permalink
Use debug logging level for OAuth2
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-walkiewicz authored and kokosing committed Mar 16, 2022
1 parent 0777c46 commit 21ffb09
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import static io.trino.tests.product.launcher.env.EnvironmentContainers.COORDINATOR;
import static io.trino.tests.product.launcher.env.common.Standard.CONTAINER_PRESTO_CONFIG_PROPERTIES;
import static io.trino.tests.product.launcher.env.common.Standard.CONTAINER_PRESTO_ETC;
import static java.util.Objects.requireNonNull;
import static org.testcontainers.utility.MountableFile.forHostPath;

Expand Down Expand Up @@ -57,7 +58,10 @@ public void extendEnvironment(Environment.Builder builder)
dockerContainer
.withCopyFileToContainer(
forHostPath(configDir.getPath("config.properties")),
CONTAINER_PRESTO_CONFIG_PROPERTIES);
CONTAINER_PRESTO_CONFIG_PROPERTIES)
.withCopyFileToContainer(
forHostPath(configDir.getPath("log.properties")),
CONTAINER_PRESTO_ETC + "/log.properties");

binder.exposePort(dockerContainer, 7778);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import static io.trino.tests.product.launcher.env.EnvironmentContainers.COORDINATOR;
import static io.trino.tests.product.launcher.env.common.Standard.CONTAINER_PRESTO_CONFIG_PROPERTIES;
import static io.trino.tests.product.launcher.env.common.Standard.CONTAINER_PRESTO_ETC;
import static java.util.Objects.requireNonNull;
import static org.testcontainers.utility.MountableFile.forHostPath;

Expand Down Expand Up @@ -57,7 +58,10 @@ public void extendEnvironment(Environment.Builder builder)
dockerContainer
.withCopyFileToContainer(
forHostPath(configDir.getPath("config.properties")),
CONTAINER_PRESTO_CONFIG_PROPERTIES);
CONTAINER_PRESTO_CONFIG_PROPERTIES)
.withCopyFileToContainer(
forHostPath(configDir.getPath("log.properties")),
CONTAINER_PRESTO_ETC + "/log.properties");

binder.exposePort(dockerContainer, 7778);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public void extendEnvironment(Environment.Builder builder)
CONTAINER_PRESTO_CONFIG_PROPERTIES)
.withCopyFileToContainer(
forHostPath(configDir.getPath("cert/truststore.jks")),
CONTAINER_PRESTO_ETC + "/cert/truststore.jks");
CONTAINER_PRESTO_ETC + "/cert/truststore.jks")
.withCopyFileToContainer(
forHostPath(configDir.getPath("log.properties")),
CONTAINER_PRESTO_ETC + "/log.properties");

binder.exposePort(dockerContainer, 7778);
});
Expand All @@ -81,9 +84,9 @@ public void extendEnvironment(Environment.Builder builder)
.withCopyFileToContainer(
forHostPath(configDir.getPath("httpd.conf")),
"/usr/local/apache2/conf/httpd.conf")
.withCopyFileToContainer(
forHostPath(configDir.getPath("cert")),
"/usr/local/apache2/conf/cert");
.withCopyFileToContainer(
forHostPath(configDir.getPath("cert")),
"/usr/local/apache2/conf/cert");
builder.addContainer(proxy);
builder.containerDependsOn(COORDINATOR, "proxy");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.trino.server.security.oauth2=DEBUG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.trino.server.security.oauth2=DEBUG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.trino.server.security.oauth2=DEBUG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.trino.server.security.oauth2=DEBUG

0 comments on commit 21ffb09

Please sign in to comment.