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

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

Change-Id: Ie0e7d3211b99ace8f5c19e2781d928f3a589acce
2017-07-27 18:57:28 +00:00

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