WordPress / WordPress/Requests
Update httpbin endpoint on tests
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 500
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 5
Description
The default REQUESTS_TEST_HOST endpoint (requests-php-tests.herokuapp.com) points to a very outdated version of httpbin forcing a couple of tests to be run directly against https://httpbin.org instead.
The tests are:
7b099c59b152f746c0ea1324f138eab122f76c0c - /status/307 redirect issue fixed in later versions (see #7)
3ebc94a1cd5526e19b072ad49c023e0b3fe984f0 - /post does not show form data and file data at the same time in older versions
Any chance that app can be updated so tests can use the httpbin() function in the newer cases?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the default REQUESTS_TEST_HOST configuration and the httpbin() helper used by the tests. Review the two referenced test changes for /status/307 and /post behavior, then verify that the updated endpoint lets those tests use httpbin() consistently without direct exceptions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100