designate/designate/tests/unit
Jorge Niedbalski 3756fc51e7
Update zones masters using pool target masters.
This change enforces the update of the zone masters
for all zones that belongs to a particular pool, using
the pool's defined target(s) masters and forcing a update_zone
call.

This change also, moves the backend base class update_zone
method as an abstract method, allowing to each backend
implementation to create its own update logic. For the
case of bind9 its extended to allow running a rndc modzone
with the new given masters for the zone fixing the behavior
exposed on LP: #1879798.

Fixes-Bug: #1879798

Change-Id: I9dddd4130a0cbb29311eeb52e077e216c8c03f3a
Signed-off-by: Jorge Niedbalski <jorge.niedbalski@canonical.com>
2020-07-27 13:44:47 -06:00
..
agent Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
api Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
backend Update zones masters using pool target masters. 2020-07-27 13:44:47 -06:00
mdns Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
metrics Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
network_api Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
notification_handler Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
objects Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
producer Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
scheduler Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
sink Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
test_central Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
workers Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
README Removing unused code and updated unit tests readme 2019-05-25 13:36:04 -07:00
__init__.py Actually poll for zone deletes 2016-02-16 22:30:37 +00:00
test_conf.py Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
test_context.py Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
test_dnsutils.py Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
test_heartbeat_emitter.py Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
test_upgrade_checks.py Add designate-status command for upgrade checks 2018-12-07 21:53:17 +00:00
test_utils.py Use unittest.mock instead of third party mock 2020-05-29 11:35:40 -05:00
utils.py Remove unused code in utils and improved utils testing 2019-06-28 10:29:38 -07:00

README

This directory contains pure unit tests.

Examples:

tox -e py27 -- tests.unit
tox -e py37 -- tests.unit.backend