ministryofjustice/Claim-for-Crown-Court-Defence

View on GitHub
vcr/cassettes/features/case_workers/admin/reallocation.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: http://localhost:3001/api/case_workers?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"5ad8e5c3da135a1503ab96339edc993d"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - 9866b9c3-995d-4874-baaf-3f06c5f4b560
      X-Runtime:
      - '0.022535'
      Content-Length:
      - '529'
    body:
      encoding: ASCII-8BIT
      string: '[{"id":1,"uuid":"73bb570d-59ee-4508-bde6-07bcf28d0c5d","first_name":"Dominick","last_name":"Dibbert","email":"dominick.dibbert@laa.gov.uk"},{"id":2,"uuid":"42f7d08b-7a44-40b5-a609-11d0bc155333","first_name":"Kanesha","last_name":"Torphy","email":"kanesha.torphy@laa.gov.uk"},{"id":3,"uuid":"7e9bfc8b-c547-49af-9555-e7dd1f8ce999","first_name":"Jake","last_name":"Harber","email":"jake.harber@laa.gov.uk"},{"id":4,"uuid":"8959dbde-72e1-4e46-86de-49fd396f6900","first_name":"Buck","last_name":"Rowe","email":"buck.rowe@laa.gov.uk"}]'
  recorded_at: Thu, 25 Apr 2024 11:39:49 GMT
- request:
    method: get
    uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search&sorting=last_submitted_at&status=unallocated&value_band_id=0
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"315ce493959e35909f888473e0cff8ab"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - 9b3ba3fc-89a2-402e-8681-1bc79c3eeb1c
      X-Runtime:
      - '0.018056'
      Content-Length:
      - '93'
    body:
      encoding: ASCII-8BIT
      string: '{"pagination":{"current_page":1,"total_pages":0,"total_count":0,"limit_value":25},"items":[]}'
  recorded_at: Thu, 25 Apr 2024 11:39:49 GMT
- request:
    method: get
    uri: http://localhost:3001/api/case_workers?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"7fc976d4e38b41fa95277d17497f0bd1"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - 917ec46d-3698-4758-b08f-ef27134237ea
      X-Runtime:
      - '0.012515'
      Content-Length:
      - '529'
    body:
      encoding: ASCII-8BIT
      string: '[{"id":1,"uuid":"73bb570d-59ee-4508-bde6-07bcf28d0c5d","first_name":"Dominick","last_name":"Dibbert","email":"dominick.dibbert@laa.gov.uk"},{"id":2,"uuid":"42f7d08b-7a44-40b5-a609-11d0bc155333","first_name":"Kanesha","last_name":"Torphy","email":"kanesha.torphy@laa.gov.uk"},{"id":3,"uuid":"7e9bfc8b-c547-49af-9555-e7dd1f8ce999","first_name":"Jake","last_name":"Harber","email":"jake.harber@laa.gov.uk"},{"id":4,"uuid":"8959dbde-72e1-4e46-86de-49fd396f6900","first_name":"Buck","last_name":"Rowe","email":"buck.rowe@laa.gov.uk"}]'
  recorded_at: Thu, 25 Apr 2024 11:39:50 GMT
- request:
    method: get
    uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search&sorting=last_submitted_at&status=allocated&value_band_id=0
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"2f8ba41b06426c916bbbe248ea214594"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - cde236c1-e3a8-48b2-95ed-157a211310cb
      X-Runtime:
      - '0.065967'
      Content-Length:
      - '1637'
    body:
      encoding: ASCII-8BIT
      string: '{"pagination":{"current_page":1,"total_pages":1,"total_count":1,"limit_value":25},"items":[{"id":1,"uuid":"0f29c124-5ed7-486f-b082-8945d747e46c","case_number":"T20160001","state":"allocated","type":"Claim::AdvocateClaim","last_submitted_at":"2024-04-25T11:39:48Z","total":0.0,"vat_amount":0.0,"opened_for_redetermination":false,"written_reasons_outstanding":false,"disk_evidence":false,"prosecution_evidence":null,"messages_count":0,"unread_messages_count":0,"external_user":{"id":1,"uuid":"d691f1ae-8c2e-4f79-b967-459bde753f2f","first_name":"Philip","last_name":"Hartmann","email":"shawn.veum@kris.test"},"defendants":[{"id":1,"uuid":"8d188831-05bf-471f-9e71-a0f862016937","first_name":"Gustavo","last_name":"Reinger","date_of_birth":"1994-04-25","representation_orders":[{"id":1,"uuid":"dfd96179-30fe-450c-8404-47bc5def55ea","maat_reference":"8181111","date":"2016-01-01"},{"id":2,"uuid":"460d1eaf-4f89-4854-8ac2-8abf04b0ddf2","maat_reference":"5361186","date":"2023-04-11"}]}],"case_type":{"id":69,"name":"Case
        Type 14","is_fixed_fee":false,"requires_cracked_dates":false,"requires_trial_dates":false,"allow_pcmh_fee_type":false,"requires_maat_reference":true,"requires_retrial_dates":false,"roles":["agfs","lgfs"],"fee_type_code":null},"injection_attempts":[],"case_workers":[{"id":3,"uuid":"7e9bfc8b-c547-49af-9555-e7dd1f8ce999","first_name":"Jake","last_name":"Harber","email":"jake.harber@laa.gov.uk"},{"id":1,"uuid":"73bb570d-59ee-4508-bde6-07bcf28d0c5d","first_name":"Dominick","last_name":"Dibbert","email":"dominick.dibbert@laa.gov.uk"}],"court":{"id":337,"code":"NWM-14","name":"Shanahan-Shanahan-14","court_type":"crown"}}]}'
  recorded_at: Thu, 25 Apr 2024 11:39:50 GMT
- request:
    method: get
    uri: http://localhost:3001/api/case_workers?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"7fc976d4e38b41fa95277d17497f0bd1"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - 6c3960d3-c092-41d2-9285-845e095b92e6
      X-Runtime:
      - '0.015844'
      Content-Length:
      - '529'
    body:
      encoding: ASCII-8BIT
      string: '[{"id":1,"uuid":"73bb570d-59ee-4508-bde6-07bcf28d0c5d","first_name":"Dominick","last_name":"Dibbert","email":"dominick.dibbert@laa.gov.uk"},{"id":2,"uuid":"42f7d08b-7a44-40b5-a609-11d0bc155333","first_name":"Kanesha","last_name":"Torphy","email":"kanesha.torphy@laa.gov.uk"},{"id":3,"uuid":"7e9bfc8b-c547-49af-9555-e7dd1f8ce999","first_name":"Jake","last_name":"Harber","email":"jake.harber@laa.gov.uk"},{"id":4,"uuid":"8959dbde-72e1-4e46-86de-49fd396f6900","first_name":"Buck","last_name":"Rowe","email":"buck.rowe@laa.gov.uk"}]'
  recorded_at: Thu, 25 Apr 2024 11:39:50 GMT
- request:
    method: get
    uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search=does%20not%20exist&sorting=last_submitted_at&status=allocated&value_band_id=0
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"3feecdec04d1e583461e019f816fe396"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - '09a7630a-aef0-4293-a0d1-df1d86cebc62'
      X-Runtime:
      - '0.021559'
      Content-Length:
      - '93'
    body:
      encoding: ASCII-8BIT
      string: '{"pagination":{"current_page":1,"total_pages":0,"total_count":0,"limit_value":25},"items":[]}'
  recorded_at: Thu, 25 Apr 2024 11:39:50 GMT
recorded_with: VCR 6.2.0