From 4e9fe17852628fc2f839801f39fada24f34896ff Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Fri, 6 Oct 2017 13:36:45 +0200 Subject: 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 --- .../fd/hc2vpp/lisp/translate/write/MapRequestModeCustomizerTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/lisp2vpp/src/test') 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; -- cgit 1.2.3-korg