canonical / oidc-gatekeeper-operator

Charmed OIDC Gatekeeper
Apache License 2.0
1 stars 7 forks source link

`KeyError` on all unit tests after upgrading SDI #96

Closed DnPlas closed 1 year ago

DnPlas commented 1 year ago

It seems like the latest version of SDI breaks the charm and its unit tests, which end in failure with the following message:

  File "/home/runner/work/oidc-gatekeeper-operator/oidc-gatekeeper-operator/.tox/unit/lib/python3.8/site-packages/serialized_data_interface/sdi.py", line 347, in <dictcomp>
    if "schema" in metadata[endpoint_info.role.name][endpoint]
KeyError: 'peer'

For more information please refer to this unit test run, from #95