WordPress / WordPress/Requests

Update httpbin endpoint on tests

Open
#315 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: testing/chores/QA
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.