Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_creation.yaml
@Florian Fuchs Florian Fuchs on 15 Apr 2015 18 KB testing: updated vcrpy yaml files
interactions:
- request:
    body: mail_host=example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode 'Duplicate email host: example.com'}
    headers:
      content-length: ['33']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 400, message: Bad Request}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "mail_host": "example.com", "description": null, "url_host": "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode '{"http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"",
        "entries": [{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "mail_host": "example.com", "description": null, "url_host": "example.com"}],
        "start": 0, "total_size": 1}'}
    headers:
      content-length: ['338']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "mail_host": "example.com", "description": null, "url_host": "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "mail_host": "example.com", "description": null, "url_host": "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "mail_host": "example.com", "description": null, "url_host": "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: fqdn_listname=a_new_list%40example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      location: ['http://localhost:9001/3.0/lists/a_new_list.example.com']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/a_new_list.example.com
  response:
    body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "list_id":
        "a_new_list.example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "list_name": "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count":
        0}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: subscriber=owner%40example.com&list_id=a_new_list.example.com&role=owner
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/members
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      location: ['http://localhost:9001/3.0/members/334326661981448123324369958221998209208']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config
  response:
    body: {string: !!python/unicode '{"request_address": "a_new_list-request@example.com",
        "web_host": "example.com", "digest_last_sent_at": null, "posting_address":
        "a_new_list@example.com", "reply_to_address": "", "digest_size_threshold":
        30.0, "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner":
        "none", "send_welcome_message": true, "fqdn_listname": "a_new_list@example.com",
        "http_etag": "\"2c436b0bb4e5b3e256976cceb9890f61e0324649\"", "admin_immed_notify":
        true, "owner_address": "a_new_list-owner@example.com", "convert_html_to_plaintext":
        false, "autorespond_requests": "none", "list_name": "a_new_list", "autoresponse_postings_text":
        "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to":
        false, "subscription_policy": "confirm", "description": "", "default_member_action":
        "defer", "bounces_address": "a_new_list-bounces@example.com", "join_address":
        "a_new_list-join@example.com", "autoresponse_grace_period": "90d", "anonymous_list":
        false, "default_nonmember_action": "hold", "acceptable_aliases": [], "advertised":
        true, "display_name": "A_new_list", "posting_pipeline": "default-posting-pipeline",
        "filter_content": false, "last_post_at": null, "leave_address": "a_new_list-leave@example.com",
        "no_reply_address": "noreply@example.com", "created_at": "2015-04-15T20:00:48.758263",
        "subject_prefix": "[A_new_list] ", "autoresponse_request_text": "", "administrivia":
        true, "reply_goes_to_list": "no_munging", "next_digest_number": 1, "collapse_alternatives":
        true, "archive_policy": "public", "welcome_message_uri": "mailman:///welcome.txt",
        "mail_host": "example.com", "autoresponse_owner_text": "", "allow_list_posts":
        true, "autorespond_postings": "none"}'}
    headers:
      content-length: ['1687']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: convert_html_to_plaintext=False&autoresponse_postings_text=&send_welcome_message=True&autorespond_requests=none&display_name=A_new_list&autorespond_postings=none&filter_content=False&reply_goes_to_list=no_munging&admin_notify_mchanges=False&default_member_action=defer&first_strip_reply_to=False&autoresponse_grace_period=90d&reply_to_address=&autoresponse_owner_text=&description=A+new+list.&archive_policy=public&anonymous_list=False&digest_size_threshold=30.0&advertised=True&autoresponse_request_text=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&include_rfc2369_headers=True&allow_list_posts=True&admin_immed_notify=True&subject_prefix=%5BA_new_list%5D+&autorespond_owner=none&collapse_alternatives=True&default_nonmember_action=hold&subscription_policy=confirm&posting_pipeline=default-posting-pipeline&administrivia=True
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'PATCH'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com
  response:
    body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "list_id":
        "a_new_list.example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "list_name": "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count":
        0}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"http_etag": "\"3759623188199673e6694d21f0003f1e64651318\"",
        "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/334326661981448123324369958221998209208",
        "email": "owner@example.com", "list_id": "a_new_list.example.com", "user":
        "http://localhost:9001/3.0/users/117102017827318954078289964069449293796",
        "role": "owner", "http_etag": "\"b5c1302df79cb187a3bc0a7898edb19a3ec4d008\"",
        "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id":
        334326661981448123324369958221998209208}], "start": 0, "total_size": 1}'}
    headers:
      content-length: ['573']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:48 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode '{"http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"",
        "entries": [{"fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com",
        "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", "list_name":
        "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count":
        0}], "start": 0, "total_size": 1}'}
    headers:
      content-length: ['434']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:49 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/a_new_list.example.com
  response:
    body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "list_id":
        "a_new_list.example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "list_name": "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count":
        0}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:49 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'DELETE'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Wed, 15 Apr 2015 20:00:49 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 204, message: No Content}
- request:
    body: mail_host=example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode 'Duplicate email host: example.com'}
    headers:
      content-length: ['33']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:49 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 400, message: Bad Request}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "mail_host": "example.com", "description": null, "url_host": "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:49 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "start": 0, "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Wed, 15 Apr 2015 20:00:49 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
version: 1