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

AWSNetworkTransport modifications to enable the ability to mock server #40

Merged
merged 3 commits into from
Jun 28, 2018

Conversation

joelmbell
Copy link
Contributor

@joelmbell joelmbell commented Jun 26, 2018

Issue #38

The purpose of this PR is to expose the NetworkTransport class that is used by the App Sync SDK so it is possible to create a Mock Network Transport object to control what responses from the server look like in our Functional UI tests.

Description of changes:

  • Creating a protocol outlining the requirements for a NetworkTransport class

  • Modifying internal dependecies on the concrete AWSAppSyncHTTPNetworkTransport class, so they are only depedent on the protocol

  • Exposing a new configuration initializer for app sync where the app can create their own network transport class. This includes a small refactor to the configuration class.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Joel Bell added 2 commits June 26, 2018 11:07
…etwork responses.

* Creating a protocol outlining the requirements for a NetworkTransport class
* Modifiying internal dependecies on the concrete class, so they are only depedent on the protocol
* Exposing a new configuration for app sync where the app can create their own network transport class.
@rohandubal
Copy link
Contributor

Thanks for the PR @joelmbell ! I will review this shortly and get back to you.

@rohandubal rohandubal self-assigned this Jun 26, 2018
@rohandubal rohandubal self-requested a review June 26, 2018 23:49
@rohandubal rohandubal merged commit d9272da into awslabs:master Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants