________________________________ test_relations ________________________________
Traceback (most recent call last):
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/runner.py", line 241, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call
yield from thread_exception_runtest_hook()
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook
yield
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call
yield from unraisable_exception_runtest_hook()
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook
yield
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield from self._runtest_for(item, "call")
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/logging.py", line 833, in _runtest_for
yield
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/capture.py", line 878, in pytest_runtest_call
return (yield)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
return (yield)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/runner.py", line 183, in pytest_runtest_call
raise e
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/runner.py", line 173, in pytest_runtest_call
item.runtest()
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/python.py", line 1632, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 182, in _multicall
return outcome.get_result()
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_result.py", line 100, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/_pytest/python.py", line 162, in pytest_pyfunc_call
result = testfunction(**testargs)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/pytest_asyncio/plugin.py", line 529, in inner
_loop.run_until_complete(task)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/work/dex-auth-operator/dex-auth-operator/tests/integration/test_charm.py", line 138, in test_relations
await ops_test.model.add_relation(OIDC_GATEKEEPER, DEX_AUTH_APP_NAME)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/juju/model.py", line 1485, in add_relation
return await self.relate(relation1, relation2)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/juju/model.py", line 1564, in relate
return await self.integrate(relation1, relation2)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/juju/model.py", line 1542, in integrate
result = await app_facade.AddRelation(endpoints=endpoints, via_cidrs=None)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/juju/client/facade.py", line 486, in wrapper
reply = await f(*args, **kwargs)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/juju/client/_client19.py", line 995, in AddRelation
reply = await self.rpc(msg)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/juju/client/facade.py", line 659, in rpc
result = await self.connection.rpc(msg, encoder=TypeEncoder)
File "/home/runner/work/dex-auth-operator/dex-auth-operator/.tox/integration/lib/python3.8/site-packages/juju/client/connection.py", line 672, in rpc
raise errors.JujuAPIError(result)
juju.errors.JujuAPIError: ambiguous relation: "oidc-gatekeeper dex-auth" could refer to "dex-auth:oidc-client oidc-gatekeeper:oidc-client"; "oidc-gatekeeper:dex-oidc-config dex-auth:dex-oidc-config"
Bug Description
As seen in https://github.com/canonical/dex-auth-operator/actions/runs/10199584862/job/28217035920?pr=217#step:5:2417, tests need to be updated
To Reproduce
Rerun dex CI
Environment
n/a
Relevant Log Output
Additional Context
No response