Skip to content

Commit

Permalink
test: Unskip consulsource_test GetMap.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Jun 3, 2023
1 parent 60b8886 commit 91604c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nss_cache/sources/consulsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ def _ReadEntry(self, name, entry):
return None

try:
s = entry.get("members", "").decode("utf-8")
members = s.split("\n")
except AttributeError:
members = entry.get("members", "").split("\n")
except (ValueError, TypeError):
members = [""]
Expand Down
1 change: 0 additions & 1 deletion nss_cache/sources/consulsource_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def setUp(self):
self.good_entry.members = ["foo", "bar"]
self.parser = consulsource.ConsulGroupMapParser()

@unittest.skip("broken")
def testGetMap(self):
group_map = group.GroupMap()
cache_info = StringIO(
Expand Down

0 comments on commit 91604c5

Please sign in to comment.