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 local upload server + tests #1351

Merged
merged 27 commits into from
Aug 11, 2020
Merged

Add local upload server + tests #1351

merged 27 commits into from
Aug 11, 2020

Conversation

designatednerd
Copy link
Contributor

I realized that in order to test something I'm trying to do with uploads in #1341, I need to actually test what we're already doing with uploads a lot more thoroughly.

In this PR:

  • Yoinked @jbaxleyiii's simple upload server to run locally.
  • Added an UploadAPI framework that takes the schema from that server and makes requests with it.
  • Updated RequestCreatorTests to actually use a real request that uses the Upload type
  • Added UploadTests to validate that requests succeed and the appropriate data is uploaded to the local server.

NOTE: This is gonna be a draft until I can bribe @hwillson into helping me figure out how to add another mutation that has multiple parameters that accept an Upload 😇

@designatednerd designatednerd marked this pull request as draft August 6, 2020 02:46
@designatednerd
Copy link
Contributor Author

Ergh, I don't know what the hell is going on with Circle - running xcodebuild clean build-for-testing -project "Apollo.xcodeproj" -scheme "Apollo" -sdk iphonesimulator13.6 -destination "platform=iOS Simulator,OS=13.6,name=iPhone 11" | xcpretty locally works just dandy.

@hwillson hwillson force-pushed the add/upload-tests branch 4 times, most recently from 03befd3 to 34eefab Compare August 11, 2020 13:58
This will help ensure a consistent major version of Node is
installed on each platform.
@designatednerd
Copy link
Contributor Author

@hwillson is the 💣!

@designatednerd designatednerd merged commit 534505f into main Aug 11, 2020
@designatednerd designatednerd deleted the add/upload-tests branch August 11, 2020 15:14
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