TestProvider_KVv1_GetAllSecrets.yaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. list:
  13. - "true"
  14. headers:
  15. X-Vault-Request:
  16. - "true"
  17. X-Vault-Token:
  18. - root
  19. url: http://localhost:8200/v1/secret_v1?list=true
  20. method: GET
  21. response:
  22. proto: HTTP/1.1
  23. proto_major: 1
  24. proto_minor: 1
  25. content_length: 174
  26. body: |-
  27. {
  28. "auth": null,
  29. "data": {
  30. "keys": [
  31. "foo"
  32. ]
  33. },
  34. "lease_duration": 0,
  35. "lease_id": "",
  36. "renewable": false,
  37. "request_id": "00000000-0000-0000-0000-000000000000",
  38. "warnings": null,
  39. "wrap_info": null
  40. }
  41. headers:
  42. Cache-Control:
  43. - no-store
  44. Content-Length:
  45. - "174"
  46. Content-Type:
  47. - application/json
  48. Strict-Transport-Security:
  49. - max-age=31536000; includeSubDomains
  50. status: 200 OK
  51. code: 200
  52. duration: 0s
  53. - id: 1
  54. request:
  55. proto: HTTP/1.1
  56. proto_major: 1
  57. proto_minor: 1
  58. content_length: 0
  59. host: localhost:8200
  60. headers:
  61. X-Vault-Request:
  62. - "true"
  63. X-Vault-Token:
  64. - root
  65. url: http://localhost:8200/v1/secret_v1/foo
  66. method: GET
  67. response:
  68. proto: HTTP/1.1
  69. proto_major: 1
  70. proto_minor: 1
  71. content_length: 200
  72. body: |-
  73. {
  74. "auth": null,
  75. "data": {
  76. "bar": "bazz_v1",
  77. "lorem": "ipsum_v1"
  78. },
  79. "lease_duration": 2764800,
  80. "lease_id": "",
  81. "renewable": false,
  82. "request_id": "00000000-0000-0000-0000-000000000000",
  83. "warnings": null,
  84. "wrap_info": null
  85. }
  86. headers:
  87. Cache-Control:
  88. - no-store
  89. Content-Length:
  90. - "200"
  91. Content-Type:
  92. - application/json
  93. Strict-Transport-Security:
  94. - max-age=31536000; includeSubDomains
  95. status: 200 OK
  96. code: 200
  97. duration: 0s