dpn-admin/dpn-sync

View on GitHub
fixtures/vcr_cassettes/DPN_Workers_SyncMembers/behaves_like_sync_registry_object_success/_sync/success/records_success_timestamp.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: http://localhost:3001/api-v2/member/?page=1&page_size=25
    body:
      encoding: UTF-8
      string: 'null'
    headers:
      User-Agent:
      - dpn-client-aptrust (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:17 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token aptrust_token
  response:
    status:
      code: 200
      message: 'OK '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"7274a977a47ae00b2bf8e3a77ad77502"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 242e6282-0837-4c3c-b39f-102084d4e030
      X-Runtime:
      - '0.011881'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:17 GMT
      Content-Length:
      - '970'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"count":5,"next":null,"previous":null,"results":[{"member_id":"fe908327-3635-43c2-9ca6-849485febcf3","name":"Hathi
        Test","email":"dpn_test@hathi.org","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"},{"member_id":"9a000000-0000-4000-a000-000000000004","name":"Greendale
        Community College","email":"lybrerien@greendalecc.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"},{"member_id":"9a000000-0000-4000-a000-000000000001","name":"UC
        Sunnydale","email":"buffy@ucsunnydale.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"},{"member_id":"9a000000-0000-4000-a000-000000000003","name":"Grand
        Lakes University","email":"dangerfield@grandlakes.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"},{"member_id":"9a000000-0000-4000-a000-000000000002","name":"Faber
        College","email":"bluto@faber.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}]}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:17 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/member/
    body:
      encoding: UTF-8
      string: '{"member_id":"fe908327-3635-43c2-9ca6-849485febcf3","name":"Hathi Test","email":"dpn_test@hathi.org","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:17 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 409
      message: 'Conflict '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - text/plain; charset=utf-8
      Cache-Control:
      - no-cache
      X-Request-Id:
      - 67ab2ba9-8cf1-4cfb-82ca-ee63975d8024
      X-Runtime:
      - '0.016183'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:17 GMT
      Content-Length:
      - '0'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:17 GMT
- request:
    method: put
    uri: http://localhost:3004/api-v2/member/fe908327-3635-43c2-9ca6-849485febcf3/
    body:
      encoding: UTF-8
      string: '{"member_id":"fe908327-3635-43c2-9ca6-849485febcf3","name":"Hathi Test","email":"dpn_test@hathi.org","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:17 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 200
      message: 'OK '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"7f1e6970231860d43005a36db03ed8a5"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 9268c934-5732-4b73-b3e1-1fce1f481c93
      X-Runtime:
      - '0.012896'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:17 GMT
      Content-Length:
      - '173'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"member_id":"fe908327-3635-43c2-9ca6-849485febcf3","name":"Hathi Test","email":"dpn_test@hathi.org","created_at":"2016-12-15T23:49:20Z","updated_at":"2016-12-15T23:49:20Z"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/member/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000004","name":"Greendale
        Community College","email":"lybrerien@greendalecc.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 409
      message: 'Conflict '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - text/plain; charset=utf-8
      Cache-Control:
      - no-cache
      X-Request-Id:
      - a6847acd-4d49-4b42-b43e-f4aa312070ae
      X-Runtime:
      - '0.012039'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '0'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: put
    uri: http://localhost:3004/api-v2/member/9a000000-0000-4000-a000-000000000004/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000004","name":"Greendale
        Community College","email":"lybrerien@greendalecc.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 200
      message: 'OK '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"9396b2a0e4c5f8d85b612c588ea1d21d"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 79340d9d-939c-454f-afb2-482b386717d0
      X-Runtime:
      - '0.012938'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '197'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000004","name":"Greendale
        Community College","email":"lybrerien@greendalecc.edu","created_at":"2016-12-15T23:49:20Z","updated_at":"2016-12-15T23:49:20Z"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/member/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000001","name":"UC Sunnydale","email":"buffy@ucsunnydale.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 409
      message: 'Conflict '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - text/plain; charset=utf-8
      Cache-Control:
      - no-cache
      X-Request-Id:
      - 6157e025-7900-4cca-bd2c-2b718ce2f4fd
      X-Runtime:
      - '0.007396'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '0'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: put
    uri: http://localhost:3004/api-v2/member/9a000000-0000-4000-a000-000000000001/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000001","name":"UC Sunnydale","email":"buffy@ucsunnydale.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 200
      message: 'OK '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"b905c8ec3a99e08b63708f081250daae"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 74cc65d3-8dfe-4830-be0d-4849ed01c935
      X-Runtime:
      - '0.012263'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '178'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000001","name":"UC Sunnydale","email":"buffy@ucsunnydale.edu","created_at":"2016-12-15T23:49:20Z","updated_at":"2016-12-15T23:49:20Z"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/member/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000003","name":"Grand Lakes
        University","email":"dangerfield@grandlakes.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 409
      message: 'Conflict '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - text/plain; charset=utf-8
      Cache-Control:
      - no-cache
      X-Request-Id:
      - c619fc92-ceec-47eb-a0d0-4b51961d0d0e
      X-Runtime:
      - '0.008391'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '0'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: put
    uri: http://localhost:3004/api-v2/member/9a000000-0000-4000-a000-000000000003/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000003","name":"Grand Lakes
        University","email":"dangerfield@grandlakes.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 200
      message: 'OK '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"513ce868dec5e78a1fe896ec409c9617"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 29983726-2d3b-4a38-863e-77e07aa2a4e3
      X-Runtime:
      - '0.014697'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '193'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000003","name":"Grand Lakes
        University","email":"dangerfield@grandlakes.edu","created_at":"2016-12-15T23:49:20Z","updated_at":"2016-12-15T23:49:20Z"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/member/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000002","name":"Faber College","email":"bluto@faber.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 409
      message: 'Conflict '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - text/plain; charset=utf-8
      Cache-Control:
      - no-cache
      X-Request-Id:
      - b814406e-674a-42c2-a9be-af052ecd1358
      X-Runtime:
      - '0.009206'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '0'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
- request:
    method: put
    uri: http://localhost:3004/api-v2/member/9a000000-0000-4000-a000-000000000002/
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000002","name":"Faber College","email":"bluto@faber.edu","created_at":"2016-12-15T23:49:13Z","updated_at":"2016-12-15T23:49:13Z"}'
    headers:
      User-Agent:
      - dpn-client-sdr (2.8.2.4, ruby 2.3.1 (2016-04-26))
      Accept:
      - "*/*"
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 200
      message: 'OK '
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"a99bdab9c40c8d430908b58126df1903"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 5abf9f11-c8d9-4dfa-b217-442eb29defd2
      X-Runtime:
      - '0.013015'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:18 GMT
      Content-Length:
      - '173'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"member_id":"9a000000-0000-4000-a000-000000000002","name":"Faber College","email":"bluto@faber.edu","created_at":"2016-12-15T23:49:20Z","updated_at":"2016-12-15T23:49:20Z"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:18 GMT
recorded_with: VCR 3.0.3