summaryrefslogtreecommitdiffstats
path: root/lisp/lisp2vpp/src/test/java/io/fd
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-10-06 13:36:45 +0200
committerJan Srnicek <jsrnicek@cisco.com>2017-10-10 07:39:47 +0000
commit50d5c2e2649ff07e2ff803d29fd0f9d62d851d8d (patch)
tree8c5d2df232c35f958e661f25afd109bdc7923fa0 /lisp/lisp2vpp/src/test/java/io/fd
parented51dab992b6a03d63ae2096f4736a6ddf449ecf (diff)
HC2VPP-243 - don't throw on remove of map-request-mode
Allows removing all lisp-feature-data. Also fixes ordering for itr remote locator set. Change-Id: Ib181c724dfa76f5ac380eec5e50f5d76f6b01389 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp/lisp2vpp/src/test/java/io/fd')
-rw-r--r--lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/write/MapRequestModeCustomizerTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/write/MapRequestModeCustomizerTest.java b/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/write/MapRequestModeCustomizerTest.java
index b2050d280..674a3a640 100644
--- a/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/write/MapRequestModeCustomizerTest.java
+++ b/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/write/MapRequestModeCustomizerTest.java
@@ -74,7 +74,8 @@ public class MapRequestModeCustomizerTest extends LispWriterCustomizerTest {
@Test
public void deleteCurrentAttributes() throws Exception {
- verify(api, times(0)).lispMapRequestMode(any());
+ customizer.deleteCurrentAttributes(ID, sourceDestinationMode, writeContext);
+ verifyModeRequest(DestinationOnly);// always should be destination only - its default
}
@Test
@@ -93,7 +94,7 @@ public class MapRequestModeCustomizerTest extends LispWriterCustomizerTest {
public void testUpdateLispDisabled() throws WriteFailedException {
mockLispDisabledAfter();
try {
- customizer.updateCurrentAttributes(EMPTY_ID, EMPTY_DATA,EMPTY_DATA, writeContext);
+ customizer.updateCurrentAttributes(EMPTY_ID, EMPTY_DATA, EMPTY_DATA, writeContext);
} catch (IllegalArgumentException e) {
verifyZeroInteractions(api);
return;