TestProvider_KVv2_GetSecret_Property.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. headers:
  12. X-Vault-Request:
  13. - "true"
  14. X-Vault-Token:
  15. - root
  16. url: http://localhost:8200/v1/secret/data/foo
  17. method: GET
  18. response:
  19. proto: HTTP/1.1
  20. proto_major: 1
  21. proto_minor: 1
  22. content_length: 330
  23. body: |-
  24. {
  25. "auth": null,
  26. "data": {
  27. "data": {
  28. "bar": "bazz",
  29. "lorem": "ipsum"
  30. },
  31. "metadata": {
  32. "created_time": "2099-09-09T09:09:09.09Z",
  33. "custom_metadata": null,
  34. "deletion_time": "",
  35. "destroyed": false,
  36. "version": 2
  37. }
  38. },
  39. "lease_duration": 0,
  40. "lease_id": "",
  41. "renewable": false,
  42. "request_id": "00000000-0000-0000-0000-000000000000",
  43. "warnings": null,
  44. "wrap_info": null
  45. }
  46. headers:
  47. Cache-Control:
  48. - no-store
  49. Content-Length:
  50. - "330"
  51. Content-Type:
  52. - application/json
  53. Strict-Transport-Security:
  54. - max-age=31536000; includeSubDomains
  55. status: 200 OK
  56. code: 200
  57. duration: 0s
  58. - id: 1
  59. request:
  60. proto: HTTP/1.1
  61. proto_major: 1
  62. proto_minor: 1
  63. content_length: 0
  64. host: localhost:8200
  65. headers:
  66. X-Vault-Request:
  67. - "true"
  68. X-Vault-Token:
  69. - root
  70. url: http://localhost:8200/v1/secret/data/foo
  71. method: GET
  72. response:
  73. proto: HTTP/1.1
  74. proto_major: 1
  75. proto_minor: 1
  76. content_length: 330
  77. body: |-
  78. {
  79. "auth": null,
  80. "data": {
  81. "data": {
  82. "bar": "bazz",
  83. "lorem": "ipsum"
  84. },
  85. "metadata": {
  86. "created_time": "2099-09-09T09:09:09.09Z",
  87. "custom_metadata": null,
  88. "deletion_time": "",
  89. "destroyed": false,
  90. "version": 2
  91. }
  92. },
  93. "lease_duration": 0,
  94. "lease_id": "",
  95. "renewable": false,
  96. "request_id": "00000000-0000-0000-0000-000000000000",
  97. "warnings": null,
  98. "wrap_info": null
  99. }
  100. headers:
  101. Cache-Control:
  102. - no-store
  103. Content-Length:
  104. - "330"
  105. Content-Type:
  106. - application/json
  107. Strict-Transport-Security:
  108. - max-age=31536000; includeSubDomains
  109. status: 200 OK
  110. code: 200
  111. duration: 0s