Skip to content

Commit

Permalink
Adding more vertica url tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Mar 28, 2024
1 parent 2d8cbb2 commit d86b6db
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dburl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,30 @@ func TestParse(t *testing.T) {
`postgres://user:[email protected]:5439/dbname`,
``,
},
{
`ve://`,
`vertica`,
`vertica://localhost:5433/`,
``,
},
{
`ve://user:pass@vertica-host/dbvertica?tlsmode=server-strict`,
`vertica`,
`vertica://user:pass@vertica-host:5433/dbvertica?tlsmode=server-strict`,
``,
},
{
`vertica://vertica:P4ssw0rd@localhost/vertica`,
`vertica`,
`vertica://vertica:P4ssw0rd@localhost:5433/vertica`,
``,
},
{
`ve://vertica:P4ssw0rd@localhost:5433/vertica`,
`vertica`,
`vertica://vertica:P4ssw0rd@localhost:5433/vertica`,
``,
},
{
`moderncsqlite:///path/to/file.sqlite3`,
`moderncsqlite`,
Expand Down

0 comments on commit d86b6db

Please sign in to comment.