TestProvider_KVv2_GetSecret_Versioned.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ---
  2. version: 2
  3. interactions:
  4. - id: 0
  5. request:
  6. proto: HTTP/1.1
  7. proto_major: 1
  8. proto_minor: 1
  9. content_length: 0
  10. host: localhost:8200
  11. form:
  12. version:
  13. - "1"
  14. headers:
  15. X-Vault-Request:
  16. - "true"
  17. X-Vault-Token:
  18. - root
  19. url: http://localhost:8200/v1/secret/data/foo?version=1
  20. method: GET
  21. response:
  22. proto: HTTP/1.1
  23. proto_major: 1
  24. proto_minor: 1
  25. content_length: 338
  26. body: |-
  27. {
  28. "auth": null,
  29. "data": {
  30. "data": {
  31. "bar": "old_bazz",
  32. "lorem": "old_ipsum"
  33. },
  34. "metadata": {
  35. "created_time": "2099-09-09T09:09:09.09Z",
  36. "custom_metadata": null,
  37. "deletion_time": "",
  38. "destroyed": false,
  39. "version": 1
  40. }
  41. },
  42. "lease_duration": 0,
  43. "lease_id": "",
  44. "renewable": false,
  45. "request_id": "00000000-0000-0000-0000-000000000000",
  46. "warnings": null,
  47. "wrap_info": null
  48. }
  49. headers:
  50. Cache-Control:
  51. - no-store
  52. Content-Length:
  53. - "338"
  54. Content-Type:
  55. - application/json
  56. Strict-Transport-Security:
  57. - max-age=31536000; includeSubDomains
  58. status: 200 OK
  59. code: 200
  60. duration: 0s