TestProvider_BaoNamespaces.yaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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-Namespace:
  13. - my-namespace
  14. X-Vault-Request:
  15. - "true"
  16. X-Vault-Token:
  17. - root
  18. url: http://localhost:8200/v1/kv/data/foo
  19. method: GET
  20. response:
  21. proto: HTTP/1.1
  22. proto_major: 1
  23. proto_minor: 1
  24. content_length: 336
  25. body: |-
  26. {
  27. "auth": null,
  28. "data": {
  29. "data": {
  30. "namespaced-bar": "namespaced-bazz"
  31. },
  32. "metadata": {
  33. "created_time": "2099-09-09T09:09:09.09Z",
  34. "custom_metadata": null,
  35. "deletion_time": "",
  36. "destroyed": false,
  37. "version": 1
  38. }
  39. },
  40. "lease_duration": 0,
  41. "lease_id": "",
  42. "renewable": false,
  43. "request_id": "00000000-0000-0000-0000-000000000000",
  44. "warnings": null,
  45. "wrap_info": null
  46. }
  47. headers:
  48. Cache-Control:
  49. - no-store
  50. Content-Length:
  51. - "336"
  52. Content-Type:
  53. - application/json
  54. Strict-Transport-Security:
  55. - max-age=31536000; includeSubDomains
  56. X-Vault-Namespace:
  57. - my-namespace
  58. status: 200 OK
  59. code: 200
  60. duration: 0s
  61. - id: 1
  62. request:
  63. proto: HTTP/1.1
  64. proto_major: 1
  65. proto_minor: 1
  66. content_length: 23
  67. host: localhost:8200
  68. body: '{"password":"bob4ever"}'
  69. headers:
  70. X-Vault-Request:
  71. - "true"
  72. url: http://localhost:8200/v1/auth/customuserpasspath/login/alice
  73. method: PUT
  74. response:
  75. proto: HTTP/1.1
  76. proto_major: 1
  77. proto_minor: 1
  78. content_length: 511
  79. body: |-
  80. {
  81. "auth": {
  82. "accessor": "AbCdEfGHiJk123",
  83. "client_token": "s.fakeTOKEN123",
  84. "entity_id": "00000000-0000-0000-0000-000000000000",
  85. "lease_duration": 2764800,
  86. "metadata": {
  87. "username": "alice"
  88. },
  89. "mfa_requirement": null,
  90. "num_uses": 0,
  91. "orphan": true,
  92. "policies": [
  93. "default",
  94. "read-kv"
  95. ],
  96. "renewable": true,
  97. "token_policies": [
  98. "default",
  99. "read-kv"
  100. ],
  101. "token_type": "service"
  102. },
  103. "data": null,
  104. "lease_duration": 0,
  105. "lease_id": "",
  106. "renewable": false,
  107. "request_id": "00000000-0000-0000-0000-000000000000",
  108. "warnings": null,
  109. "wrap_info": null
  110. }
  111. headers:
  112. Cache-Control:
  113. - no-store
  114. Content-Length:
  115. - "511"
  116. Content-Type:
  117. - application/json
  118. Strict-Transport-Security:
  119. - max-age=31536000; includeSubDomains
  120. status: 200 OK
  121. code: 200
  122. duration: 0s
  123. - id: 2
  124. request:
  125. proto: HTTP/1.1
  126. proto_major: 1
  127. proto_minor: 1
  128. content_length: 0
  129. host: localhost:8200
  130. headers:
  131. X-Vault-Namespace:
  132. - my-namespace
  133. X-Vault-Request:
  134. - "true"
  135. X-Vault-Token:
  136. - s.fakeTOKEN123
  137. url: http://localhost:8200/v1/kv/data/foo
  138. method: GET
  139. response:
  140. proto: HTTP/1.1
  141. proto_major: 1
  142. proto_minor: 1
  143. content_length: 336
  144. body: |-
  145. {
  146. "auth": null,
  147. "data": {
  148. "data": {
  149. "namespaced-bar": "namespaced-bazz"
  150. },
  151. "metadata": {
  152. "created_time": "2099-09-09T09:09:09.09Z",
  153. "custom_metadata": null,
  154. "deletion_time": "",
  155. "destroyed": false,
  156. "version": 1
  157. }
  158. },
  159. "lease_duration": 0,
  160. "lease_id": "",
  161. "renewable": false,
  162. "request_id": "00000000-0000-0000-0000-000000000000",
  163. "warnings": null,
  164. "wrap_info": null
  165. }
  166. headers:
  167. Cache-Control:
  168. - no-store
  169. Content-Length:
  170. - "336"
  171. Content-Type:
  172. - application/json
  173. Strict-Transport-Security:
  174. - max-age=31536000; includeSubDomains
  175. X-Vault-Namespace:
  176. - my-namespace
  177. status: 200 OK
  178. code: 200
  179. duration: 0s