This is an automated email from the ASF dual-hosted git repository.

lesun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gobblin.git


The following commit(s) were added to refs/heads/master by this push:
     new 30bc46d  [GOBBLIN-1408] Uses empty password on local test runs
30bc46d is described below

commit 30bc46dba4becfa3a3435821e3fcb429d6c17d75
Author: William Lo <[email protected]>
AuthorDate: Thu Mar 11 15:11:04 2021 -0800

    [GOBBLIN-1408] Uses empty password on local test runs
    
    Closes #3242 from Will-Lo/fix-local-db-tests
---
 .../apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
 
b/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
index a18b9d3..256a455 100644
--- 
a/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
+++ 
b/gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/TestMetastoreDatabaseServer.java
@@ -152,10 +152,12 @@ class TestMetastoreDatabaseServer implements Closeable {
   }
 
   private MySqlJdbcUrl getInformationSchemaJdbcUrl() throws URISyntaxException 
{
+    // embedded mysql has an empty password by default
+    String password =  this.embeddedMysqlEnabled ? "" : ROOT_PASSWORD;
     return getBaseJdbcUrl()
         .setPath(INFORMATION_SCHEMA)
         .setUser(ROOT_USER)
-        .setPassword(ROOT_PASSWORD);
+        .setPassword(password);
   }
 
   private Optional<Connection> getConnector(MySqlJdbcUrl jdbcUrl) throws 
SQLException {

Reply via email to