Adapt hc2vpp to jvpp error logging improvements 94/7894/2
authorMarek Gradzki <[email protected]>
Thu, 3 Aug 2017 08:13:45 +0000 (10:13 +0200)
committerJan Srnicek <[email protected]>
Mon, 7 Aug 2017 07:00:35 +0000 (07:00 +0000)
Requires https://gerrit.fd.io/r/#/c/7681/

Change-Id: Icd1d5dfb60f5eb79f9f4ab46f38d56f2b01672da
Signed-off-by: Marek Gradzki <[email protected]>
lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizerTest.java
lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/write/ItrRemoteLocatorSetCustomizerTest.java
vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/util/FutureProducer.java

index dad3323..8ee9332 100644 (file)
@@ -146,7 +146,9 @@ public class ItrRemoteLocatorSetCustomizerTest
                     @Override
                     public OneGetMapRequestItrRlocsReply get(final long l, final TimeUnit timeUnit)
                             throws InterruptedException, ExecutionException, TimeoutException {
-                        throw new ExecutionException(new VppCallbackException("oneGetMapRequestItrRlocs", 1, -2));
+                        throw new ExecutionException(
+                                new VppCallbackException("oneGetMapRequestItrRlocs", "oneGetMapRequestItrRlocs failed",
+                                        1, -2));
                     }
                 });
     }
index 7fc691b..7d53b4a 100644 (file)
@@ -129,7 +129,8 @@ public class ItrRemoteLocatorSetCustomizerTest extends LispWriterCustomizerTest
                     @Override
                     public OneAddDelMapRequestItrRlocsReply get(final long l, final TimeUnit timeUnit)
                             throws InterruptedException, ExecutionException, TimeoutException {
-                        throw new ExecutionException(new VppCallbackException("oneAddDelMapRequestItrRlocs", 1, -2));
+                        throw new ExecutionException(new VppCallbackException("oneAddDelMapRequestItrRlocs",
+                                "oneAddDelMapRequestItrRlocs failed", 1, -2));
                     }
                 });
     }
index 2bedb95..bdce21f 100644 (file)
@@ -58,6 +58,6 @@ public interface FutureProducer {
      * @param <T> the result type of returned future
      */
     default <T> CompletableFuture<T> failedFuture() {
-        return failedFuture(new VppCallbackException("test-call", 1 /* ctxId */, -1 /* retval */));
+        return failedFuture(new VppCallbackException("test-call", "test error msg", 1 /* ctxId */, -1 /* retval */));
     }
 }