Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320612

Summary: [Discovery] Unit tests fail due to broken detection of external ip address
Product: [RT] ECF Reporter: Markus Kuppe <bugs.eclipse.org>
Component: ecf.testAssignee: Markus Kuppe <bugs.eclipse.org>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.4.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 320799    
Bug Blocks: 318086    
Attachments:
Description Flags
mylyn/context/zip none

Description Markus Kuppe CLA 2010-07-22 06:46:45 EDT
IServiceInfos are compared for equality based on a couple of properties including the IP address. If the expected IServiceInfo e.g. has "127.0.0.1" set but the discovery provider binds to the external ip address of e.g. "192.168.1.1" the checks fail.
Thus the tests have to take the behavior of the provider into account.
Comment 1 Markus Kuppe CLA 2010-07-24 08:28:21 EDT
For discovery tests to successfully pass it is important that the local hostname resolution works correctly. Thus /etc/hosts on ecf2 has been changed to include:

127.0.0.1       localhost
127.0.0.1	ecf2
140.211.166.119 ecf2.osuosl.org ecf2
Comment 2 Markus Kuppe CLA 2010-07-24 08:30:44 EDT
jslp and jmdns tests run successfully now. composite tests are still buggy though. Attaching context of work so far.
Comment 3 Markus Kuppe CLA 2010-07-24 08:30:46 EDT
Created attachment 175139 [details]
mylyn/context/zip
Comment 4 Markus Kuppe CLA 2010-07-31 07:40:47 EDT
Fixed composite tests in HEAD too