spec/fixtures/iex/chart/bad_option.yml in iex-ruby-client-0.4.4 vs spec/fixtures/iex/chart/bad_option.yml in iex-ruby-client-1.0.0
- old
+ new
@@ -1,65 +1,83 @@
---
http_interactions:
-- request:
- method: get
- uri: https://api.iextrading.com/1.0/stock/MSFT/chart/1d?badOption=option&chartInterval=10
- body:
- encoding: US-ASCII
- string: ''
- headers:
- User-Agent:
- - Faraday v0.15.2
- Accept-Encoding:
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
- Accept:
- - "*/*"
- response:
- status:
- code: 400
- message: Bad Request
- headers:
- Server:
- - nginx
- Date:
- - Fri, 27 Jul 2018 00:59:53 GMT
- Content-Type:
- - application/json; charset=utf-8
- Content-Length:
- - '40'
- Connection:
- - keep-alive
- Set-Cookie:
- - ctoken=cd9863332b4546a4a6b8f0a9550e7030; Domain=.iextrading.com; Path=/; Expires=Fri,
- 27 Jul 2018 12:59:53 GMT; Secure
- Content-Security-Policy:
- - default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
- 'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
- https://api.iextrading.com https://api.iextrading.com wss://iextrading.com
- wss://tops.iextrading.com wss://api.iextrading.com wss://iextrading.com; script-src
- 'self' 'unsafe-inline' 'unsafe-eval';
- X-Content-Security-Policy:
- - default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
- 'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
- https://api.iextrading.com https://api.iextrading.com wss://iextrading.com
- wss://tops.iextrading.com wss://api.iextrading.com wss://iextrading.com; script-src
- 'self' 'unsafe-inline' 'unsafe-eval';
- Frame-Options:
- - SAMEORIGIN
- X-Frame-Options:
- - SAMEORIGIN
- Strict-Transport-Security:
- - max-age=15768000
- Access-Control-Allow-Origin:
- - "*"
- Access-Control-Allow-Credentials:
- - 'true'
- Access-Control-Allow-Methods:
- - GET, OPTIONS
- Access-Control-Allow-Headers:
- - Origin, X-Requested-With, Content-Type, Accept
- body:
- encoding: UTF-8
- string: '{"error":"\"badOption\" is not allowed"}'
- http_version:
- recorded_at: Fri, 27 Jul 2018 00:59:53 GMT
+ - request:
+ method: get
+ uri: https://cloud.iexapis.com/v1/stock/MSFT/chart/1d?badOption=option&chartInterval=10&token=test-iex-api-publishable-token
+ body:
+ encoding: US-ASCII
+ string: ""
+ headers:
+ User-Agent:
+ - Faraday v0.15.4
+ Accept-Encoding:
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
+ Accept:
+ - "*/*"
+ response:
+ status:
+ code: 400
+ message: Bad Request
+ headers:
+ Server:
+ - nginx
+ Date:
+ - Mon, 08 Apr 2019 11:43:29 GMT
+ Content-Type:
+ - application/json; charset=utf-8
+ Content-Length:
+ - "40"
+ Connection:
+ - keep-alive
+ Set-Cookie:
+ - ctoken=a08e3f3e367c48de8ab5e3887a46027f; Max-Age=43200; Path=/; Expires=Mon,
+ 08 Apr 2019 23:43:29 GMT
+ Content-Security-Policy:
+ - "default-src 'self'; child-src 'none'; object-src 'self'; style-src
+ 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self'
+ https://js.intercomcdn.com/fonts/ https://fonts.gstatic.com; frame-src 'self'
+ https://portal.productboard.com/ https://js.stripe.com/; img-src 'self'
+ data: https://*.intercomcdn.com/ https://static.intercomassets.com/ https://www.google-analytics.com
+ https://downloads.intercomcdn.com/; connect-src 'self' https://auth.iexcloud.io
+ https://api.iexcloud.io https://api.iexcloud.io https://cloud.iexapis.com
+ wss://iexcloud.io wss://tops.iexcloud.io wss://api.iexcloud.io wss://iexcloud.io
+ https://api-iam.intercom.io/messenger/ https://nexus-websocket-a.intercom.io/
+ https://nexus-websocket-b.intercom.io/ wss://nexus-websocket-a.intercom.io/
+ wss://nexus-websocket-b.intercom.io/ https://www.google-analytics.com; script-src
+ 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com/recaptcha/api.js
+ https://www.google-analytics.com https://js.stripe.com/v3/ https://widget.intercom.io/widget/lhos563b
+ https://js.intercomcdn.com/ https://www.googletagmanager.com;"
+ X-Content-Security-Policy:
+ - "default-src 'self'; child-src 'none'; object-src 'self'; style-src
+ 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self'
+ https://js.intercomcdn.com/fonts/ https://fonts.gstatic.com; frame-src 'self'
+ https://portal.productboard.com/ https://js.stripe.com/; img-src 'self'
+ data: https://*.intercomcdn.com/ https://static.intercomassets.com/ https://www.google-analytics.com
+ https://downloads.intercomcdn.com/; connect-src 'self' https://auth.iexcloud.io
+ https://api.iexcloud.io https://api.iexcloud.io https://cloud.iexapis.com
+ wss://iexcloud.io wss://tops.iexcloud.io wss://api.iexcloud.io wss://iexcloud.io
+ https://api-iam.intercom.io/messenger/ https://nexus-websocket-a.intercom.io/
+ https://nexus-websocket-b.intercom.io/ wss://nexus-websocket-a.intercom.io/
+ wss://nexus-websocket-b.intercom.io/ https://www.google-analytics.com; script-src
+ 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com/recaptcha/api.js
+ https://www.google-analytics.com https://js.stripe.com/v3/ https://widget.intercom.io/widget/lhos563b
+ https://js.intercomcdn.com/ https://www.googletagmanager.com;"
+ Frame-Options:
+ - SAMEORIGIN
+ X-Frame-Options:
+ - SAMEORIGIN
+ Strict-Transport-Security:
+ - max-age=15768000
+ Access-Control-Allow-Origin:
+ - "*"
+ Access-Control-Allow-Credentials:
+ - "true"
+ Access-Control-Allow-Methods:
+ - GET, OPTIONS
+ Access-Control-Allow-Headers:
+ - Origin, X-Requested-With, Content-Type, Accept
+ body:
+ encoding: UTF-8
+ string: '{"error":"\"badOption\" is not allowed"}'
+ http_version:
+ recorded_at: Mon, 08 Apr 2019 11:43:29 GMT
recorded_with: VCR 4.0.0