Add gitreview, zuul config, fix coverage, fix lint

Partial-bug: #1838578

Change-Id: I3326067da7f36779462e951447ad61d2a8ccdd3c
This commit is contained in:
Ryan Beisner 2019-07-31 16:15:43 -05:00
parent f42749a083
commit 5a66794cca
No known key found for this signature in database
GPG Key ID: 952BACDC1C1A05FB
5 changed files with 24 additions and 7 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.opendev.org
port=29418
project=openstack/charm-masakari-monitors.git

4
.zuul.yaml Normal file
View File

@ -0,0 +1,4 @@
- project:
templates:
- python35-charm-jobs
- openstack-cover-jobs

View File

@ -1,4 +1,7 @@
# Requirements to build the charm
charm-tools
# This file is managed centrally. If you find the need to modify this as a
# one-off, please don't. Intead, consult #openstack-charms and ask about
# requirements management in charms via bot-control. Thank you.
#
# Build requirements
charm-tools>=2.4.4
simplejson
flake8

View File

@ -59,6 +59,6 @@ class MasakariMonitorsCharm(charms_openstack.charm.OpenStackCharm):
project='services')
def install(self):
#charmhelpers.fetch.add_source('ppa:corey.bryant/bionic-stein')
# TODO: Stop using the PPA; https://bugs.launchpad.net/bugs/1838578
charmhelpers.fetch.add_source('ppa:gnuoy/bionic-stein')
super(MasakariMonitorsCharm, self).install()

View File

@ -1,7 +1,13 @@
# Unit test requirements
# This file is managed centrally. If you find the need to modify this as a
# one-off, please don't. Intead, consult #openstack-charms and ask about
# requirements management in charms via bot-control. Thank you.
#
# Lint and unit test requirements
flake8>=2.2.4,<=2.4.1
os-testr>=0.4.1
stestr>=2.2.0
requests>=2.18.4
charms.reactive
mock>=1.2
nose>=1.3.7
coverage>=3.6
git+https://github.com/openstack/charms.openstack#egg=charms.openstack
git+https://github.com/openstack/charms.openstack.git#egg=charms.openstack