test/fixtures/offer_search.yml in access-2.0.7 vs test/fixtures/offer_search.yml in access-2.0.8

- old
+ new

@@ -1,197 +1,16 @@ --- http_interactions: - request: method: get - uri: https://offer-demo.adcrws.com/v1/offers - body: - encoding: UTF-8 - string: query=pizza&member_key=guest&per_page=1 - headers: - Access-Token: - - token_without_limit - Content-Type: - - application/json - Accept: - - application/json - response: - status: - code: 400 - message: Bad Request - headers: - Content-Type: - - application/json - Date: - - Thu, 06 Aug 2015 17:30:04 GMT - Server: - - nginx/1.6.2 - Strict-Transport-Security: - - max-age=31536000 - X-Request-Id: - - fc1167cd-80e9-41cf-b2a5-ef38d66f11b8 - X-Runtime: - - '0.000195' - Content-Length: - - '150' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"status":400,"message":"There was a problem in the JSON you submitted: - 795: unexpected token at ''query=pizza\u0026member_key=guest\u0026per_page=1''"}' - http_version: - recorded_at: Thu, 06 Aug 2015 17:30:05 GMT -- request: - method: get - uri: https://offer-demo.adcrws.com/v1/offers?member_key=guest&per_page=1&query=pizza - body: - encoding: US-ASCII - string: '' - headers: - Access-Token: - - token_without_limit - Content-Type: - - application/json - Accept: - - application/json - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Headers: - - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token - Access-Control-Allow-Methods: - - POST, GET, PUT, DELETE, OPTIONS - Access-Control-Max-Age: - - '1728000' - Access-Control-Request-Method: - - GET - Cache-Control: - - max-age=0, private, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 06 Aug 2015 18:27:35 GMT - Etag: - - '"77c4048ab058d8a003603472f8309597"' - Server: - - nginx/1.6.2 - Strict-Transport-Security: - - max-age=31536000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - SAMEORIGIN - X-Request-Id: - - c03675f8-7b27-4594-b75f-422169c4510e - X-Runtime: - - '0.070066' - X-Xss-Protection: - - 1; mode=block - Content-Length: - - '3770' - Connection: - - keep-alive - body: - encoding: ASCII-8B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AgICJyZWRlbXB0aW9uX21ldGhvZHMiOiBbCiAgICAgICAgImluc3Rv - cmVfcHJpbnQiCiAgICAgIF0sCiAgICAgICJjYXRlZ29yaWVzIjogWwogICAg - ICAgIHsKICAgICAgICAgICJjYXRlZ29yeV9uYW1lIjogIkNhc3VhbCAmIEZp - bmUgRGluaW5nIiwKICAgICAgICAgICJjYXRlZ29yeV9rZXkiOiAxMDA5LAog - ICAgICAgICAgImNhdGVnb3J5X3BhcmVudF9rZXkiOiAzOSwKICAgICAgICAg - ICJjYXRlZ29yeV9wYXJlbnRfbmFtZSI6ICJEaW5pbmcgJiBGb29kIiwKICAg - ICAgICAgICJjYXRlZ29yeV90eXBlIjogInN1YmNhdGVnb3J5IgogICAgICAg - IH0KICAgICAgXSwKICAgICAgIm9mZmVyX3N0b3JlIjogewogICAgICAgICJu - YW1lIjogIkZpZ2FybydzIEl0YWxpYW4gUGl6emEiLAogICAgICAgICJkZXNj - cmlwdGlvbiI6ICJUYWtlIHlvdXIgdGltZSBhbmQgb3JkZXIgd2hhdCB5b3Un - ZCBsaWtlLiBXaGV0aGVyIHlvdSBlbmpveSBjbGFzc2ljIHBpenphcyBsaWtl - IHBlcHBlcm9uaSBvciBjaGVlc2Ugb3IgaWYgeW91IHdhbnQgdG8gc3BpY2Ug - aXQgdXAgYnkgb3JkZXJpbmcgQkJRIHNhdWNlIG9yIHRoaW4gY3J1c3QgLSBX - ZSBoYXZlIHdoYXQgeW91IHdhbnQhIFRyeSBGaWdhcm8ncyBQaXp6YSAtIEZs - YXZvcnMgVGhhdCBTaW5nLiIsCiAgICAgICAgInN0b3JlX2tleSI6IDE4OTM4 - NDk4LAogICAgICAgICJwaHlzaWNhbF9sb2NhdGlvbiI6IHsKICAgICAgICAg - ICJsb2NhdGlvbl9uYW1lIjogIkZpZ2FybydzIEl0YWxpYW4gUGl6emEiLAog - ICAgICAgICAgIndlYl9hZGRyZXNzIjogImh0dHA6Ly93d3cuZmlnYXJvcy5j - b20iLAogICAgICAgICAgImRlc2NyaXB0aW9uIjogbnVsbCwKICAgICAgICAg - ICJsb2NhdGlvbl9rZXkiOiAyNDQ4MjAsCiAgICAgICAgICAicG9zdGFsX2Nv - ZGUiOiAiOTg2MzIiLAogICAgICAgICAgImNvdW50cnkiOiAiVVMiLAogICAg - ICAgICAgInN0cmVldF9hZGRyZXNzIjogIjMyMDggT2NlYW4gQmVhY2ggSHd5 - IiwKICAgICAgICAgICJleHRlbmRlZF9zdHJlZXRfYWRkcmVzcyI6IG51bGws - CiAgICAgICAgICAiY2l0eV9sb2NhbGl0eSI6ICJMb25ndmlldyIsCiAgICAg - ICAgICAic3RhdGVfcmVnaW9uIjogIldBIiwKICAgICAgICAgICJnZW9sb2Nh - dGlvbl9hcnJheSI6IFsKICAgICAgICAgICAgLTEyMi45NzEwNSwKICAgICAg - ICAgICAgNDYuMTQ4MzEKICAgICAgICAgIF0sCiAgICAgICAgICAiZ2VvbG9j - YXRpb24iOiB7CiAgICAgICAgICAgICJsYXQiOiA0Ni4xNDgzMSwKICAgICAg - ICAgICAgImxvbiI6IC0xMjIuOTcxMDUKICAgICAgICAgIH0sCiAgICAgICAg - ICAicGhvbmVfbnVtYmVyIjogIjM2MC0zNTMtMzMzMyIKICAgICAgICB9CiAg - ICAgIH0sCiAgICAgICJsb2NhdGlvbl9rZXl3b3JkcyI6IFsKCiAgICAgIF0s - CiAgICAgICJsaW5rcyI6IHsKICAgICAgICAic2hvd19vZmZlciI6ICJodHRw - czovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9vZmZlcnMvNzM2NTI4NSIs - CiAgICAgICAgInNob3dfc3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1vLmFk - Y3J3cy5jb20vdjEvc3RvcmVzLzE4OTM4NDk4IiwKICAgICAgICAic2hvd19s - b2NhdGlvbiI6ICJodHRwczovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9s - b2NhdGlvbnMvMjQ0ODIwIiwKICAgICAgICAiZmluZF9vZmZlcnNfYXRfdGhp - c19zdG9yZSI6ICJodHRwczovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9v - ZmZlcnM/c3RvcmVfa2V5PTE4OTM4NDk4IiwKICAgICAgICAiZmluZF9vZmZl - cnNfYXRfdGhpc19sb2NhdGlvbiI6ICJodHRwczovL29mZmVyLWRlbW8uYWRj - cndzLmNvbS92MS9vZmZlcnM/bG9jYXRpb25fa2V5PTI0NDgyMCIsCiAgICAg - ICAgImZpbmRfbG9jYXRpb25zX3dpdGhfdGhpc19vZmZlciI6ICJodHRwczov - L29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9sb2NhdGlvbnM/b2ZmZXJfZ3Jv - dXA9MTM5Njk3IiwKICAgICAgICAiZmluZF9sb2NhdGlvbnNfZm9yX3RoaXNf - c3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1vLmFkY3J3cy5jb20vdjEvbG9j - YXRpb25zP3N0b3JlX2tleT0xODkzODQ5OCIKICAgICAgfQogICAgfQogIF0s - CiAgImxpbmtzIjogewogICAgIm5leHRfcGFnZSI6ICJodHRwczovL29mZmVy - LWRlbW8uYWRjcndzLmNvbS92MS9vZmZlcnM/bWVtYmVyX2tleT1ndWVzdCZw - YWdlPTImcGVyX3BhZ2U9MSZxdWVyeT1waXp6YSIKICB9Cn0= - http_version: - recorded_at: Thu, 06 Aug 2015 18:27:35 GMT -- request: - method: get uri: https://offer-demo.adcrws.com/v1/offers?member_key=API_RUBY_GEM_TEST&per_page=1&query=pizza body: encoding: US-ASCII string: '' headers: Access-Token: - - token_without_limit + - token_without_filters Content-Type: - application/json Accept: - application/json response: @@ -210,23 +29,27 @@ Cache-Control: - max-age=0, private, must-revalidate Content-Type: - application/json Date: - - Fri, 11 Sep 2015 20:33:19 GMT + - Wed, 16 Sep 2015 19:54:11 GMT Etag: - - '"028095cd3a1bc5594e6c6994424e7c60"' + - '"ce03486f30b61bf0bc398fe3b1784f21"' Server: - nginx/1.6.2 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - '1000' + X-Ratelimit-Remaining: + - '955' X-Request-Id: - - c2cab20e-ee98-44c6-b59d-4ca11ae6b342 + - c530d95a-22a4-4a82-a00e-c3d1c031c496 X-Runtime: - - '0.100491' + - '0.037418' X-Xss-Protection: - 1; mode=block Content-Length: - '4048' Connection: @@ -239,12 +62,12 @@ ICAgInJlc3VsdHNfcGVyX3BhZ2UiOiAxCiAgfSwKICAib2ZmZXJzIjogWwog ICAgewogICAgICAic2VhcmNoX3JlbGV2YW5jZSI6IDAuNzExMTY3NiwKICAg ICAgIm9mZmVyX2tleSI6IDczNjUyODUsCiAgICAgICJvZmZlcl9ncm91cF9r ZXkiOiAxMzk2OTcsCiAgICAgICJ0aXRsZSI6ICJBbnkgZXh0cmEgbGFyZ2Ug cGl6emEgZm9yIHRoZSBwcmljZSBvZiBsYXJnZSBwaXp6YS4iLAogICAgICAi - c3RhcnRlZF9vbiI6ICIyMDE1LTA1LTE0VDAwOjAwOjAwLjAwMFoiLAogICAg - ICAiZXhwaXJlc19vbiI6ICIyMDE1LTEwLTExVDIzOjU5OjU5Ljk5OVoiLAog + c3RhcnRlZF9vbiI6ICIyMDE1LTA1LTE5VDAwOjAwOjAwLjAwMFoiLAogICAg + ICAiZXhwaXJlc19vbiI6ICIyMDE1LTEwLTE2VDIzOjU5OjU5Ljk5OVoiLAog ICAgICAidGVybXNfb2ZfdXNlIjogIkRpc2NvdW50IGJhc2VkIG9uIHJlZ3Vs YXIgbWVudSBwcmljZXMuIFNvbWUgc3RvcmVzIGNoYXJnZSAkMSBtb3JlIGZv ciBTaWNpbGlhbiBQYW4gQ3J1c3QuIERlbGl2ZXJ5IGF2YWlsYWJsZSBhdCBw YXJ0aWNpcGF0aW5nIGxvY2F0aW9ucy4gTGltaXRlZCBkZWxpdmVyeSBhcmVh LiBEZWxpdmVyeSBjaGFyZ2VzIG1heSBhcHBseS4gVmFsaWQgYXQgcGFydGlj @@ -323,7 +146,7 @@ bnM/c3RvcmVfa2V5PTE4OTM4NDk4IgogICAgICB9CiAgICB9CiAgXSwKICAi bGlua3MiOiB7CiAgICAibmV4dF9wYWdlIjogImh0dHBzOi8vb2ZmZXItZGVt by5hZGNyd3MuY29tL3YxL29mZmVycz9tZW1iZXJfa2V5PUFQSV9SVUJZX0dF TV9URVNUJnBhZ2U9MiZwZXJfcGFnZT0xJnF1ZXJ5PXBpenphIgogIH0KfQ== http_version: - recorded_at: Fri, 11 Sep 2015 20:33:19 GMT + recorded_at: Wed, 16 Sep 2015 19:54:11 GMT recorded_with: VCR 2.9.3