iri
iri copied to clipboard
Regression Test for get Neighbors API call
Description
Test get Neighbors api in different conditions
Motivation
To not repeat #1536 bug
Issues / Scenarios
Pasted from #1604
- if the neighbor is connected and there's no mapping to a domain, the IP address will be set in the
domain
field - if the neighbor is connected and there's a mapping to a domain, the domain will be set in the
domain
field - if the neighbor is not connected, the neighbor was added using an URI with a domain (tcp://example.com:15600) and during the call to
getNeighbors()
the domain can't be resolved to an IP address, thedomain
field will contain the domain name and theaddress
field will be empty - if the neighbor is not connected, the neighbor was added using an URI with an IP address (tcp://1.1.1.1:15600), the
domain
field will contain the IP address and theaddress
field will contain the IP address + port combination - if the neighbor is not connected, the neighbor was added using an URI with a domain (tcp://example.com:15600) and during the call to
getNeighbors()
the domain could be resolved to an IP address, thedomain
field will contain the domain name and theaddress
field will contain the IP address + port combination.
How to test for this
Add in machine 1
TBD
Too hard to do a regression test for this, we need to make sure a unit test is in place