File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/csharpru/vault-php/tests/_data/vcr/unit-client
-
request:
method: POST
url: 'http://127.0.0.1:8200/v1/auth/userpass/login/test'
headers:
Host: '127.0.0.1:8200'
Expect: null
Accept-Encoding: null
User-Agent: VaultPHP/1.0.0
Content-Type: application/json
Accept: null
body: '{"password":"test"}'
response:
status:
http_version: '1.1'
code: '200'
message: OK
headers:
Cache-Control: no-store
Content-Type: application/json
Date: 'Tue, 01 Aug 2017 06:54:33 GMT'
Content-Length: '366'
body: "{\"request_id\":\"08962062-3aab-fd89-3413-99c3521ecc75\",\"lease_id\":\"\",\"renewable\":false,\"lease_duration\":0,\"data\":null,\"wrap_info\":null,\"warnings\":null,\"auth\":{\"client_token\":\"9e64c3b8-01f7-7a64-1575-30a91f7d1ae4\",\"accessor\":\"033ccada-d332-9415-0acc-0ec51e81dbd1\",\"policies\":[\"default\",\"test\"],\"metadata\":{\"username\":\"test\"},\"lease_duration\":2764800,\"renewable\":true}}\n"
-
request:
method: GET
url: 'http://127.0.0.1:8200/v1/auth/token/lookup-self'
headers:
Host: '127.0.0.1:8200'
Accept-Encoding: null
User-Agent: VaultPHP/1.0.0
Content-Type: application/json
X-Vault-Token: 9e64c3b8-01f7-7a64-1575-30a91f7d1ae4
Accept: null
response:
status:
http_version: '1.1'
code: '200'
message: OK
headers:
Cache-Control: no-store
Content-Type: application/json
Date: 'Tue, 01 Aug 2017 06:54:33 GMT'
Content-Length: '504'
body: "{\"request_id\":\"ab3f3dc9-3633-0c18-44e2-f3f58cb56d0a\",\"lease_id\":\"\",\"renewable\":false,\"lease_duration\":0,\"data\":{\"accessor\":\"033ccada-d332-9415-0acc-0ec51e81dbd1\",\"creation_time\":1501570473,\"creation_ttl\":0,\"display_name\":\"userpass-test\",\"explicit_max_ttl\":0,\"id\":\"9e64c3b8-01f7-7a64-1575-30a91f7d1ae4\",\"meta\":{\"username\":\"test\"},\"num_uses\":0,\"orphan\":true,\"path\":\"auth/userpass/login/test\",\"policies\":[\"default\",\"test\"],\"renewable\":true,\"ttl\":2764800},\"wrap_info\":null,\"warnings\":null,\"auth\":null}\n"
-
request:
method: POST
url: 'http://127.0.0.1:8200/v1/secret/test'
headers:
Host: '127.0.0.1:8200'
Expect: null
Accept-Encoding: null
User-Agent: VaultPHP/1.0.0
Content-Type: application/json
X-Vault-Token: 9e64c3b8-01f7-7a64-1575-30a91f7d1ae4
Accept: null
body: '{"value":"test"}'
response:
status:
http_version: '1.1'
code: '204'
message: 'No Content'
headers:
Cache-Control: no-store
Content-Type: application/json
Date: 'Tue, 01 Aug 2017 06:54:33 GMT'
-
request:
method: GET
url: 'http://127.0.0.1:8200/v1/secret/test'
headers:
Host: '127.0.0.1:8200'
Accept-Encoding: null
User-Agent: VaultPHP/1.0.0
Content-Type: application/json
X-Vault-Token: 9e64c3b8-01f7-7a64-1575-30a91f7d1ae4
Accept: null
response:
status:
http_version: '1.1'
code: '200'
message: OK
headers:
Cache-Control: no-store
Content-Type: application/json
Date: 'Tue, 01 Aug 2017 06:54:33 GMT'
Content-Length: '180'
body: "{\"request_id\":\"72547a3a-cbc8-4afe-158e-fcbbe8274b6f\",\"lease_id\":\"\",\"renewable\":false,\"lease_duration\":2764800,\"data\":{\"value\":\"test\"},\"wrap_info\":null,\"warnings\":null,\"auth\":null}\n"
-
request:
method: DELETE
url: 'http://127.0.0.1:8200/v1/secret/test'
headers:
Host: '127.0.0.1:8200'
Accept-Encoding: null
User-Agent: VaultPHP/1.0.0
Content-Type: application/json
X-Vault-Token: 9e64c3b8-01f7-7a64-1575-30a91f7d1ae4
Accept: null
response:
status:
http_version: '1.1'
code: '204'
message: 'No Content'
headers:
Cache-Control: no-store
Content-Type: application/json
Date: 'Tue, 01 Aug 2017 06:54:33 GMT'
-
request:
method: POST
url: 'http://127.0.0.1:8200/v1/secret/test_prohibited'
headers:
Host: '127.0.0.1:8200'
Expect: null
Accept-Encoding: null
User-Agent: VaultPHP/1.0.0
Content-Type: application/json
X-Vault-Token: 9e64c3b8-01f7-7a64-1575-30a91f7d1ae4
Accept: null
body: '{"value":"test"}'
response:
status:
http_version: '1.1'
code: '403'
message: Forbidden
headers:
Cache-Control: no-store
Content-Type: application/json
Date: 'Tue, 01 Aug 2017 06:54:33 GMT'
Content-Length: '33'
body: "{\"errors\":[\"permission denied\"]}\n"