summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/docs/NEWS.rst13
-rw-r--r--src/mailman/rest/tests/test_domains.py17
2 files changed, 22 insertions, 8 deletions
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst
index 87efebd6d..68ebe6143 100644
--- a/src/mailman/docs/NEWS.rst
+++ b/src/mailman/docs/NEWS.rst
@@ -12,6 +12,14 @@ Here is a history of user visible changes to Mailman.
===============================
(2015-XX-XX)
+Architecture
+------------
+ * Domains now have a list of owners, which are ``IUser`` objects, instead of
+ the single ``contact_address`` they used to have. ``IUser`` objects now
+ also have a ``is_server_owner`` flag (defaulting to False) to indicate
+ whether they have superuser privileges. Give by Abhliash Raj, with fixes
+ and refinements by Barry Warsaw. (LP: #1423756)
+
Bugs
----
* Fix calculation of default configuration file to use when the ``$var_dir``
@@ -64,6 +72,11 @@ REST
``<api>/reserved/uids/orphans``. Note that *no guarantees* of API
stability will ever be made for resources under ``reserved``.
(LP: #1420083)
+ * Domains can now optionally be created with owners; domain owners can be
+ added after the fact; domain owners can be deleted. Also, users now have
+ an ``is_server_owner`` flag as part of their representation, which defaults
+ to False, and can be PUT and PATCH'd. Given by Abhilash Raj, with fixes
+ and refinements by Barry Warsaw. (LP: #1423756)
3.0 beta 5 -- "Carve Away The Stone"
diff --git a/src/mailman/rest/tests/test_domains.py b/src/mailman/rest/tests/test_domains.py
index f87ceb3cc..716ded580 100644
--- a/src/mailman/rest/tests/test_domains.py
+++ b/src/mailman/rest/tests/test_domains.py
@@ -43,14 +43,15 @@ class TestDomains(unittest.TestCase):
self._mlist = create_list('test@example.com')
def test_create_domains(self):
- """Test Create domain via REST"""
- data = {'mail_host': 'example.org',
- 'description': 'Example domain',
- 'base_url': 'http://example.org',
- 'owners': ['someone@example.com',
- 'secondowner@example.com',]}
- content, response = call_api('http://localhost:9001/3.0/domains',
- data, method="POST")
+ # Create a domain with owners.
+ data = dict(
+ mail_host='example.org',
+ description='Example domain',
+ base_url='http://example.org',
+ owner=['someone@example.com', 'secondowner@example.com'],
+ )
+ content, response = call_api(
+ 'http://localhost:9001/3.0/domains', data, method="POST")
self.assertEqual(response.status, 201)
def test_bogus_endpoint_extension(self):