Skip to content

Commit

Permalink
Remove unused GCS configuration from TestDeltaLakeGcsConnectorSmokeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
pajaks authored and electrum committed Apr 24, 2024
1 parent 5dd85de commit cdbe06e
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
import io.trino.filesystem.TrinoFileSystem;
import io.trino.filesystem.TrinoFileSystemFactory;
import io.trino.filesystem.TrinoOutputFile;
import io.trino.hdfs.gcs.GoogleGcsConfigurationInitializer;
import io.trino.hdfs.gcs.HiveGcsConfig;
import io.trino.plugin.hive.containers.HiveHadoop;
import io.trino.spi.security.ConnectorIdentity;
import io.trino.testing.QueryRunner;
import org.apache.hadoop.conf.Configuration;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.parallel.Execution;
Expand Down Expand Up @@ -92,9 +89,6 @@ protected void environmentSetup()
this.gcpCredentialsFile = Files.createTempFile("gcp-credentials", ".json", READ_ONLY_PERMISSIONS);
gcpCredentialsFile.toFile().deleteOnExit();
Files.write(gcpCredentialsFile, jsonKeyBytes);
HiveGcsConfig gcsConfig = new HiveGcsConfig().setJsonKey(gcpCredentials);
Configuration configuration = new Configuration(false);
new GoogleGcsConfigurationInitializer(gcsConfig).initializeConfiguration(configuration);
}
catch (IOException e) {
throw new UncheckedIOException(e);
Expand Down

0 comments on commit cdbe06e

Please sign in to comment.