[nodesToHost] align with es.py host parsing behavior

This commit is contained in:
spalger
2016-01-10 15:32:18 -07:00
parent 65fab7550b
commit 9ed1afbcd6
3 changed files with 44 additions and 21 deletions

View File

@ -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/);
});
});