Skip to content

[APM] Add API test for agent configuration#46003

Closed
sorenlouv wants to merge 1 commit intoelastic:7.4from
sorenlouv:apm-add-api-test
Closed

[APM] Add API test for agent configuration#46003
sorenlouv wants to merge 1 commit intoelastic:7.4from
sorenlouv:apm-add-api-test

Conversation

@sorenlouv
Copy link
Member

Adding a test for agent configuration to avoid regressions like #45903

I also cleaned the test up a little.

@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes v7.4.0 labels Sep 18, 2019
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes the output much cleaner. Instead of outputting Expected {...hugeObject} to have property statusCode 404 it will now output Expected 500 to be 404

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added support for specifying method and body

@sorenlouv sorenlouv added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Sep 18, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Destructuring instead of positional arguments (the third argument is optional)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed some excessive line spacing

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@dgieselaar dgieselaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think we can also remove expectForbidden/expectResponse because it's all 404/200 now, but maybe out of scope for this PR.

@sorenlouv
Copy link
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💔 Build Failed

@sorenlouv
Copy link
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@sorenlouv
Copy link
Member Author

Closed in favor of #46316

@sorenlouv sorenlouv closed this Sep 23, 2019
@sorenlouv sorenlouv deleted the apm-add-api-test branch September 23, 2019 08:34
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.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants