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

Tests: Meta ticket for testing with external servers #687

Open
jrfnl opened this issue Feb 18, 2022 · 0 comments
Open

Tests: Meta ticket for testing with external servers #687

jrfnl opened this issue Feb 18, 2022 · 0 comments

Comments

@jrfnl
Copy link
Member

jrfnl commented Feb 18, 2022

There are several tickets open about tests using external servers/services and the fact that this means that those tests may fail on occation when the service is (temporarily) not available or when something changes in those endpoints.

This meta ticket is meant to bind those tickets together and to discuss the wider pespective of how to solve this.

Related tickets

Related tickets specific to tests with external services:

Related tickets specific to features which can't currently be tested:

Related tickets about documenting how to run the tests (locally with the test servers):

External services providing endpoints

Known external services which provide endpoints for testing status code and other HTTP(S) responses:

In addition to this, a local copy of the https://github.com/RequestsPHP/test-server code is being run to provide responses for some tests.

To discuss/investigate

  • Are there external services available for all needed endpoints ? I.e. can we abolish our dependency on the Heroku setup / test server repo ?
  • Can the tests be made more stable by switching to different services for certain tests ?
  • Can the tests be made more stable by having a helper function which will automatically retry a request a limited amount of times if it fails the first time ? (loosely related to feature request Retry option? #222)
  • Can (some of) the tests be made more stable by having a fall-back URL ? I.e. if two different services both provide the response we need for the test, can a second server be tried if the request to the first server failed (via a helper function) ?
  • etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant