updating test cases to use elastic.co
This commit is contained in:
@@ -13,8 +13,8 @@ class TestNormalizeHosts(TestCase):
|
||||
|
||||
def test_strings_are_parsed_for_port_and_user(self):
|
||||
self.assertEquals(
|
||||
[{"host": "elastic.co", "port": 42}, {"host": "elasticsearch.com", "http_auth": "user:secret"}],
|
||||
_normalize_hosts(["elastic.co:42", "user:secret@elasticsearch.com"])
|
||||
[{"host": "elastic.co", "port": 42}, {"host": "elastic.co", "http_auth": "user:secret"}],
|
||||
_normalize_hosts(["elastic.co:42", "user:secret@elastic.co"])
|
||||
)
|
||||
|
||||
def test_strings_are_parsed_for_scheme(self):
|
||||
@@ -23,11 +23,11 @@ class TestNormalizeHosts(TestCase):
|
||||
{
|
||||
"host": "elastic.co",
|
||||
"port": 42,
|
||||
"use_ssl": True,
|
||||
"use_ssl": True,
|
||||
'scheme': 'http'
|
||||
},
|
||||
{
|
||||
"host": "elasticsearch.com",
|
||||
"host": "elastic.co",
|
||||
"http_auth": "user:secret",
|
||||
"use_ssl": True,
|
||||
"port": 443,
|
||||
@@ -35,7 +35,7 @@ class TestNormalizeHosts(TestCase):
|
||||
'url_prefix': '/prefix'
|
||||
}
|
||||
],
|
||||
_normalize_hosts(["https://elastic.co:42", "https://user:secret@elasticsearch.com/prefix"])
|
||||
_normalize_hosts(["https://elastic.co:42", "https://user:secret@elastic.co/prefix"])
|
||||
)
|
||||
|
||||
def test_dicts_are_left_unchanged(self):
|
||||
|
||||
Reference in New Issue
Block a user