We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0714c96 commit 6806521Copy full SHA for 6806521
1 file changed
tests/base.py
@@ -5,6 +5,7 @@
5
import uuid
6
7
import consulate
8
+from consulate import exceptions
9
10
with open('testing/consul.json', 'r') as handle:
11
CONSUL_CONFIG = json.load(handle)
@@ -43,3 +44,12 @@ def tearDown(self):
43
44
services = self.consul.agent.services()
45
for name in services:
46
self.consul.agent.service.deregister(services[name]['ID'])
47
+
48
+ for acl in self.consul.acl.list():
49
+ if acl['ID'] == CONSUL_CONFIG['acl_master_token']:
50
+ continue
51
+ try:
52
+ uuid.UUID(acl['ID'])
53
+ self.consul.acl.destroy(acl['ID'])
54
+ except (ValueError, exceptions.ConsulateException):
55
+ pass
0 commit comments