-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Add API test for service maps #70185
Conversation
Pinging @elastic/apm-ui (Team:apm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a few question/comments but overall this is great.
Do you think we should extract the testing docs to a separate markdown file? It seems the readme is getting long and dominated by them and it probably will only get worse.
Agreed. I'll remove my readme changes and leave that up to @dgieselaar in #70050 |
import { FtrProviderContext } from '../../common/ftr_provider_context'; | ||
|
||
export default function serviceMapsApiTests({ getService }: FtrProviderContext) { | ||
const supertest = getService('supertest'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change this to
const supertest = getService('supertest'); | |
const supertestRead = getService('supertestAsApmReadUser'); |
when #70050 is merged
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
* master: [ML] Modifies page title to Create job (elastic#70191) [APM] Add API test for service maps (elastic#70185) [DOCS] Adds glossary to documentation (elastic#69721) [Usage Collection] Report nodes feature usage (elastic#70108) chore: improve support for mjs file extension (elastic#70186) [ML] Anomaly Detection: ensure 'Category examples' tab in the expanded table row can be seen (elastic#70241) [Maps] Add maps telemetry saved object in with mappings disabled (elastic#69995) Fix typo in bootstrap command (elastic#69976) [code coverage] ingest correct coveredFilePath for mocha (elastic#70215) [Dashboard] Add visualization by value to dashboard (elastic#69898) updates wording in Cases connectors (elastic#70298) [ML] Fix license subscription race condition. (elastic#70074) [Logs UI] [Alerting] "Group by" functionality (elastic#68250)
* [APM] Add API test for service maps * Re-add custom links test * Improved test names * Disable eslint rule * Undo readme changes * Fix ts errors
Mission: every APM endpoint should have at least a minimal API test. Most API endpoints are only worth testing if they return APM data. This PR adds an APM data sample and adds a simple test for service maps.
This should make it much easier to create similar tests for other endpoints going forward