dpn-admin/dpn-sync

View on GitHub
fixtures/vcr_cassettes/DPN_Workers_SyncMembers/behaves_like_sync_registry_object_success/_sync/success/returns_true.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:
      - 220f9a97-3c14-441d-a8df-9f298ca6250d
      X-Runtime:
      - '0.030580'
      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:
      - dc919d9e-cdb9-4b1c-bfdb-2334dc8b90f8
      X-Runtime:
      - '0.015798'
      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:
      - d9365bc8-dfaa-4193-b6d2-564552188c68
      X-Runtime:
      - '0.014140'
      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:17 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: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:
      - c9c0c375-2ac7-41c1-a39e-05f302e0fd7c
      X-Runtime:
      - '0.006992'
      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/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: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/"9396b2a0e4c5f8d85b612c588ea1d21d"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 626210ce-a4b5-4333-96e3-6ca34466c1c1
      X-Runtime:
      - '0.013501'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:17 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:17 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: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:
      - fdcd3e04-9bfa-4c40-b88c-f08429e87486
      X-Runtime:
      - '0.007579'
      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/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: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/"b905c8ec3a99e08b63708f081250daae"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - caf6e5c5-68b2-488a-932e-896c256a9afd
      X-Runtime:
      - '0.022871'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:17 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:17 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: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:
      - b2ea0fc1-79c9-4a59-90ec-5cc601ba843b
      X-Runtime:
      - '0.007461'
      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/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: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/"513ce868dec5e78a1fe896ec409c9617"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 31982b5f-fe13-48a0-aa19-53643aa71c12
      X-Runtime:
      - '0.011841'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:17 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:17 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: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:
      - 6434d68c-9623-4b2b-9ff1-16905a01e139
      X-Runtime:
      - '0.006896'
      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/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: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/"a99bdab9c40c8d430908b58126df1903"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 6da16e76-16d9-48ca-b9d8-87b513d0ecc6
      X-Runtime:
      - '0.012575'
      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":"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:17 GMT
recorded_with: VCR 3.0.3