-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Ensure assertion error is throw for tests in case of null license response #60573
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
Ensure assertion error is throw for tests in case of null license response #60573
Conversation
|
Pinging @elastic/es-security (:Security/License) |
|
@tvernum I just realised that #60498 will not work properly without converting ResponseException to AssertionError. I had it in one place but somehow missed for the other two. This PR addresses it. Sorry for the inconvenience. Sicne the backports have not been merged for #60498 yet. I am going to combine the backports into a single one for both this PR and #60498. |
…lastic#60573) This is a follow up for elastic#60498 to ensure an AssertionError is throw when the license is ready. The client throws a ResponseException for 404 status code. It needs to be converted to an AssertionError to correctly work with assertBusy.
…lastic#60573) This is a follow up for elastic#60498 to ensure an AssertionError is throw when the license is ready. The client throws a ResponseException for 404 status code. It needs to be converted to an AssertionError to correctly work with assertBusy.
…lastic#60573) This is a follow up for elastic#60498 to ensure an AssertionError is throw when the license is ready. The client throws a ResponseException for 404 status code. It needs to be converted to an AssertionError to correctly work with assertBusy.
) When a new cluster starts, the HTTP layer becomes ready to accept incoming requests while the basic license is still being populated in the background. When a get license request comes in before the license is ready, it can get 404 error. This PR fixes it by either wrap the license check in assertBusy or ensure the license is ready before perform the check. This is a backport for both #60498 and #60573
) When a new cluster starts, the HTTP layer becomes ready to accept incoming requests while the basic license is still being populated in the background. When a get license request comes in before the license is ready, it can get 404 error. This PR fixes it by either wrap the license check in assertBusy or ensure the license is ready before perform the check. This is a backport for both #60498 and #60573
) When a new cluster starts, the HTTP layer becomes ready to accept incoming requests while the basic license is still being populated in the background. When a get license request comes in before the license is ready, it can get 404 error. This PR fixes it by either wrap the license check in assertBusy or ensure the license is ready before perform the check. This is a backport for both #60498 and #60573
This is a follow up for #60498 to ensure an AssertionError is throw when the license is ready.
The client throws a ResponseException for 404 status code. It needs to be converted to an AssertionError to correctly work with assertBusy.