LinuxSuRen / api-testing

YAML based API testing tool. 开源接口调试、测试工具。Mock Server
https://linuxsuren.github.io/api-testing/
Apache License 2.0
242 stars 50 forks source link

Suggest to support retry strategy on verification step #507

Closed JohnNiang closed 1 month ago

JohnNiang commented 2 months ago

Description:

See https://www.rfc-editor.org/rfc/rfc9110#status.409 for more.

Below is an example of test case with retry strategy:

- name: recover
  request:
    api: /content.halo.run/v1alpha1/posts/{{(index .listPosts.items 0).post.metadata.name}}
    method: DELETE
  expect:
    statusCode: 200
  retry:
    on:
      statusCode: 409
    count: 10
    interval: 10s

[optional Relevant Links:]

github-actions[bot] commented 1 month ago

This issue has been open 30 days with no activity. This will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the api-testing.