* Remove used of 'eqiad' and 'wmnet' in unit tests.
Change-Id: I5bf19b63876e4dc8deaca8cd9907dca0bfa15455
epcoordinator
epinstructor
eponline
epcoordinator
epinstructor
eponline
wmlsc
wmlscript
wmlscriptc
wmlsc
wmlscript
wmlscriptc
wordcount
wordprocessingml
wordwg
wordcount
wordprocessingml
wordwg
* @dataProvider provideRecords
*/
public function testPickServer( $params, $expected ) {
* @dataProvider provideRecords
*/
public function testPickServer( $params, $expected ) {
- $discoverer = new DnsSrvDiscoverer( '_etcd._tcp.eqiad.wmnet' );
+ $discoverer = new DnsSrvDiscoverer( 'etcd-tcp.example.net' );
$record = $discoverer->pickServer( $params );
$this->assertEquals( $expected, $record );
$record = $discoverer->pickServer( $params );
$this->assertEquals( $expected, $record );
- 'target' => 'conf1003.eqiad.wmnet',
+ 'target' => 'conf03.example.net',
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
],
[
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
],
[
- 'target' => 'conf1002.eqiad.wmnet',
+ 'target' => 'conf02.example.net',
'port' => 'SRV',
'pri' => 1,
'weight' => 1,
],
[
'port' => 'SRV',
'pri' => 1,
'weight' => 1,
],
[
- 'target' => 'conf1001.eqiad.wmnet',
+ 'target' => 'conf01.example.net',
'port' => 'SRV',
'pri' => 2,
'weight' => 1,
],
], // selected record
[
'port' => 'SRV',
'pri' => 2,
'weight' => 1,
],
], // selected record
[
- 'target' => 'conf1003.eqiad.wmnet',
+ 'target' => 'conf03.example.net',
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
- 'target' => 'conf1003or2.eqiad.wmnet',
+ 'target' => 'conf03or2.example.net',
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
],
[
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
],
[
- 'target' => 'conf1003or2.eqiad.wmnet',
+ 'target' => 'conf03or2.example.net',
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
],
[
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
],
[
- 'target' => 'conf1001.eqiad.wmnet',
+ 'target' => 'conf01.example.net',
'port' => 'SRV',
'pri' => 2,
'weight' => 1,
],
[
'port' => 'SRV',
'pri' => 2,
'weight' => 1,
],
[
- 'target' => 'conf1004.eqiad.wmnet',
+ 'target' => 'conf04.example.net',
'port' => 'SRV',
'pri' => 2,
'weight' => 1,
],
[
'port' => 'SRV',
'pri' => 2,
'weight' => 1,
],
[
- 'target' => 'conf1005.eqiad.wmnet',
+ 'target' => 'conf05.example.net',
'port' => 'SRV',
'pri' => 3,
'weight' => 1,
],
], // selected record
[
'port' => 'SRV',
'pri' => 3,
'weight' => 1,
],
], // selected record
[
- 'target' => 'conf1003or2.eqiad.wmnet',
+ 'target' => 'conf03or2.example.net',
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
'port' => 'SRV',
'pri' => 0,
'weight' => 1,
- 'target' => 'conf1001.eqiad.wmnet',
+ 'target' => 'conf01.example.net',
'port' => 35,
'pri' => 2,
'weight' => 1,
],
[
'port' => 35,
'pri' => 2,
'weight' => 1,
],
[
- 'target' => 'conf1004.eqiad.wmnet',
+ 'target' => 'conf04.example.net',
'port' => 74,
'pri' => 2,
'weight' => 1,
],
[
'port' => 74,
'pri' => 2,
'weight' => 1,
],
[
- 'target' => 'conf1005.eqiad.wmnet',
+ 'target' => 'conf05.example.net',
'port' => 77,
'pri' => 3,
'weight' => 1,
'port' => 77,
'pri' => 3,
'weight' => 1,
- 'target' => 'conf1001.eqiad.wmnet',
+ 'target' => 'conf01.example.net',
'port' => 35,
'pri' => 2,
'weight' => 1,
],
[
'port' => 35,
'pri' => 2,
'weight' => 1,
],
[
- 'target' => 'conf1005.eqiad.wmnet',
+ 'target' => 'conf05.example.net',
'port' => 77,
'pri' => 3,
'weight' => 1,
'port' => 77,
'pri' => 3,
'weight' => 1,