@@ -276,37 +276,37 @@ public function testInlineHosts()
276
276
'localhost:9200 '
277
277
])->build ();
278
278
$ host = $ client ->transport ->getConnection ();
279
- $ this ->assertSame ("localhost:9200 " , $ host ->getHost ());
279
+ $ this ->assertSame ("localhost " , $ host ->getHost ());
280
280
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
281
281
282
282
283
283
$ client = Elasticsearch \ClientBuilder::create ()->setHosts ([
284
284
'http://localhost:9200 '
285
285
])->build ();
286
286
$ host = $ client ->transport ->getConnection ();
287
- $ this ->assertSame ("localhost:9200 " , $ host ->getHost ());
287
+ $ this ->assertSame ("localhost " , $ host ->getHost ());
288
288
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
289
289
290
290
$ client = Elasticsearch \ClientBuilder::create ()->setHosts ([
291
291
'http://foo.com:9200 '
292
292
])->build ();
293
293
$ host = $ client ->transport ->getConnection ();
294
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
294
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
295
295
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
296
296
297
297
$ client = Elasticsearch \ClientBuilder::create ()->setHosts ([
298
298
'https://foo.com:9200 '
299
299
])->build ();
300
300
$ host = $ client ->transport ->getConnection ();
301
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
301
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
302
302
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
303
303
304
304
305
305
$ client = Elasticsearch \ClientBuilder::create ()->setHosts ([
306
306
'https://user:[email protected] :9200 '
307
307
])->build ();
308
308
$ host = $ client ->transport ->getConnection ();
309
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
309
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
310
310
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
311
311
$ this ->assertSame ("user:pass " , $ host ->getUserPass ());
312
312
}
@@ -321,7 +321,7 @@ public function testExtendedHosts()
321
321
]
322
322
])->build ();
323
323
$ host = $ client ->transport ->getConnection ();
324
- $ this ->assertSame ("localhost:9200 " , $ host ->getHost ());
324
+ $ this ->assertSame ("localhost " , $ host ->getHost ());
325
325
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
326
326
327
327
@@ -333,7 +333,7 @@ public function testExtendedHosts()
333
333
]
334
334
])->build ();
335
335
$ host = $ client ->transport ->getConnection ();
336
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
336
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
337
337
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
338
338
339
339
@@ -345,7 +345,7 @@ public function testExtendedHosts()
345
345
]
346
346
])->build ();
347
347
$ host = $ client ->transport ->getConnection ();
348
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
348
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
349
349
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
350
350
351
351
@@ -356,7 +356,7 @@ public function testExtendedHosts()
356
356
]
357
357
])->build ();
358
358
$ host = $ client ->transport ->getConnection ();
359
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
359
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
360
360
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
361
361
362
362
@@ -366,7 +366,7 @@ public function testExtendedHosts()
366
366
]
367
367
])->build ();
368
368
$ host = $ client ->transport ->getConnection ();
369
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
369
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
370
370
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
371
371
372
372
@@ -378,7 +378,7 @@ public function testExtendedHosts()
378
378
]
379
379
])->build ();
380
380
$ host = $ client ->transport ->getConnection ();
381
- $ this ->assertSame ("foo.com:9500 " , $ host ->getHost ());
381
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
382
382
$ this ->assertSame ("https " , $ host ->getTransportSchema ());
383
383
384
384
@@ -401,7 +401,7 @@ public function testExtendedHosts()
401
401
]
402
402
])->build ();
403
403
$ host = $ client ->transport ->getConnection ();
404
- $ this ->assertSame ("the_foo.com:9200 " , $ host ->getHost ());
404
+ $ this ->assertSame ("the_foo.com " , $ host ->getHost ());
405
405
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
406
406
407
407
@@ -414,7 +414,7 @@ public function testExtendedHosts()
414
414
]
415
415
])->build ();
416
416
$ host = $ client ->transport ->getConnection ();
417
- $ this ->assertSame ("foo.com:9200 " , $ host ->getHost ());
417
+ $ this ->assertSame ("foo.com " , $ host ->getHost ());
418
418
$ this ->assertSame ("http " , $ host ->getTransportSchema ());
419
419
$ this ->assertSame ("user:abc#$@?%!abc " , $ host ->getUserPass ());
420
420
}
0 commit comments