Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kurrentdb/src/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ lazy_static::lazy_static! {
let mut s = HashSet::new();
s.insert("esdb");
s.insert("esdb+discover");
s.insert("kurrentdb");
s.insert("kurrentdb+discover");
s.insert("kurrent");
s.insert("kurrent+discover");
s.insert("kdb");
Expand Down
35 changes: 35 additions & 0 deletions kurrentdb/tests/fixtures/connection_string/mockups.toml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,22 @@ keep_alive_timeout = 10_000
host = "localhost"
port = 2_113

[[mockups]]
string = "kurrentdb://localhost"
[mockups.expected]
dns_discover = false
max_discover_attempts = 3
discovery_interval = 500
gossip_timeout = 3_000
preference = "Leader"
secure = true
tls_verify_cert = true
keep_alive_interval = 10_000
keep_alive_timeout = 10_000
[[mockups.expected.hosts]]
host = "localhost"
port = 2_113

[[mockups]]
string = "kurrent://localhost"
[mockups.expected]
Expand Down Expand Up @@ -477,6 +493,25 @@ keep_alive_timeout = 10_000
host = "localhost"
port = 2_113

[[mockups]]
string = "kurrentdb+discover://user:pass@host?nodePreference=follower&tlsVerifyCert=false"
[mockups.expected]
dns_discover = true
max_discover_attempts = 3
discovery_interval = 500
gossip_timeout = 3_000
preference = "Follower"
secure = true
tls_verify_cert = false
keep_alive_interval = 10_000
keep_alive_timeout = 10_000
[mockups.expected.default_user_name]
login = "user"
password = "pass"
[[mockups.expected.hosts]]
host = "host"
port = 2_113

[[mockups]]
string = "kurrent+discover://user:pass@host?nodePreference=follower&tlsVerifyCert=false"
[mockups.expected]
Expand Down
Loading