dpn-admin/dpn-sync

View on GitHub
fixtures/vcr_cassettes/DPN_Workers_SyncFixities/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/fixity_check/?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:16 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/"fd1ab937412821cfdf245526c0d8e9d2"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 9133fb47-8885-4193-8447-6064053d62ce
      X-Runtime:
      - '0.044484'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:16 GMT
      Content-Length:
      - '1076'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"count":5,"next":null,"previous":null,"results":[{"fixity_check_id":"1729db55-13d3-467b-8b6d-7cc21d88a48a","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"sdr"},{"fixity_check_id":"d30b787b-5fd1-441e-960d-024db9367615","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":false,"bag":"00000000-0000-4000-a000-000000000001","node":"tdr"},{"fixity_check_id":"99be34a2-ea07-4b49-b5fc-0da10255ac76","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"aptrust"},{"fixity_check_id":"a2047393-2bed-482f-86bc-1153c89746f1","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"chron"},{"fixity_check_id":"71effd33-a23a-40ee-8e14-84a7d5ae9931","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":false,"bag":"00000000-0000-4000-a000-000000000001","node":"hathi"}]}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:16 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/fixity_check/
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"1729db55-13d3-467b-8b6d-7cc21d88a48a","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"sdr"}'
    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:16 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 201
      message: 'Created '
    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/"11743c57170d03e61c90d327784b031b"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 2566efbd-7e75-4442-95ef-d61ec2e225ec
      X-Runtime:
      - '0.042864'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:16 GMT
      Content-Length:
      - '202'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"1729db55-13d3-467b-8b6d-7cc21d88a48a","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"sdr"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:16 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/fixity_check/
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"d30b787b-5fd1-441e-960d-024db9367615","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":false,"bag":"00000000-0000-4000-a000-000000000001","node":"tdr"}'
    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:16 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 201
      message: 'Created '
    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/"d18aed3b985bd1fabc53ee26c6e8902b"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 7414716c-dae2-4c44-96c4-20169b91eb81
      X-Runtime:
      - '0.018498'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:16 GMT
      Content-Length:
      - '203'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"d30b787b-5fd1-441e-960d-024db9367615","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":false,"bag":"00000000-0000-4000-a000-000000000001","node":"tdr"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:16 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/fixity_check/
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"99be34a2-ea07-4b49-b5fc-0da10255ac76","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"aptrust"}'
    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:16 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 201
      message: 'Created '
    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/"6d96f4a24b8c70ff60d50ae729920bbe"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 44a2c770-ff71-432c-97cf-f384ebdb555d
      X-Runtime:
      - '0.018411'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:16 GMT
      Content-Length:
      - '206'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"99be34a2-ea07-4b49-b5fc-0da10255ac76","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"aptrust"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:16 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/fixity_check/
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"a2047393-2bed-482f-86bc-1153c89746f1","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"chron"}'
    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:16 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 201
      message: 'Created '
    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/"0c05e53e3caf7840fc1bb2bd8dd3b2bd"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - af61f403-7a40-427f-9d71-2c4787e933c8
      X-Runtime:
      - '0.017463'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:16 GMT
      Content-Length:
      - '204'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"a2047393-2bed-482f-86bc-1153c89746f1","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":true,"bag":"00000000-0000-4000-a000-000000000001","node":"chron"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:16 GMT
- request:
    method: post
    uri: http://localhost:3004/api-v2/fixity_check/
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"71effd33-a23a-40ee-8e14-84a7d5ae9931","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":false,"bag":"00000000-0000-4000-a000-000000000001","node":"hathi"}'
    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:16 GMT
      Content-Type:
      - application/json
      Authorization:
      - Token sdr_token
  response:
    status:
      code: 201
      message: 'Created '
    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/"42dafdf824a491640fed51812c87be7a"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 4e3fc6df-7693-49ff-afd1-2e7064775f19
      X-Runtime:
      - '0.017873'
      Server:
      - WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
      Date:
      - Thu, 15 Dec 2016 23:50:16 GMT
      Content-Length:
      - '205'
      Connection:
      - Keep-Alive
    body:
      encoding: UTF-8
      string: '{"fixity_check_id":"71effd33-a23a-40ee-8e14-84a7d5ae9931","created_at":"2015-09-15T17:56:03Z","fixity_at":"2015-09-15T17:56:03Z","success":false,"bag":"00000000-0000-4000-a000-000000000001","node":"hathi"}'
    http_version: 
  recorded_at: Thu, 15 Dec 2016 23:50:16 GMT
recorded_with: VCR 3.0.3