[nodesToHost] align with es.py host parsing behavior
This commit is contained in:
2
test/fixtures/short_node_list.2.0.json
vendored
2
test/fixtures/short_node_list.2.0.json
vendored
@ -11,6 +11,6 @@
|
||||
"transport_address": "10.10.10.101:9300",
|
||||
"hostname": "Johns-MacBook-Pro.local",
|
||||
"version": "0.90.5",
|
||||
"http_address": "10.10.10.101:9205"
|
||||
"http_address": "published.hostname/10.10.10.101:9205"
|
||||
}
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ describe('Nodes to host callback', function () {
|
||||
}
|
||||
});
|
||||
expect(hosts[1]).to.eql({
|
||||
host: '10.10.10.101',
|
||||
host: 'published.hostname',
|
||||
port: 9205,
|
||||
_meta: {
|
||||
id: 'id2',
|
||||
@ -79,7 +79,7 @@ describe('Nodes to host callback', function () {
|
||||
http_address: 'not actually an http host'
|
||||
}
|
||||
});
|
||||
}).to.throwException(/expected.*property.*match either/);
|
||||
}).to.throwException(/^Malformed http_address/);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user