Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / TestProfile.test_post_valid_form_shows_success_message.yaml
@Yolande Amate Yolande Amate on 19 Apr 2016 5 KB Update tapes
interactions:
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/les@example.org
  response:
    body: {string: !!python/unicode 404 Not Found}
    headers:
      content-length: ['13']
      content-type: [application/json; charset=utf-8]
    status: {code: 404, message: Not Found}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/les@example.org
  response:
    body: {string: !!python/unicode 404 Not Found}
    headers:
      content-length: ['13']
      content-type: [application/json; charset=utf-8]
    status: {code: 404, message: Not Found}
- request:
    body: email=les%40example.org
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
    method: !!python/unicode POST
    uri: http://localhost:9001/3.0/users
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      location: ['http://localhost:9001/3.0/users/34']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/34
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"5cd50a95563331af2dc6b22c77423258f4025629\"", "is_server_owner": false,
        "password": "$6$rounds=692048$z/XmBc5wTRIOUnMq$76ov81e/l795odjZAhtsUqJ.Q5Qqg2jPQdGcFajp7lP21MT/k1RY8pgW6KzobvDXkRsFk8grz107eqvt.Tmzk1",
        "self_link": "http://localhost:9001/3.0/users/34", "user_id": 34}'}
    headers:
      content-length: ['326']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/new_address@example.org
  response:
    body: {string: !!python/unicode 404 Not Found}
    headers:
      content-length: ['13']
      content-type: [application/json; charset=utf-8]
    status: {code: 404, message: Not Found}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/les@example.org
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"5cd50a95563331af2dc6b22c77423258f4025629\"", "is_server_owner": false,
        "password": "$6$rounds=692048$z/XmBc5wTRIOUnMq$76ov81e/l795odjZAhtsUqJ.Q5Qqg2jPQdGcFajp7lP21MT/k1RY8pgW6KzobvDXkRsFk8grz107eqvt.Tmzk1",
        "self_link": "http://localhost:9001/3.0/users/34", "user_id": 34}'}
    headers:
      content-length: ['326']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/34/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "les@example.org", "http_etag":
        "\"90a74eff5a9d7a1fbb568b166642e9b630ffd155\"", "original_email": "les@example.org",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/les@example.org",
        "user": "http://localhost:9001/3.0/users/34"}], "http_etag": "\"f8037b34d17713bbeab087a17a536695ff6a28ab\"",
        "start": 0, "total_size": 1}'}
    headers:
      content-length: ['385']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/les@example.org
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"5cd50a95563331af2dc6b22c77423258f4025629\"", "is_server_owner": false,
        "password": "$6$rounds=692048$z/XmBc5wTRIOUnMq$76ov81e/l795odjZAhtsUqJ.Q5Qqg2jPQdGcFajp7lP21MT/k1RY8pgW6KzobvDXkRsFk8grz107eqvt.Tmzk1",
        "self_link": "http://localhost:9001/3.0/users/34", "user_id": 34}'}
    headers:
      content-length: ['326']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "start": 0, "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users
  response:
    body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
        "http_etag": "\"5cd50a95563331af2dc6b22c77423258f4025629\"", "is_server_owner":
        false, "password": "$6$rounds=692048$z/XmBc5wTRIOUnMq$76ov81e/l795odjZAhtsUqJ.Q5Qqg2jPQdGcFajp7lP21MT/k1RY8pgW6KzobvDXkRsFk8grz107eqvt.Tmzk1",
        "self_link": "http://localhost:9001/3.0/users/34", "user_id": 34}], "http_etag":
        "\"2511e6bae67e583db88c2b187179ce7f28fa893f\"", "start": 0, "total_size":
        1}'}
    headers:
      content-length: ['431']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode DELETE
    uri: http://localhost:9001/3.0/users/34
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
    status: {code: 204, message: No Content}
version: 1