[SERVER-15150] Use a more reliable mechanism for getIpAddress Created: 04/Sep/14 Updated: 26/May/18 Resolved: 26/May/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jonathan Abrahams | Assignee: | DO NOT USE - Backlog - Test Infrastructure Group (TIG) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | 28qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
The localhost exception test requires a non-localhost IP address. It was implemented in jstests/libs/host_ipaddr.js using ipconfig & ifconfig (with grep). A more reliable mechanism would use a system call like getifaddrs, which returns a linked list of all the network interfaces with details. |