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

Test Refactor with Firewalk #3215

Merged
merged 28 commits into from Feb 1, 2021
Merged

Test Refactor with Firewalk #3215

merged 28 commits into from Feb 1, 2021

Conversation

jshier
Copy link
Contributor

@jshier jshier commented May 29, 2020

Goals ⚽

This PR attempts to fix our ongoing test reliability issues by replacing direct calls to httpbin.org with a local instance of Firewalk.

Implementation Details 🚧

This PR abstracts all test URLs and URLRequests into the Endpoint type, which has convenience methods for all of the various test paths. It also includes Session extensions to make using Endpoint much nicer, allowing the replacement of request(URLRequest.makeHTTPBinRequest()) with request(.default) or request(.delay(1)). This should allow us to more easily add reusable testing endpoints in the future.

Testing Details 🔍

Reenables the redirect tests and adds a test for 307 redirect handling (using a new Firewalk feature that goes beyond HTTPBin). Otherwise it's a large test refactor to use the new Endpoint type.

@jshier jshier reopened this Dec 31, 2020
@jshier jshier marked this pull request as ready for review February 1, 2021 05:04
@jshier jshier merged commit b5dfb35 into master Feb 1, 2021
@jshier jshier deleted the update/test-cleanup branch February 1, 2021 05:05
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.

None yet

1 participant