Skip to content

Move EC2 Discovery Tests to Mock Rest API#50605

Merged
original-brownbear merged 2 commits intoelastic:masterfrom
original-brownbear:ec2-discovery-follow-up
Feb 12, 2020
Merged

Move EC2 Discovery Tests to Mock Rest API#50605
original-brownbear merged 2 commits intoelastic:masterfrom
original-brownbear:ec2-discovery-follow-up

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

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
#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
Copy Markdown
Collaborator

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

@DaveCTurner
Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor 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
Copy Markdown
Member

@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
Copy Markdown
Contributor 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 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.

5 participants