snap-cinder/tests/snapstack_test.py
Pete Vander Giessen 7a98693095 Added snapstack tests.
We now test the cinder snap in the middle of a deployed openstack
environment.

Change-Id: I10ed4d67f96caef5623d9c411ef55946c0bfd216
2017-08-15 16:08:21 +00:00

29 lines
858 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.
'''
cinder = Step(
snap='cinder',
script_loc='./tests/',
scripts=['cinder.sh'],
files=[
'etc/snap-cinder/cinder/cinder/cinder.conf.d/database.conf',
'etc/snap-cinder/cinder/cinder/cinder.conf.d/keystone.conf',
'etc/snap-cinder/cinder/cinder/cinder.conf.d/lvm.conf',
'etc/snap-cinder/cinder/cinder/cinder.conf.d/rabbitmq.conf',
'etc/snap-cinder/tgt/conf.d/cinder_tgt.conf'
],
snap_store=False)
plan = Plan(tests=[cinder])
plan.run()