Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_members_owner_by_owner.yaml
@Simon Hanna Simon Hanna on 8 Dec 2015 14 KB Fix tapes
interactions:
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com",
        "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"",
        "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link":
        "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}],
        "http_etag": "\"bec79f555a9603109e56934b9a8b84433343b083\"", "start": 0, "total_size":
        1}'}
    headers:
      content-length: ['454']
      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/lists/foo@example.com
  response:
    body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
        "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
        "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
        "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
    headers:
      content-length: ['294']
      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/su@example.com
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"881a0332a26390eb66a0e023b2cdf849f013c852\"", "is_server_owner": false,
        "self_link": "http://localhost:9001/3.0/users/829", "user_id": 829}'}
    headers:
      content-length: ['192']
      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/829/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag":
        "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"", "original_email": "su@example.com",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com",
        "user": "http://localhost:9001/3.0/users/829"}], "http_etag": "\"e1a302a3b82e34265138a09f98239db2434bfdca\"",
        "start": 0, "total_size": 1}'}
    headers:
      content-length: ['383']
      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/su@example.com
  response:
    body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"",
        "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23",
        "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user":
        "http://localhost:9001/3.0/users/829"}'}
    headers:
      content-length: ['278']
      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/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com",
        "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"",
        "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link":
        "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}],
        "http_etag": "\"bec79f555a9603109e56934b9a8b84433343b083\"", "start": 0, "total_size":
        1}'}
    headers:
      content-length: ['454']
      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/lists/foo@example.com
  response:
    body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
        "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
        "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
        "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
- request:
    body: role=owner&list_id=foo.example.com&subscriber=newowner%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/members
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      location: ['http://localhost:9001/3.0/members/1210']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
    method: !!python/unicode GET
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
        "delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
        "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com",
        "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210",
        "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com",
        "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"",
        "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link":
        "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}],
        "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size":
        2}'}
    headers:
      content-length: ['817']
      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/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
        "delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
        "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com",
        "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210",
        "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com",
        "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"",
        "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link":
        "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}],
        "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size":
        2}'}
    headers:
      content-length: ['817']
      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/lists/foo@example.com
  response:
    body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
        "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
        "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
        "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
    headers:
      content-length: ['294']
      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/su@example.com
  response:
    body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
        "\"881a0332a26390eb66a0e023b2cdf849f013c852\"", "is_server_owner": false,
        "self_link": "http://localhost:9001/3.0/users/829", "user_id": 829}'}
    headers:
      content-length: ['192']
      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/829/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag":
        "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"", "original_email": "su@example.com",
        "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com",
        "user": "http://localhost:9001/3.0/users/829"}], "http_etag": "\"e1a302a3b82e34265138a09f98239db2434bfdca\"",
        "start": 0, "total_size": 1}'}
    headers:
      content-length: ['383']
      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/su@example.com
  response:
    body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"",
        "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23",
        "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user":
        "http://localhost:9001/3.0/users/829"}'}
    headers:
      content-length: ['278']
      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/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
        "delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
        "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com",
        "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210",
        "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com",
        "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"",
        "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link":
        "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}],
        "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size":
        2}'}
    headers:
      content-length: ['817']
      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/lists/foo@example.com
  response:
    body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
        "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
        "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
        "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
    headers:
      content-length: ['294']
      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/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
        "delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
        "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com",
        "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210",
        "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com",
        "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"",
        "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link":
        "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}],
        "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size":
        2}'}
    headers:
      content-length: ['817']
      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/lists/foo@example.com/owner/newowner@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/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com",
        "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"",
        "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link":
        "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}],
        "http_etag": "\"bec79f555a9603109e56934b9a8b84433343b083\"", "start": 0, "total_size":
        1}'}
    headers:
      content-length: ['454']
      content-type: [application/json; charset=utf-8]
    status: {code: 200, message: OK}
version: 1