Skip to content

Commit

Permalink
test(dotnet): Add newrelic.config for test app (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr authored Jun 13, 2024
1 parent 5dcadbb commit 1cc6de9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .

COPY newrelic.config .

# test by browsing to http://<hostname>:<port>/WeatherForecast
ENTRYPOINT ["dotnet", "WeatherForecast.dll"]
6 changes: 6 additions & 0 deletions tests/dotnet/newrelic.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- Copyright (c) 2008-2020 New Relic, Inc. All rights reserved. -->
<!-- For more information see: https://docs.newrelic.com/docs/agents/net-agent/configuration/net-agent-configuration/ -->
<configuration xmlns="urn:newrelic-config" agentEnabled="true">
<service syncStartup="true" sendDataOnExit="true" sendDataOnExitThreshold="0" />
</configuration>
1 change: 1 addition & 0 deletions tests/dotnet/test-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1cc6de9

Please sign in to comment.