Skip to content

Add local upload server + tests#1351

Merged
designatednerd merged 27 commits intomainfrom
add/upload-tests
Aug 11, 2020
Merged

Add local upload server + tests#1351
designatednerd merged 27 commits intomainfrom
add/upload-tests

Conversation

@designatednerd
Copy link
Copy Markdown
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
Comment thread SimpleUploadServer/index.js
@designatednerd
Copy link
Copy Markdown
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
Copy Markdown
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