Fix Basic_22 robot test 00/12800/4
authorPatricia Reinoso <patricia.reinoso@canonical.com>
Wed, 4 Jan 2023 10:40:10 +0000 (10:40 +0000)
committerPatricia Reinoso <patricia.reinoso@canonical.com>
Thu, 5 Jan 2023 12:22:54 +0000 (12:22 +0000)
commita07f69539ffcb24fd44371960be23ab9e4a32573
treeedefca3ae6308f8b268eeca8f1f7c6e664a73975
parent085942e581b846f59ac6cb94b0e6ff72663d86e2
Fix Basic_22 robot test

When adding a juju relation that already exists
a JujuAPIError exception is raised.

The "already exists" message is contained in
JujuAPIError.error_code field.

Exception is handle in an except block and
is not propagated.

Change-Id: I0ac0d875cb9580959a474e486595144473873d24
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
n2vc/libjuju.py
n2vc/tests/unit/test_libjuju.py