mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-31 21:27:58 +00:00
Merge pull request #657 from open-metadata/656
Fix #656 jdbcConnection.json connectionURL field does not accept vali…
This commit is contained in:
commit
2023e9a2bc
@ -11,9 +11,8 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"connectionUrl": {
|
"connectionUrl": {
|
||||||
"description": "Type used for JDBC connection URL.",
|
"description": "Type used for JDBC connection URL of format `url_scheme://<username>:<password>@<host>:<port>/<db_name>`.",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "uri"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"jdbcInfo": {
|
"jdbcInfo": {
|
||||||
|
@ -58,12 +58,8 @@ public final class TestUtils {
|
|||||||
public static URI PIPELINE_URL;
|
public static URI PIPELINE_URL;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
JDBC_INFO = new JdbcInfo().withConnectionUrl("scheme://user_name:password#_@%:localhost:1000/test")
|
||||||
JDBC_INFO = new JdbcInfo().withConnectionUrl(new URI("jdbc:service://")).withDriverClass("driverClass");
|
.withDriverClass("driverClass");
|
||||||
} catch (URISyntaxException e) {
|
|
||||||
JDBC_INFO = null;
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user