iri icon indicating copy to clipboard operation
iri copied to clipboard

Regression Test for get Neighbors API call

Open GalRogozinski opened this issue 5 years ago • 1 comments

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, the domain field will contain the domain name and the address 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 the address 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, the domain field will contain the domain name and the address field will contain the IP address + port combination.

How to test for this

Add in machine 1

TBD

GalRogozinski avatar Sep 11 '19 12:09 GalRogozinski

Too hard to do a regression test for this, we need to make sure a unit test is in place

GalRogozinski avatar Jan 30 '20 15:01 GalRogozinski