Skip to content

fix(fake): remove duplicate read_zone_conf that shadowed the working implementation - #218

Open
TomaszSwierszczCA wants to merge 1 commit into
Venafi:masterfrom
TomaszSwierszczCA:fix-fakeconnection-dup-read-zone-conf
Open

fix(fake): remove duplicate read_zone_conf that shadowed the working implementation#218
TomaszSwierszczCA wants to merge 1 commit into
Venafi:masterfrom
TomaszSwierszczCA:fix-fakeconnection-dup-read-zone-conf

Conversation

@TomaszSwierszczCA

Copy link
Copy Markdown
Contributor

FakeConnection defined read_zone_conf twice; Python keeps the later definition, so the bare raise NotImplementedError stub shadowed the working implementation. Any test_mode (fake-backend) enrollment that reads the zone config first - as the ansible collection does - failed with NotImplementedError.

Delete the duplicate stub so the real read_zone_conf (returning a populated ZoneConfig) is used. Adds offline regression tests covering read_zone_conf and the full fake enroll flow. Offline suite: 57 passed.

…impl

FakeConnection defined read_zone_conf twice; Python keeps the later
definition, so the bare `raise NotImplementedError` stub shadowed the
working implementation. Any test_mode (fake-backend) enrollment that
reads the zone config first - as the ansible collection does - failed
with NotImplementedError.

Delete the duplicate stub so the real read_zone_conf (returning a
populated ZoneConfig) is used. Adds offline regression tests covering
read_zone_conf and the full fake enroll flow. Offline suite: 57 passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant