Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / TestAddressActivationLinkSuccess.test_add_address.yaml
@Simon Hanna Simon Hanna on 25 Mar 2016 10 KB Update tapes
interactions:
- request:
    body: email=ler%40example.org&password=None
    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/115']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/ler@example.org
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"ca09bdabdf856fa073ea1ae5572895517224498d\"", "is_server_owner": false,
        "password": "$6$rounds=717520$.ChQjyfXD5UB9xTz$wPfdG6HmoLPDJT0FIQ8InujMCwMgGWZvQk1Un7meow3kTgr4CuJqiz7viv3DuGsHVUDq5s.n4FqZFRLGMA0AV.",
        "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}'}
    headers:
      content-length: ['328']
      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/115/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "ler@example.org", "http_etag":
        "\"b7ad7895646e8b63fa9ee7923b8172f1a282deb0\"", "original_email": "ler@example.org",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/ler@example.org",
        "user": "http://localhost:9001/3.0/users/115"}], "http_etag": "\"8521b58d7a778d78806c7fdc7b21f3040ba4beb1\"",
        "start": 0, "total_size": 1}'}
    headers:
      content-length: ['386']
      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/ler@example.org
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"ca09bdabdf856fa073ea1ae5572895517224498d\"", "is_server_owner": false,
        "password": "$6$rounds=717520$.ChQjyfXD5UB9xTz$wPfdG6HmoLPDJT0FIQ8InujMCwMgGWZvQk1Un7meow3kTgr4CuJqiz7viv3DuGsHVUDq5s.n4FqZFRLGMA0AV.",
        "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}'}
    headers:
      content-length: ['328']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- 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/115/addresses
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      location: ['http://localhost:9001/3.0/addresses/les@example.org']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode POST
    uri: http://localhost:9001/3.0/addresses/les@example.org/verify
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/ler@example.org
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"ca09bdabdf856fa073ea1ae5572895517224498d\"", "is_server_owner": false,
        "password": "$6$rounds=717520$.ChQjyfXD5UB9xTz$wPfdG6HmoLPDJT0FIQ8InujMCwMgGWZvQk1Un7meow3kTgr4CuJqiz7viv3DuGsHVUDq5s.n4FqZFRLGMA0AV.",
        "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}'}
    headers:
      content-length: ['328']
      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/115/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "ler@example.org", "http_etag":
        "\"b7ad7895646e8b63fa9ee7923b8172f1a282deb0\"", "original_email": "ler@example.org",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/ler@example.org",
        "user": "http://localhost:9001/3.0/users/115"}, {"email": "les@example.org",
        "http_etag": "\"b83229a4ec906aa5d9634137eaf8547623053bc7\"", "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/115", "verified_on": "2005-08-01T07:49:23"}],
        "http_etag": "\"a280ed2b292b50ba2825562af33365c2074e6451\"", "start": 0, "total_size":
        2}'}
    headers:
      content-length: ['707']
      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/ler@example.org
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"ca09bdabdf856fa073ea1ae5572895517224498d\"", "is_server_owner": false,
        "password": "$6$rounds=717520$.ChQjyfXD5UB9xTz$wPfdG6HmoLPDJT0FIQ8InujMCwMgGWZvQk1Un7meow3kTgr4CuJqiz7viv3DuGsHVUDq5s.n4FqZFRLGMA0AV.",
        "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}'}
    headers:
      content-length: ['328']
      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/115/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "ler@example.org", "http_etag":
        "\"b7ad7895646e8b63fa9ee7923b8172f1a282deb0\"", "original_email": "ler@example.org",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/ler@example.org",
        "user": "http://localhost:9001/3.0/users/115"}, {"email": "les@example.org",
        "http_etag": "\"b83229a4ec906aa5d9634137eaf8547623053bc7\"", "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/115", "verified_on": "2005-08-01T07:49:23"}],
        "http_etag": "\"a280ed2b292b50ba2825562af33365c2074e6451\"", "start": 0, "total_size":
        2}'}
    headers:
      content-length: ['707']
      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/ler@example.org
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"ca09bdabdf856fa073ea1ae5572895517224498d\"", "is_server_owner": false,
        "password": "$6$rounds=717520$.ChQjyfXD5UB9xTz$wPfdG6HmoLPDJT0FIQ8InujMCwMgGWZvQk1Un7meow3kTgr4CuJqiz7viv3DuGsHVUDq5s.n4FqZFRLGMA0AV.",
        "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}'}
    headers:
      content-length: ['328']
      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/115
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"ca09bdabdf856fa073ea1ae5572895517224498d\"", "is_server_owner": false,
        "password": "$6$rounds=717520$.ChQjyfXD5UB9xTz$wPfdG6HmoLPDJT0FIQ8InujMCwMgGWZvQk1Un7meow3kTgr4CuJqiz7viv3DuGsHVUDq5s.n4FqZFRLGMA0AV.",
        "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}'}
    headers:
      content-length: ['328']
      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/115/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "ler@example.org", "http_etag":
        "\"b7ad7895646e8b63fa9ee7923b8172f1a282deb0\"", "original_email": "ler@example.org",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/ler@example.org",
        "user": "http://localhost:9001/3.0/users/115"}, {"email": "les@example.org",
        "http_etag": "\"b83229a4ec906aa5d9634137eaf8547623053bc7\"", "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/115", "verified_on": "2005-08-01T07:49:23"}],
        "http_etag": "\"a280ed2b292b50ba2825562af33365c2074e6451\"", "start": 0, "total_size":
        2}'}
    headers:
      content-length: ['707']
      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": "\"ca09bdabdf856fa073ea1ae5572895517224498d\"", "is_server_owner":
        false, "password": "$6$rounds=717520$.ChQjyfXD5UB9xTz$wPfdG6HmoLPDJT0FIQ8InujMCwMgGWZvQk1Un7meow3kTgr4CuJqiz7viv3DuGsHVUDq5s.n4FqZFRLGMA0AV.",
        "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}], "http_etag":
        "\"ed5c462bb0d03694b11c9eed48bfdb387be58451\"", "start": 0, "total_size":
        1}'}
    headers:
      content-length: ['433']
      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/115
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
    status: {code: 204, message: No Content}
version: 1