-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add flags to identify and stub Mesos requests #2593
Conversation
This repo has @mesosphere-mergebot integration. You can interact with the following commands.
|
8a7958b
to
2b829dc
Compare
Alfred test this please |
@orlandohohmeier could you please rebase this one? |
Add flags (query parameters) to identify and stub Mesos Operator API requests to fix the integration tests that were otherwise failing or flaky due to parsing errors in the `MesosStateStore`. The store failed to parse the `GET_MASTER` response as we could only register one stub for both the `GET_MASTER` and `SUBSCRIBE` requests resulting in JSON parse errors due to the different response formats (RecoredIO<JSON>, JSON). The flags are necessary as Cypress can only stub requests based on the URL and request method and doesn't provide the means to dynamically stub requests based on the payload as documented in cypress-io/cypress#521. We will remove the flags once the Cypress team rewrote the network handling and added support for dynamic stubs as documented in cypress-io/cypress#687 or we've addressed https://jira.mesosphere.com/browse/DCOS_OSS-2021.
Remove the test delay used to fix the "Cannot Connect With The Server" problem as the underlying issue is fixed by the introduction of separate stubs for the Mesos `SUBSCRIBE` and `GET_MASTER` request.
2b829dc
to
ebb9008
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
36 consecutive passes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do what you gotta do 😩
✅ This PR includes changes that are going to be introduced with #2592. For a list of changes please see: orlandohohmeier/fix/add-missing-framework-mocks...orlandohohmeier/fix/adjust-mesos-request-stubs
Add flags (query parameters) to identify and stub Mesos Operator API requests to fix the integration tests that were otherwise failing or flaky due to parsing errors in the
MesosStateStore
. The store failed to parse theGET_MASTER
response as we could only register one stub for both theGET_MASTER
andSUBSCRIBE
requests resulting in JSON parse errors due to the different response formats (RecoredIO, JSON).The flags are necessary as Cypress can only stub requests based on the URL and request method and doesn't provide the means to dynamically stub requests based on the payload as documented in cypress-io/cypress#521. We will remove the flags once the Cypress team rewrote the network handling and added support for dynamic stubs as documented in cypress-io/cypress#687 or we've addressed https://jira.mesosphere.com/browse/DCOS_OSS-2021.