21 lines
687 B
Python
21 lines
687 B
Python
import unittest
|
|
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
|
|
from fuel_test.manifest import Manifest
|
|
from fuel_test.settings import OPENSTACK_SNAPSHOT, CREATE_SNAPSHOTS
|
|
|
|
|
|
class SimpleTestCase(CobblerTestCase):
|
|
def test_simple(self):
|
|
Manifest().write_openstack_simple_manifest(
|
|
remote=self.remote(),
|
|
ci=self.ci(),
|
|
controllers=self.nodes().controllers)
|
|
self.validate(
|
|
self.nodes().controllers + self.nodes().computes,
|
|
'puppet agent --test')
|
|
if CREATE_SNAPSHOTS:
|
|
self.environment().snapshot(OPENSTACK_SNAPSHOT, force=True)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|