Merge pull request #657 from open-metadata/656

Fix #656 jdbcConnection.json connectionURL field does not accept vali…
This commit is contained in:
Suresh Srinivas 2021-10-04 11:44:56 -07:00 committed by GitHub
commit 2023e9a2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 9 deletions

View File

@ -11,9 +11,8 @@
"type": "string"
},
"connectionUrl": {
"description": "Type used for JDBC connection URL.",
"type": "string",
"format": "uri"
"description": "Type used for JDBC connection URL of format `url_scheme://<username>:<password>@<host>:<port>/<db_name>`.",
"type": "string"
},
"jdbcInfo": {

View File

@ -58,12 +58,8 @@ public final class TestUtils {
public static URI PIPELINE_URL;
static {
try {
JDBC_INFO = new JdbcInfo().withConnectionUrl(new URI("jdbc:service://")).withDriverClass("driverClass");
} catch (URISyntaxException e) {
JDBC_INFO = null;
e.printStackTrace();
}
JDBC_INFO = new JdbcInfo().withConnectionUrl("scheme://user_name:password#_@%:localhost:1000/test")
.withDriverClass("driverClass");
}
static {