The RelationBase class has been deprecated for some time and
provides no support for interaction with the application data
bag.
Migrate requires interface to Endpoint base class and refactor
as needed.
Change-Id: I82fe7df6c7c3658dd334a830442f1dcbd1e7d7e4
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.
Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I8ca08483bf40a3092275d5dd0458951a64f239a1
CI is broken due to a bug [0] reported
in testr.
Following approach used in keystone and switching
to stestr instead of testr.
[0] https://review.opendev.org/#/c/662582/
[1] d1e3a7845d
Change-Id: I108b4d7b4c4f20f4b077077528f07f9447747a48
Signed-off-by: Jorge Niedbalski <jorge.niedbalski@canonical.com>
This adds back in the unit tests that were removed due to charm-tools
issue #192 [1] where the ignore option was 'ignored' by charm-tools.
This meant that the unit tests could not be ignored, and they ended
up in the built charm which then failed.
[1] https://github.com/juju/charm-tools/issues/192
Change-Id: Idbde830cac9ddc8ee3622fa6b7fd8a88e81e2811
Add required configuration files and generally update the interface
after move to OpenStack git/gerrit.
Change-Id: Id8717e9764187e2f16e9a2a3b6007779b7fb6468
This adds unit tests to the interface-keystone and provides ostestr
support, and a makefile to allow easy 'make lint' and 'make test'
commands. All tests are performed in tox environments. At present this
is py27.