Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / TestProfile.test_post_invalid_form_shows_error_msg.yaml
@Simon Hanna Simon Hanna on 25 Mar 2016 3 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/2']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/2
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"1a3aa88b2cd54f39cc383ee227e4fe2e5523a053\"", "is_server_owner": false,
        "password": "$6$rounds=685646$vZ6MnU/EhjWMmJj/$bP0uRgUcHzu/94frX6.ypX7w2W4l/xz5zG.p3RqBiFeISayJc6G/U98lJjdsNVEGQEd6qBDK4w4rultFTkB9Z/",
        "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'}
    headers:
      content-length: ['324']
      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": "\"1a3aa88b2cd54f39cc383ee227e4fe2e5523a053\"", "is_server_owner":
        false, "password": "$6$rounds=685646$vZ6MnU/EhjWMmJj/$bP0uRgUcHzu/94frX6.ypX7w2W4l/xz5zG.p3RqBiFeISayJc6G/U98lJjdsNVEGQEd6qBDK4w4rultFTkB9Z/",
        "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}], "http_etag":
        "\"fd9719839d5a1e11cd4eef94074fa04a3fa79251\"", "start": 0, "total_size":
        1}'}
    headers:
      content-length: ['429']
      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/2
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
    status: {code: 204, message: No Content}
version: 1