mikamai/akamai_api

View on GitHub
cassettes/akamai_api_ccu_arl_remove/invalid_credentials.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: post
    uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
    body:
      encoding: UTF-8
      string: '{"type":"arl","action":"remove","domain":"production","objects":["http://www.foo.bar/t.txt"]}'
    headers:
      Content-Type:
      - application/json
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Content-Length:
      - '413'
      Date:
      - Tue, 14 Mar 2017 04:47:01 GMT
      Connection:
      - close
      Content-Type:
      - application/problem+json
    body:
      encoding: UTF-8
      string: |
        {
          "type": "https://problems.purge.akamaiapis.net/-/pep-authn/request-error",
          "title": "Bad request",
          "status": 400,
          "detail": "Invalid client token",
          "instance": "https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default",
          "method": "POST",
          "serverIp": "y.y.y.y",
          "clientIp": "x.x.x.x",
          "requestId": "1234567",
          "requestTime": "2017-03-14T04:47:01Z"
        }
    http_version:
  recorded_at: Tue, 14 Mar 2017 04:47:00 GMT
recorded_with: VCR 3.0.3