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

Move EC2 Discovery Tests to Mock Rest API #50605

Merged

Conversation

original-brownbear
Copy link
Member

Improving these tests like we did for S3 away from mocks:

Move EC2 discovery tests to using the mock REST API introduced in
#50550 instead of mocking
the AWS SDK classes manually.
Move the trivial remaining AWS SDK mocks to the single test suit that
was using them.

Move EC2 discovery tests to using the mock REST API introduced in
elastic#50550 instead of mocking
the AWS SDK classes manually.
Move the trivial remaining AWS SDK mocks to the single test suit that
was using them.
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure v8.0.0 v7.6.0 labels Jan 3, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Discovery-Plugins)

@DaveCTurner
Copy link
Contributor

Thanks @original-brownbear, sorry for missing this when it was opened. Looks good; would you merge master just in case something's changed in the past month-and-a-bit?

@original-brownbear
Copy link
Member Author

original-brownbear commented Feb 12, 2020

@DaveCTurner thanks for taking a look :) Merged in master now and tests are still passing fine :) (just ran EC2 tests locally)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear
Copy link
Member Author

Thanks David!

@original-brownbear original-brownbear merged commit 96359c3 into elastic:master Feb 12, 2020
@original-brownbear original-brownbear deleted the ec2-discovery-follow-up branch February 12, 2020 16:07
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Feb 12, 2020
Move EC2 discovery tests to using the mock REST API introduced in
elastic#50550 instead of mocking
the AWS SDK classes manually.
Move the trivial remaining AWS SDK mocks to the single test suit that
was using them.
original-brownbear added a commit that referenced this pull request Feb 12, 2020
Move EC2 discovery tests to using the mock REST API introduced in
#50550 instead of mocking
the AWS SDK classes manually.
Move the trivial remaining AWS SDK mocks to the single test suit that
was using them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure >test Issues or PRs that are addressing/adding tests v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants