snap-nova/tests/snapstack_test.py
Pete Vander Giessen abebe58008 Added snapstack test.
Tweaked tox.ini to invoke snapstack, and added test_snapstack.py to
tests dir.

Also added nova.sh to nova/tests, as part of the plan to move
those scripts from snap-test to the individual snaps.

Change-Id: If52e45bbef18a3ad7da993c93eb78f8aea687c5b
2017-07-27 18:58:36 +00:00

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