Skip to content

Commit

Permalink
Danyil/marqo url resolver use endpoint field (#122)
Browse files Browse the repository at this point in the history
* replace load_balancer_dns_name with endpoint

* replace load_balancer_dns_name with endpoint in missed test
  • Loading branch information
danyilq authored Jul 14, 2023
1 parent 81d702f commit 9f1658d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/v0_tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def test_get_url_when_cluster_is_marqo_and_no_index_name_specified(self):
@mock.patch("requests.get")
def test_get_url_when_cluster_is_marqo_and_index_name_specified(self, mock_get):
mock_get.return_value.json.return_value = {"indices": [
{"index_name": "index1", "load_balancer_dns_name": "example.com", "index_status": "READY"},
{"index_name": "index2", "load_balancer_dns_name": "example2.com", "index_status": "READY"}
{"index_name": "index1", "endpoint": "example.com", "index_status": "READY"},
{"index_name": "index2", "endpoint": "example2.com", "index_status": "READY"}
]}
c = config.Config(url="https://api.marqo.ai")
print(c.marqo_url_resolver._urls_mapping)
Expand Down

0 comments on commit 9f1658d

Please sign in to comment.