Fix NB integration tests 10/3810/1
authorAlberto Rodriguez-Natal <arnatal@ac.upc.edu>
Wed, 18 Dec 2013 07:05:46 +0000 (08:05 +0100)
committerAlberto Rodriguez-Natal <arnatal@ac.upc.edu>
Wed, 18 Dec 2013 07:05:46 +0000 (08:05 +0100)
Signed-off-by: Alberto Rodriguez-Natal <arnatal@ac.upc.edu>
mappingservice/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java

index 5b39392c2e31b420805fe77b2c1d5326042e999b..c88e24c9a90e5479a9c9e4161dfd1676b5ae96de 100644 (file)
@@ -721,6 +721,12 @@ public class MappingServiceIntegrationTest {
         LocatorRecordBuilder record = new LocatorRecordBuilder();
         record.setLispAddressContainer(LispAFIConvertor.toContainer(rloc));
         record.setRouted(true);
+        record.setRlocProbed(false);
+        record.setLocalLocator(false);
+        record.setPriority((short) 1);
+        record.setWeight((short) 50);
+        record.setMulticastPriority((short) 1);
+        record.setMulticastWeight((short) 1);
         etlr.setLocatorRecord(new ArrayList<LocatorRecord>());
         etlr.getLocatorRecord().add(record.build());
         mapRegister.setEidToLocatorRecord(new ArrayList<EidToLocatorRecord>());
@@ -766,6 +772,12 @@ public class MappingServiceIntegrationTest {
         LocatorRecordBuilder record = new LocatorRecordBuilder();
         record.setLispAddressContainer(LispAFIConvertor.toContainer(rloc));
         record.setRouted(true);
+        record.setRlocProbed(false);
+        record.setLocalLocator(false);
+        record.setPriority((short) 1);
+        record.setWeight((short) 50);
+        record.setMulticastPriority((short) 1);
+        record.setMulticastWeight((short) 1);
         etlr.setLocatorRecord(new ArrayList<LocatorRecord>());
         etlr.getLocatorRecord().add(record.build());
         mapRegister.setEidToLocatorRecord(new ArrayList<EidToLocatorRecord>());
@@ -787,21 +799,21 @@ public class MappingServiceIntegrationTest {
     }
 
     private URL createGetKeyIPv4URL(LispIpv4Address address, int mask) throws MalformedURLException {
-        String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/%d/%s/%d", "key", address.getAfi().shortValue(),
+        String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/0/%d/%s/%d", "key", address.getAfi().shortValue(),
                 address.getIpv4Address().getValue(), mask);
         URL url = new URL(restUrl);
         return url;
     }
 
     private URL createGetKeySourceDestURL(int afi, String srcAddress, int srcMask, String dstAddress, int dstMask) throws MalformedURLException {
-        String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/%d/%s/%d/%s/%d", "key", afi, srcAddress, srcMask,
+        String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/0/%d/%s/%d/%s/%d", "key", afi, srcAddress, srcMask,
                 dstAddress, dstMask);
         URL url = new URL(restUrl);
         return url;
     }
 
     private URL createGetMappingSourceDestURL(int afi, String srcAddress, int srcMask, String dstAddress, int dstMask) throws MalformedURLException {
-        String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/%d/%s/%d/%s/%d", "mapping", afi, srcAddress, srcMask,
+        String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/0/%d/%s/%d/%s/%d", "mapping", afi, srcAddress, srcMask,
                 dstAddress, dstMask);
         URL url = new URL(restUrl);
         return url;