def test_inmem_ok(self):
"""
- Inmem configuration 1.
+ Inmem configuration where all the configuration is just right
+ for loadzone to be sent to b10-auth (origin is the name received
+ by xfrin, filetype is sqlite3, type is memory and class is the
+ one received by xfrin).
"""
self._module_cc.config = [{'zones': [{'origin': 'example.org', 'filetype': 'sqlite3',
'file': 'data/inmem-xfrin.sqlite3'}],
def test_inmem_not_memory(self):
"""
- Inmem configuration 2.
+ Inmem configuration where the datasource type is not memory. In
+ this case, loadzone should not be sent to b10-auth.
"""
self._module_cc.config = [{'zones': [{'origin': 'example.org', 'filetype': 'sqlite3',
'file': 'data/inmem-xfrin.sqlite3'}],
def test_inmem_not_sqlite3(self):
"""
- Inmem configuration 3.
+ Inmem configuration where the datasource backing file is not of
+ type sqlite3. In this case, loadzone should not be sent to
+ b10-auth.
"""
self._module_cc.config = [{'zones': [{'origin': 'example.org', 'filetype': 'postgresql',
'file': 'data/inmem-xfrin.sqlite3'}],
def test_inmem_not_of_same_class(self):
"""
- Inmem configuration 4.
+ Inmem configuration where the datasource class does not match
+ the received class. In this case, loadzone should not be sent to
+ b10-auth.
"""
self._module_cc.config = [{'zones': [{'origin': 'example.org', 'filetype': 'sqlite3',
'file': 'data/inmem-xfrin.sqlite3'}],
def test_inmem_not_present(self):
"""
- Inmem configuration 5.
+ Inmem configuration where the origin does not match the received
+ name. In this case, loadzone should not be sent to b10-auth.
"""
self._module_cc.config = [{'zones': [{'origin': 'isc.org', 'filetype': 'sqlite3',
'file': 'data/inmem-xfrin.sqlite3'}],