ffc6a6c662
This helps us not break when transitioning to using the new version of snapstack, with the config files for each snap in the individual steps, rather than in a config step. Change-Id: I9b06966dcadffd92d4006c184067f744f57613aa
31 lines
914 B
Python
31 lines
914 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.
|
|
|
|
'''
|
|
# snapstack already installs glance. Override the 'glance'
|
|
# step with a locally built snap. neutron, nova, etc. will still
|
|
# be installed as normal from the store.
|
|
setup = Setup()
|
|
setup.add_steps(('glance', Step(
|
|
snap='glance',
|
|
script_loc='./tests/',
|
|
scripts=['glance.sh'],
|
|
files=[
|
|
'etc/snap-glance/glance/glance.conf.d/database.conf',
|
|
'etc/snap-glance/glance/glance.conf.d/keystone.conf'
|
|
],
|
|
snap_store=False)))
|
|
|
|
# Execute the snapstack tests
|
|
plan = Plan(base_setup=setup.steps())
|
|
plan.run()
|