Sha256: fa3a58d38d1259f45a28c8099c743dfb53e1375e3c8466b38af7a2813bc0db89

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 KB

Contents

---
http_interactions:
- request:
    method: put
    uri: https://my.datacentred.io/api/projects/project_id2
    body:
      encoding: UTF-8
      string: '{"project":{"name":"foo"}}'
    headers:
      Accept:
      - application/vnd.datacentred.api+json; version=1
      Authorization:
      - Token token=access_key:secret_key
      Content-Type:
      - application/json
      User-Agent:
      - Faraday v0.9.2
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 422
      message: Unprocessable Entity
    headers:
      Server:
      - nginx/1.10.3
      Date:
      - Wed, 30 Aug 2017 13:53:37 GMT
      Content-Type:
      - application/json; charset=utf-8
      Transfer-Encoding:
      - chunked
      Connection:
      - keep-alive
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Api-Version:
      - '1'
      Cache-Control:
      - no-cache
      X-Request-Id:
      - 4155139e-fc30-4a39-bc81-38d581ac2996
      X-Runtime:
      - '0.787557'
    body:
      encoding: UTF-8
      string: '{"errors":[{"resource":"project","detail":"Project name is already
        in use.","field":"name"}],"links":[{"href":"https://my.datacentred.io/api","rel":"help"}]}'
    http_version:
  recorded_at: Wed, 30 Aug 2017 13:53:38 GMT
recorded_with: VCR 2.8.0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datacentred-1.1.1 test/vcr_cassettes/project_update_failed_validation.yml
datacentred-0.1.1pre test/vcr_cassettes/project_update_failed_validation.yml
datacentred-0.1.0pre test/vcr_cassettes/project_update_failed_validation.yml