getsmarter/moodle-api

View on GitHub
fixtures/vcr_cassettes/token_service/invalid_user_token_service.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: post
    uri: http://my_moodle_instance.com/login/token.php?username=ryan.mes%40email.co.za&password=phoenix_integration&service=
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - Typhoeus - https://github.com/typhoeus/typhoeus
      Accept:
      - json
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 03 Jul 2015 11:38:14 GMT
      Server:
      - Apache/2.4.9 (Unix) PHP/5.5.14
      X-Powered-By:
      - PHP/5.5.14
      Cache-Control:
      - no-store, no-cache, must-revalidate
      - post-check=0, pre-check=0
      Pragma:
      - no-cache
      Expires:
      - Mon, 20 Aug 1969 09:23:00 GMT
      Last-Modified:
      - Fri, 03 Jul 2015 11:38:14 GMT
      Accept-Ranges:
      - none
      Content-Length:
      - '231'
      Content-Type:
      - application/json; charset=utf-8
    body:
      encoding: UTF-8
      string: '{"error":"The username was not found in the database","stacktrace":"*
        line 205 of \/login\/token.php: moodle_exception thrown\n","debuginfo":"\nError
        code: usernamenotfound","reproductionlink":"http:\/\/my_moodle_instance.com\/"}'
    http_version: '1.1'
    adapter_metadata:
      effective_url: http://my_moodle_instance.com/login/token.php?username=ryan.mes%40email.co.za&password=phoenix_integration&service=
  recorded_at: Fri, 03 Jul 2015 11:38:14 GMT
recorded_with: VCR 2.9.3