Skip to content

[APM] Add API test for service maps#70185

Merged
sorenlouv merged 6 commits intoelastic:masterfrom
sorenlouv:service-maps-api-test
Jun 30, 2020
Merged

[APM] Add API test for service maps#70185
sorenlouv merged 6 commits intoelastic:masterfrom
sorenlouv:service-maps-api-test

Conversation

@sorenlouv
Copy link
Copy Markdown
Contributor

@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 June 29, 2020 12:43
@botelastic botelastic bot added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Jun 29, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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.

@sorenlouv
Copy link
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
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 - DEPRECATED Use Team:obs-ux-infra_services. v7.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants