From 1cc6de9c1925d2b9de920175b966c4711c0aa485 Mon Sep 17 00:00:00 2001 From: Marty T <120425148+tippmar-nr@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:29:18 -0500 Subject: [PATCH] test(dotnet): Add newrelic.config for test app (#40) --- tests/dotnet/Dockerfile | 2 ++ tests/dotnet/newrelic.config | 6 ++++++ tests/dotnet/test-specs.yml | 1 + 3 files changed, 9 insertions(+) create mode 100644 tests/dotnet/newrelic.config diff --git a/tests/dotnet/Dockerfile b/tests/dotnet/Dockerfile index 68f6d1c..9dacbec 100644 --- a/tests/dotnet/Dockerfile +++ b/tests/dotnet/Dockerfile @@ -12,5 +12,7 @@ FROM base AS final WORKDIR /app COPY --from=build /app/publish . +COPY newrelic.config . + # test by browsing to http://:/WeatherForecast ENTRYPOINT ["dotnet", "WeatherForecast.dll"] diff --git a/tests/dotnet/newrelic.config b/tests/dotnet/newrelic.config new file mode 100644 index 0000000..834f02b --- /dev/null +++ b/tests/dotnet/newrelic.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/tests/dotnet/test-specs.yml b/tests/dotnet/test-specs.yml index 781027b..b87f46f 100644 --- a/tests/dotnet/test-specs.yml +++ b/tests/dotnet/test-specs.yml @@ -6,6 +6,7 @@ scenarios: - helm install test-dotnet ./chart/ --set=scenarioTag="${SCENARIO_TAG}" -n default - sleep 5 - kubectl wait --for=condition=Ready -n default --all pods + - sleep 15 # give the agent time to connect - curl --fail-with-body $(minikube service test-app-dotnet-service --url -n default)/WeatherForecast tests: nrqls: