Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml
@Aurélien Bompard Aurélien Bompard on 13 Aug 2016 6 KB Update tapes
interactions:
- request:
    body: !!python/unicode mail_host=example.com
    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/domains
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.0/domains/example.com']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
    headers:
      content-length: ['172']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode fqdn_listname=foo%40example.com
    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/lists
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.0/lists/foo.example.com']
    status: {code: 201, message: Created}
- request:
    body: !!python/unicode email=user%40example.com
    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']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.0/users/100']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/users/user@example.com
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner": false,
        "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21",
        "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}'}
    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/100/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
        "\"f13ceac639ac96d0e9f54501e07eb93ab2f48181\"", "original_email": "user@example.com",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
        "user": "http://localhost:9001/3.0/users/100"}], "http_etag": "\"c028a6fe3b7c96610d38a3578a399ba2929e3625\"",
        "start": 0, "total_size": 1}'}
    headers:
      content-length: ['389']
      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/user@example.com
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner": false,
        "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21",
        "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}'}
    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/100/preferences
  response:
    body: {string: !!python/unicode '{"http_etag": "\"ecbc0ceb3e77f161c66493500183068369630cd3\"",
        "self_link": "http://localhost:9001/3.0/users/100/preferences"}'}
    headers:
      content-length: ['125']
      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 '{"entries": [{"description": null, "http_etag":
        "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
        "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag":
        "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size":
        1}'}
    headers:
      content-length: ['277']
      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/domains/example.com
  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
  response:
    body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
        "http_etag": "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner":
        false, "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21",
        "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}], "http_etag":
        "\"54b5f0bf9e8cbf1caa56e2d3d8d0c638f3364e73\"", "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/100
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
    status: {code: 204, message: No Content}
version: 1