
* Drop gnocchi.conf from snap source in favor of installing it (as well as api-paste.ini and policy.json) from upstream source. * Drop gnocchi-api entry point in favor of using gnocchi-uwsgi and gnocchi-nginx to serve API requests. * Move to gnocchi 4.0.2 source. * Update gnocchi-snap.conf.j2 template with $SNAP_COMMON paths. * Add statsd and change-sack-size entry points and modify existing entry points to use snap-openstack. * Add test configs that enable a working gnocchi. * Enhance test scripts and split into separate scripts. * Bring back oslo-config-dirs.patch and upper constraints as they're needed for ocata.
34 lines
1023 B
Python
34 lines
1023 B
Python
import unittest
|
|
|
|
from snapstack import Plan, Setup, Step
|
|
|
|
class SnapstackTest(unittest.TestCase):
|
|
|
|
def test_snapstack(self):
|
|
'''
|
|
_test_snapstack_
|
|
|
|
Run a basic smoke test, utilizing our snapstack testing harness.
|
|
|
|
'''
|
|
gnocchi = Step(
|
|
snap='gnocchi',
|
|
script_loc='./tests/',
|
|
scripts=['gnocchi_setup.sh',
|
|
'gnocchi_daemons.sh',
|
|
'gnocchi_commands.sh'],
|
|
files=[
|
|
'etc/snap-gnocchi/gnocchi/gnocchi.conf.d/indexer.conf',
|
|
'etc/snap-gnocchi/gnocchi/gnocchi.conf.d/keystone.conf',
|
|
'etc/snap-gnocchi/gnocchi/gnocchi.conf.d/statsd.conf',
|
|
'etc/snap-gnocchi/gnocchi/gnocchi.conf.d/storage.conf',
|
|
],
|
|
snap_store=False)
|
|
|
|
gnocchi_cleanup = Step(
|
|
script_loc='./tests/',
|
|
scripts=['gnocchi_cleanup.sh'])
|
|
|
|
plan = Plan(tests=[gnocchi], test_cleanup=[gnocchi_cleanup])
|
|
plan.run()
|