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

Improve integration testing cloud client DeploymentIsReady. #4798

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

blakerouse
Copy link
Contributor

What does this PR do?

Improves the logic in DeploymentIsReady to not return false and the error when it gets an error back from the API. Instead it will keep retrying until the timeout.

Why is it important?

Improve reliability of integration tests, when the cloud API returns an HTTP error or disconnects without a response (just the nature of HTTP protocol).

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas

Related issues

@blakerouse blakerouse added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog backport-v8.14.0 Automated backport with mergify labels May 22, 2024
@blakerouse blakerouse self-assigned this May 22, 2024
@blakerouse blakerouse requested a review from a team as a code owner May 22, 2024 15:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@rdner rdner merged commit a28bc90 into elastic:main Jun 4, 2024
14 checks passed
mergify bot pushed a commit that referenced this pull request Jun 4, 2024
Improves the logic in DeploymentIsReady to not return false and the error when it gets an error back from the API. Instead it will keep retrying until the timeout.

(cherry picked from commit a28bc90)
jlind23 pushed a commit that referenced this pull request Jun 5, 2024
…4841)

Improves the logic in DeploymentIsReady to not return false and the error when it gets an error back from the API. Instead it will keep retrying until the timeout.

(cherry picked from commit a28bc90)

Co-authored-by: Blake Rouse <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.14.0 Automated backport with mergify skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants