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

[CCR] Remove axios dependency in tests #128148

Merged
merged 4 commits into from
Mar 22, 2022

Conversation

sabarasaba
Copy link
Member

@sabarasaba sabarasaba commented Mar 21, 2022

Partially addresses #127966

Summary

In order to upgrade the axios dependency in kibana(see: #111655) we need to switch the tests from this app to use HttpSetup mock instead of axios + sinon server mock, which is technically incorrect but axios just happened to have methods signature similar to HttpSetup.

@sabarasaba sabarasaba self-assigned this Mar 21, 2022
@sabarasaba sabarasaba added Feature:CCR and Remote Clusters Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes v8.2.0 labels Mar 21, 2022
@sabarasaba sabarasaba marked this pull request as ready for review March 21, 2022 12:59
@sabarasaba sabarasaba requested a review from a team as a code owner March 21, 2022 12:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @sabarasaba

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing this @sabarasaba! Did not run tests locally.

@sabarasaba sabarasaba merged commit 7b545b0 into elastic:main Mar 22, 2022
sabarasaba added a commit to sabarasaba/kibana that referenced this pull request Mar 22, 2022
* Start refactoring test

* Finish refactoring rest of tests

(cherry picked from commit 7b545b0)
sabarasaba added a commit that referenced this pull request Mar 22, 2022
* Start refactoring test

* Finish refactoring rest of tests

(cherry picked from commit 7b545b0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:CCR and Remote Clusters release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.17.2 v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants