Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / MailmanUserTest.test_address_based_preferences.yaml
@Aurélien Bompard Aurélien Bompard on 13 Aug 2016 10 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/97']
    status: {code: 201, message: Created}
- request:
    body: !!python/unicode email=user2%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/97/addresses
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.0/addresses/user2@example.com']
    status: {code: 201, message: Created}
- request:
    body: !!python/unicode email=user3%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/97/addresses
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.0/addresses/user3@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/users/user@example.com
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner": false,
        "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/",
        "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}'}
    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/97/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag":
        "\"7a29504c1b8267310be35eae90bee20866a14ecb\"", "original_email": "user2@example.com",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com",
        "user": "http://localhost:9001/3.0/users/97"}, {"email": "user3@example.com",
        "http_etag": "\"7cc3d1ece8fa4cab6a35e21b24c2f888b71a5d61\"", "original_email":
        "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link":
        "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/97"},
        {"email": "user@example.com", "http_etag": "\"a2a666363c664044b0119a2db0b3148515af15d0\"",
        "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/97"}], "http_etag": "\"4682278e6e1d930d5a4b4fd6a35916f57086b7c4\"",
        "start": 0, "total_size": 3}'}
    headers:
      content-length: ['964']
      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":
        "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner": false,
        "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/",
        "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}'}
    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/97/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag":
        "\"7a29504c1b8267310be35eae90bee20866a14ecb\"", "original_email": "user2@example.com",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com",
        "user": "http://localhost:9001/3.0/users/97"}, {"email": "user3@example.com",
        "http_etag": "\"7cc3d1ece8fa4cab6a35e21b24c2f888b71a5d61\"", "original_email":
        "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link":
        "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/97"},
        {"email": "user@example.com", "http_etag": "\"a2a666363c664044b0119a2db0b3148515af15d0\"",
        "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/97"}], "http_etag": "\"4682278e6e1d930d5a4b4fd6a35916f57086b7c4\"",
        "start": 0, "total_size": 3}'}
    headers:
      content-length: ['964']
      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/addresses/user2@example.com/preferences
  response:
    body: {string: !!python/unicode '{"http_etag": "\"a7666bafbd297a58aa20fc67fed94dc5f29e696c\"",
        "self_link": "http://localhost:9001/3.0/addresses/user2@example.com/preferences"}'}
    headers:
      content-length: ['143']
      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/addresses/user3@example.com/preferences
  response:
    body: {string: !!python/unicode '{"http_etag": "\"a99bfb2af4f58fb94d3308d147de24937297fb32\"",
        "self_link": "http://localhost:9001/3.0/addresses/user3@example.com/preferences"}'}
    headers:
      content-length: ['143']
      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/addresses/user@example.com/preferences
  response:
    body: {string: !!python/unicode '{"http_etag": "\"c557a0cd7d400f67152a6f6e5e2c14858e632323\"",
        "self_link": "http://localhost:9001/3.0/addresses/user@example.com/preferences"}'}
    headers:
      content-length: ['142']
      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": "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner":
        false, "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/",
        "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}], "http_etag":
        "\"f4499d0805fd4b68130a14ca9261a083cee33540\"", "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/97
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
    status: {code: 204, message: No Content}
version: 1