TestProvider_KVv2_GetAllSecrets.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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/metadata?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/data/foo
  66. method: GET
  67. response:
  68. proto: HTTP/1.1
  69. proto_major: 1
  70. proto_minor: 1
  71. content_length: 330
  72. body: |-
  73. {
  74. "auth": null,
  75. "data": {
  76. "data": {
  77. "bar": "bazz",
  78. "lorem": "ipsum"
  79. },
  80. "metadata": {
  81. "created_time": "2099-09-09T09:09:09.09Z",
  82. "custom_metadata": null,
  83. "deletion_time": "",
  84. "destroyed": false,
  85. "version": 2
  86. }
  87. },
  88. "lease_duration": 0,
  89. "lease_id": "",
  90. "renewable": false,
  91. "request_id": "00000000-0000-0000-0000-000000000000",
  92. "warnings": null,
  93. "wrap_info": null
  94. }
  95. headers:
  96. Cache-Control:
  97. - no-store
  98. Content-Length:
  99. - "330"
  100. Content-Type:
  101. - application/json
  102. Strict-Transport-Security:
  103. - max-age=31536000; includeSubDomains
  104. status: 200 OK
  105. code: 200
  106. duration: 0s