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
This commit is contained in:
parent
6f45fa2afb
commit
96068a197b
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ layers
|
||||
interfaces
|
||||
__pycache__
|
||||
.testrepository
|
||||
.stestr
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user