From 6ee4c564b89bd59c7bcb7da38a7263ea53947061 Mon Sep 17 00:00:00 2001 From: pablo gonzalez granados Date: Fri, 30 Apr 2021 10:43:50 +0200 Subject: [PATCH] Add debug native symbols generation test --- .../src/main/resources/application.properties | 5 ++++- .../vertx/webclient/ChuckNorrisResourceIT.java | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/300-quarkus-vertx-webClient/src/main/resources/application.properties b/300-quarkus-vertx-webClient/src/main/resources/application.properties index cd9938f9..4858f604 100644 --- a/300-quarkus-vertx-webClient/src/main/resources/application.properties +++ b/300-quarkus-vertx-webClient/src/main/resources/application.properties @@ -5,4 +5,7 @@ vertx.webclient.timeout-sec=2 vertx.webclient.retries=3 # Jaeger -quarkus.opentelemetry.tracer.exporter.jaeger.endpoint=http://localhost:14250/api/traces \ No newline at end of file +quarkus.opentelemetry.tracer.exporter.jaeger.endpoint=http://localhost:14250/api/traces + +# debug symbols enabled +quarkus.native.debug.enabled=true \ No newline at end of file diff --git a/300-quarkus-vertx-webClient/src/test/java/io/quarkus/qe/vertx/webclient/ChuckNorrisResourceIT.java b/300-quarkus-vertx-webClient/src/test/java/io/quarkus/qe/vertx/webclient/ChuckNorrisResourceIT.java index b38e7e10..bf99e1a2 100644 --- a/300-quarkus-vertx-webClient/src/test/java/io/quarkus/qe/vertx/webclient/ChuckNorrisResourceIT.java +++ b/300-quarkus-vertx-webClient/src/test/java/io/quarkus/qe/vertx/webclient/ChuckNorrisResourceIT.java @@ -1,7 +1,23 @@ package io.quarkus.qe.vertx.webclient; +import static org.junit.Assert.assertTrue; + +import java.io.File; +import java.net.MalformedURLException; +import java.nio.file.Paths; + +import org.junit.jupiter.api.Test; + import io.quarkus.test.junit.NativeImageTest; @NativeImageTest public class ChuckNorrisResourceIT extends ChuckNorrisResourceTest { + + private static final String DEBUG_SYMBOLS_FILE_NAME = "300-quarkus-vertx-webclient-1.0.0-SNAPSHOT-runner.debug"; + + @Test + public void checkNativeDebugSymbols() throws MalformedURLException { + File debugFile = Paths.get("target", DEBUG_SYMBOLS_FILE_NAME).toFile(); + assertTrue("Missing debug symbols file: " + DEBUG_SYMBOLS_FILE_NAME, debugFile.exists()); + } }