podemos-info/participa2

View on GitHub
decidim-module-crowdfundings/spec/fixtures/vcr/existing_person.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: http://mycensus:3001/api/v1/en/people/1@census
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/62.0.3202.94
        Safari/537.36
      User-Ip:
      - 127.0.0.1
      Accept-Encoding:
      - gzip, compressed
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"66fb5debfbf1b0b64ca78c7d3eb3d2f4"
      Cache-Control:
      - max-age=0, private, must-revalidate
      Set-Cookie:
      - ahoy_track=true; path=/; HttpOnly; SameSite=Lax
      - ahoy_visit=4270c4f9-d8cc-4258-be72-0c4c1ea452fb; path=/; expires=Tue, 24 Sep
        2019 16:26:41 -0000; HttpOnly; SameSite=Lax
      - ahoy_visitor=c47555c8-4010-4f31-9804-9f6e218eb947; path=/; expires=Fri, 24
        Sep 2021 12:26:41 -0000; HttpOnly; SameSite=Lax
      X-Request-Id:
      - e6316d51-9258-4d3a-aafd-90ae1438efe5
      X-Runtime:
      - '0.005759'
      X-Frame-Options:
      - DENY
      X-Content-Type-Options:
      - nosniff
      X-Xss-Protection:
      - 1; mode=block
      X-Download-Options:
      - noopen
      X-Permitted-Cross-Domain-Policies:
      - none
      Referrer-Policy:
      - origin-when-cross-origin
      Clear-Site-Data:
      - '"storage"'
      Content-Security-Policy:
      - 'default-src https: ''self'' data:; script-src ''self'' ''unsafe-inline'';
        style-src ''self'' ''unsafe-inline''; report-uri /csp-report'
      Connection:
      - close
      Transfer-Encoding:
      - chunked
    body:
      encoding: UTF-8
      string: '{"person_id":1,"external_ids":{"participa2_application-1":1},"scope_code":"ES-AN-GR-162","state":"enabled","membership_level":"follower","verification":"not_verified","phone_verification":"not_verified","first_name":"Daniel","last_name1":"Venegas","last_name2":"Sierra","document_type":"passport","document_id":"EPQ783477","document_scope_code":"XX","born_at":"1977-09-21","gender":"undisclosed","email":"cariaward@zieme.biz","phone":"0034850965203","address":"Bajada
        Leonor s/n. Esc. 926","address_scope_code":"ES-AN-GR-162","postal_code":"18241","additional_information":{},"membership_allowed?":true,"created_at":"2016-09-24T12:07:11.404Z"}'
    http_version:
  recorded_at: Tue, 24 Sep 2019 12:26:41 GMT
- request:
    method: get
    uri: http://mycensus:3001/api/v1/en/people/1@census
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/62.0.3202.94
        Safari/537.36
      User-Ip:
      - 127.0.0.1
      Accept-Encoding:
      - gzip, compressed
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"66fb5debfbf1b0b64ca78c7d3eb3d2f4"
      Cache-Control:
      - max-age=0, private, must-revalidate
      Set-Cookie:
      - ahoy_track=true; path=/; HttpOnly; SameSite=Lax
      - ahoy_visit=379d7db2-9d5e-47ca-8097-85db16192f92; path=/; expires=Tue, 24 Sep
        2019 16:27:15 -0000; HttpOnly; SameSite=Lax
      - ahoy_visitor=9c44a3a0-0e10-4436-a664-96b4ae1d73c7; path=/; expires=Fri, 24
        Sep 2021 12:27:15 -0000; HttpOnly; SameSite=Lax
      X-Request-Id:
      - 3d3fcee5-3d3f-40f0-b0fa-703713a0e74c
      X-Runtime:
      - '0.005401'
      X-Frame-Options:
      - DENY
      X-Content-Type-Options:
      - nosniff
      X-Xss-Protection:
      - 1; mode=block
      X-Download-Options:
      - noopen
      X-Permitted-Cross-Domain-Policies:
      - none
      Referrer-Policy:
      - origin-when-cross-origin
      Clear-Site-Data:
      - '"storage"'
      Content-Security-Policy:
      - 'default-src https: ''self'' data:; script-src ''self'' ''unsafe-inline'';
        style-src ''self'' ''unsafe-inline''; report-uri /csp-report'
      Connection:
      - close
      Transfer-Encoding:
      - chunked
    body:
      encoding: UTF-8
      string: '{"person_id":1,"external_ids":{"participa2_application-1":1},"scope_code":"ES-AN-GR-162","state":"enabled","membership_level":"follower","verification":"not_verified","phone_verification":"not_verified","first_name":"Daniel","last_name1":"Venegas","last_name2":"Sierra","document_type":"passport","document_id":"EPQ783477","document_scope_code":"XX","born_at":"1977-09-21","gender":"undisclosed","email":"cariaward@zieme.biz","phone":"0034850965203","address":"Bajada
        Leonor s/n. Esc. 926","address_scope_code":"ES-AN-GR-162","postal_code":"18241","additional_information":{},"membership_allowed?":true,"created_at":"2016-09-24T12:07:11.404Z"}'
    http_version:
  recorded_at: Tue, 24 Sep 2019 12:27:15 GMT
recorded_with: VCR 4.0.0