Skip to content
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

Merged
merged 6 commits into from
Jun 30, 2020

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Jun 29, 2020

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

@sorenlouv sorenlouv requested a review from a team as a code owner June 29, 2020 12:43
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jun 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

Copy link
Contributor

@smith smith left a 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.

x-pack/plugins/apm/readme.md Outdated Show resolved Hide resolved
x-pack/plugins/apm/readme.md Outdated Show resolved Hide resolved
x-pack/plugins/apm/readme.md Outdated Show resolved Hide resolved
@sorenlouv
Copy link
Member Author

sorenlouv commented Jun 29, 2020

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

@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes v7.9.0 labels Jun 29, 2020
import { FtrProviderContext } from '../../common/ftr_provider_context';

export default function serviceMapsApiTests({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
Copy link
Member Author

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

Suggested change
const supertest = getService('supertest');
const supertestRead = getService('supertestAsApmReadUser');

when #70050 is merged

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@sorenlouv sorenlouv merged commit 606eb6b into elastic:master Jun 30, 2020
@sorenlouv sorenlouv deleted the service-maps-api-test branch June 30, 2020 14:35
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 1, 2020
* 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)
Bamieh pushed a commit to Bamieh/kibana that referenced this pull request Jul 1, 2020
* [APM] Add API test for service maps

* Re-add custom links test

* Improved test names

* Disable eslint rule

* Undo readme changes

* Fix ts errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants