-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test startup hooks #1167
Test startup hooks #1167
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪Steps errorsExpand to view the steps failures
|
43d0195
to
c022ab0
Compare
Codecov Report
@@ Coverage Diff @@
## master #1167 +/- ##
==========================================
+ Coverage 79.44% 79.84% +0.39%
==========================================
Files 160 160
Lines 6543 6543
==========================================
+ Hits 5198 5224 +26
+ Misses 1345 1319 -26
Continue to review full report at Codecov.
|
Linux stages test startup hooks as part of tests
The Mock APM server may be run with an agent version built from a different commit than the current one, so loosen the agent version assertion to just check for major.minor.patch
Avoid race condition where list is accessed before item has been added
Otherwise Race condition can happen where event is raised before new immutable list is assigned to APM server received data.
bd2a848
to
90de93f
Compare
This PR tests that the APM agent startup hook feature is able to configure and setup the agent for ASP.NET Core 3.0, 3.1 and ASP.NET 5, and send APM data to APM server.
A sample ASP.NET (Core) application is included as a target application for startup hooks. Tests start the application, along with a test APM server, make a request to the application, and assert that APM data is captured by APM server.
Startup hook tests run as part of the Tests stage on Linux. A separate Startup Hooks stage is introduced on Windows for testing.
Closes #1073