-
Notifications
You must be signed in to change notification settings - Fork 733
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove pool support in DSN as official client doesn't support such co…
…nfiguration
- Loading branch information
Showing
2 changed files
with
0 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,6 @@ public function testFromSimpleDsn(): void | |
'port' => 9201, | ||
'path' => null, | ||
'url' => null, | ||
'connections' => [], | ||
'roundRobin' => false, | ||
'retryOnConflict' => 0, | ||
'username' => null, | ||
'password' => null, | ||
|
@@ -57,8 +55,6 @@ public function testFromDsnWithParameters(): void | |
'port' => 9201, | ||
'path' => '/my-path', | ||
'url' => null, | ||
'connections' => [], | ||
'roundRobin' => true, | ||
'retryOnConflict' => 2, | ||
'username' => 'user', | ||
'password' => 'p4ss', | ||
|
@@ -69,29 +65,6 @@ public function testFromDsnWithParameters(): void | |
$this->assertEquals($expected, $configuration->getAll()); | ||
} | ||
|
||
public function testFromDsnWithPool(): void | ||
{ | ||
$configuration = ClientConfiguration::fromDsn('pool(http://[email protected] http://127.0.0.2/bar?timeout=4)?extra=abc&username=tobias'); | ||
$expected = [ | ||
'host' => null, | ||
'port' => null, | ||
'path' => null, | ||
'url' => null, | ||
'connections' => [ | ||
['host' => '127.0.0.1', 'username' => 'nicolas'], | ||
['host' => '127.0.0.2', 'path' => '/bar', 'timeout' => 4], | ||
], | ||
'roundRobin' => false, | ||
'retryOnConflict' => 0, | ||
'username' => 'tobias', | ||
'password' => null, | ||
'extra' => 'abc', | ||
'transport_config' => [], | ||
]; | ||
|
||
$this->assertEquals($expected, $configuration->getAll()); | ||
} | ||
|
||
public function testFromEmptyArray(): void | ||
{ | ||
$configuration = ClientConfiguration::fromArray([]); | ||
|
@@ -101,8 +74,6 @@ public function testFromEmptyArray(): void | |
'port' => null, | ||
'path' => null, | ||
'url' => null, | ||
'connections' => [], // host, port, path, timeout, transport, compression, timeout, username, password, config -> (curl, headers, url) | ||
'roundRobin' => false, | ||
'retryOnConflict' => 0, | ||
'username' => null, | ||
'password' => null, | ||
|
@@ -124,8 +95,6 @@ public function testFromArray(): void | |
'port' => null, | ||
'path' => null, | ||
'url' => null, | ||
'connections' => [], // host, port, path, timeout, transport, compression, timeout, username, password, config -> (curl, headers, url) | ||
'roundRobin' => false, | ||
'retryOnConflict' => 0, | ||
'username' => 'Jdoe', | ||
'password' => null, | ||
|
@@ -152,8 +121,6 @@ public function testGet(): void | |
'port' => null, | ||
'path' => null, | ||
'url' => null, | ||
'connections' => [], | ||
'roundRobin' => false, | ||
'retryOnConflict' => 0, | ||
'username' => null, | ||
'password' => null, | ||
|