fuel-library/fuel_test/cobbler/test_minimal.py
Sergey Vasilenko 4cc2af89e0 * rename site.pp files
* site_openstack_ha_minimal.pp with quantum on controller
2013-03-11 18:51:50 +04:00

27 lines
1.1 KiB
Python

import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.helpers import is_not_essex
from fuel_test.manifest import Manifest, Template
from fuel_test.settings import CREATE_SNAPSHOTS
class MinimalTestCase(CobblerTestCase):
def test_minimal(self):
Manifest().write_openstack_ha_minimal_manifest(
remote=self.remote(),
template=Template.minimal(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=True)
self.validate(self.nodes().controllers[:1], 'puppet agent --test')
self.validate(self.nodes().controllers[1:], 'puppet agent --test')
self.validate(self.nodes().controllers[:1], 'puppet agent --test')
#if is_not_essex():
# self.validate(self.nodes().quantums, 'puppet agent --test')
self.validate(self.nodes().computes, 'puppet agent --test')
if CREATE_SNAPSHOTS:
self.environment().snapshot('minimal', force=True)
if __name__ == '__main__':
unittest.main()