Remove some duplicate functionality, add some basic tests.

This commit is contained in:
Tom Wilkie
2015-09-23 09:46:11 +00:00
parent d8a3372b2b
commit f9815afad3
6 changed files with 59 additions and 37 deletions
+4 -4
View File
@@ -253,19 +253,19 @@ var (
UnknownAddress1NodeID: report.MakeNode().WithMetadata(map[string]string{
endpoint.Addr: UnknownClient1IP,
}).WithAdjacency(report.MakeIDList(ServerAddressNodeID)),
}).WithAdjacent(ServerAddressNodeID),
UnknownAddress2NodeID: report.MakeNode().WithMetadata(map[string]string{
endpoint.Addr: UnknownClient2IP,
}).WithAdjacency(report.MakeIDList(ServerAddressNodeID)),
}).WithAdjacent(ServerAddressNodeID),
UnknownAddress3NodeID: report.MakeNode().WithMetadata(map[string]string{
endpoint.Addr: UnknownClient3IP,
}).WithAdjacency(report.MakeIDList(ServerAddressNodeID)),
}).WithAdjacent(ServerAddressNodeID),
RandomAddressNodeID: report.MakeNode().WithMetadata(map[string]string{
endpoint.Addr: RandomClientIP,
}).WithAdjacency(report.MakeIDList(ServerAddressNodeID)),
}).WithAdjacent(ServerAddressNodeID),
},
},
Host: report.Topology{