From 96068a197b3d03026913feef34f76773c86af0b1 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Tue, 23 Oct 2018 13:46:51 +0200 Subject: [PATCH] Fix unit tests after charms.openstack update A recent commit to charms.openstack (78ce162e) added support for using Endpoint based interfaces rather than RelationBase based ones. Update unit test to work with this change. Add ``.stestr`` to ``.gitignore`` Change-Id: I5fc52738c1c7e918bd9213ef4714733d4e7dd934 --- .gitignore | 1 + unit_tests/test_lib_charm_openstack_designate_bind.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 62ff2fa..7e4eb0d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ layers interfaces __pycache__ .testrepository +.stestr diff --git a/unit_tests/test_lib_charm_openstack_designate_bind.py b/unit_tests/test_lib_charm_openstack_designate_bind.py index 08b7afe..260bcac 100644 --- a/unit_tests/test_lib_charm_openstack_designate_bind.py +++ b/unit_tests/test_lib_charm_openstack_designate_bind.py @@ -172,7 +172,7 @@ class TestBindAdapters(Helper): def test_bind_adapters(self): dns_backend_relation = mock.MagicMock() - dns_backend_relation.relation_name = 'dns_backend' + dns_backend_relation.endpoint_name = 'dns_backend' b = designate_bind.BindAdapters([dns_backend_relation]) # ensure that the relevant things got put on. self.assertTrue(