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

Add flags to identify and stub Mesos requests #2593

Merged
merged 2 commits into from
Jan 2, 2018

Conversation

orlandohohmeier
Copy link
Contributor

@orlandohohmeier orlandohohmeier commented Dec 29, 2017


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 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).

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.

@d2iq-mergebot
Copy link

This repo has @mesosphere-mergebot integration. You can interact with the following commands.

@mesosphere-mergebot integrate  
@mesosphere-mergebot test  
@mesosphere-mergebot ship-it  

@nLight
Copy link
Contributor

nLight commented Jan 2, 2018

Alfred test this please

@nLight
Copy link
Contributor

nLight commented Jan 2, 2018

@orlandohohmeier could you please rebase this one?

Orlando Hohmeier added 2 commits January 2, 2018 13:29
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.
@orlandohohmeier orlandohohmeier force-pushed the orlandohohmeier/fix/adjust-mesos-request-stubs branch from 2b829dc to ebb9008 Compare January 2, 2018 12:31
Copy link
Contributor

@Poltergeist Poltergeist left a comment

Choose a reason for hiding this comment

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

36 consecutive passes

Copy link
Contributor

@nLight nLight left a 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 😩

@nLight nLight merged commit 65c0ff3 into master Jan 2, 2018
@nLight nLight deleted the orlandohohmeier/fix/adjust-mesos-request-stubs branch January 2, 2018 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants