Commit Graph

8 Commits

Author SHA1 Message Date
James Page 9ad5cade97 Refactor to use Endpoint base class
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
2022-09-08 09:44:35 +01:00
Hervé Beraud 7902a74aac Use unittest.mock instead of mock
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
2020-06-09 17:13:03 +02:00
Jorge Niedbalski 9fbb2054ac Switch to stestr.
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>
2019-06-04 11:58:08 -04:00
Alex Kavanagh f6831363b7 Put back the unit tests and enable the ignore
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
2018-05-08 15:05:20 +01:00
James Page 1e91681243 Add support for verification process
Add required configuration files and generally update the interface
after move to OpenStack git/gerrit.

Change-Id: Id8717e9764187e2f16e9a2a3b6007779b7fb6468
2016-07-07 15:32:37 +01:00
Alex Kavanagh 881e13792e Revert "Add unit tests to the interface"
This reverts commit 133fedca1a.

Reverting this commit (temporarily) until charm-tools merge 193 is
released.
2016-04-29 16:48:26 +00:00
Alex Kavanagh 133fedca1a Add unit tests to the interface
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.
2016-04-22 16:09:04 +00:00
Liam Young 3ff28b362e initial version 2015-12-07 10:37:06 +00:00