
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: If845bff36ed7f1256a8150ec806a13d6fb08a05e
28 lines
830 B
Python
28 lines
830 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 keystone. Override the 'keystone'
|
|
# step with a locally built snap. neutron, nova, etc. will still
|
|
# be installed as normal from the store.
|
|
setup = Setup()
|
|
setup.add_steps(('keystone', Step(
|
|
snap='keystone',
|
|
script_loc='./tests/',
|
|
scripts=['keystone.sh'],
|
|
files=['etc/snap-keystone/keystone/keystone.conf.d/database.conf'],
|
|
snap_store=False)))
|
|
|
|
# Execute the snapstack tests
|
|
plan = Plan(base_setup=setup.steps())
|
|
plan.run()
|