
Tweaked tox.ini to invoke snapstack, and added test_snapstack.py to tests dir. Also added glance.sh to glance/tests, as part of the plan to move those scripts from snap-test to the individual snaps. Change-Id: Ifbd53392c394ee36cf61d1a07dba825f7b7097b8
27 lines
740 B
Python
27 lines
740 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'],
|
|
snap_store=False)))
|
|
|
|
# Execute the snapstack tests
|
|
plan = Plan(base_setup=setup.steps())
|
|
plan.run()
|