diff options
author | Rene Engelhard <rene@debian.org> | 2018-12-09 22:56:16 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2018-12-10 10:41:01 +0100 |
commit | c56b2e3f8dc260e9927289ca382534f491b97aba (patch) | |
tree | 263ab40bd9a1ad8ed0bdc19cbb049548d0b50b65 /connectivity/qa | |
parent | 7c7ec84c26a3a92635811e4cf491b7e21796e1fa (diff) |
replace hardcoded jdbc mysql driver URL with env variable
introduce CONNECTIVITY_TEST_MYSQL_DRIVER_JDBC analogous to
CONNECTIVITY_TEST_MYSQL_DRIVER for mysqlc
Change-Id: I90b14e7145418248de79aa9d4bf4285fd4f98f9d
Reviewed-on: https://gerrit.libreoffice.org/64854
Tested-by: Jenkins
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity/qa')
-rw-r--r-- | connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java index a44f1b9d1241..73f6ca2d5116 100644 --- a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java +++ b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java @@ -57,7 +57,12 @@ public class JdbcLongVarCharTest extends ComplexTestCase { System.out.println("== Start testing =="); - String url = "jdbc:mysql://localhost:3306/mysql?user=root"; + /* Get URL from environment variable. + * + * Example URL: + * jdbc:mysql://localhost:3306/mysql?user=username?password=password + */ + String url = System.getenv("CONNECTIVITY_TEST_MYSQL_DRIVER_JDBC"); com.sun.star.beans.PropertyValue prop[] = new PropertyValue[1]; prop[0] = new PropertyValue("JavaDriverClass", 0, "com.mysql.jdbc.Driver", PropertyState.DIRECT_VALUE); |