mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 19:18:05 +00:00
Fix #656 jdbcConnection.json connectionURL field does not accept valid string
This commit is contained in:
parent
824d7cbcdf
commit
9c5df8df7c
@ -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": {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user