import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT

class SingleTestCase(CobblerTestCase):
    def test_single(self):
        Manifest().write_openstack_single_manifest(
            remote=self.remote(),
            ci=self.ci(),
        )
        self.validate(
            self.nodes().controllers,
            'puppet agent --test')
        self.environment().snapshot(OPENSTACK_SNAPSHOT, force=True)

if __name__ == '__main__':
    unittest.main()

import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT

class SingleTestCase(CobblerTestCase):
    def test_single(self):
        Manifest().write_openstack_single_manifest(
            remote=self.remote(),
            ci=self.ci(),
            quantum=False,
        )
        self.validate(
            self.nodes().controllers,
            'puppet agent --test')
        self.environment().snapshot(OPENSTACK_SNAPSHOT, force=True)

if __name__ == '__main__':
    unittest.main()

Switch off quantum at single node in test
Switch off quantum at single node in test

  import unittest
  from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
  from fuel_test.manifest import Manifest
  from fuel_test.settings import OPENSTACK_SNAPSHOT
  
  class SingleTestCase(CobblerTestCase):
      def test_single(self):
          Manifest().write_openstack_single_manifest(
              remote=self.remote(),
              ci=self.ci(),
+             quantum=False,
          )
          self.validate(
              self.nodes().controllers,
              'puppet agent --test')
          self.environment().snapshot(OPENSTACK_SNAPSHOT, force=True)
  
  if __name__ == '__main__':
      unittest.main()
  
Switch off quantum at single node in test
## Code Before:
import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT

class SingleTestCase(CobblerTestCase):
    def test_single(self):
        Manifest().write_openstack_single_manifest(
            remote=self.remote(),
            ci=self.ci(),
        )
        self.validate(
            self.nodes().controllers,
            'puppet agent --test')
        self.environment().snapshot(OPENSTACK_SNAPSHOT, force=True)

if __name__ == '__main__':
    unittest.main()

## Instruction:
Switch off quantum at single node in test
## Code After:
import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT

class SingleTestCase(CobblerTestCase):
    def test_single(self):
        Manifest().write_openstack_single_manifest(
            remote=self.remote(),
            ci=self.ci(),
            quantum=False,
        )
        self.validate(
            self.nodes().controllers,
            'puppet agent --test')
        self.environment().snapshot(OPENSTACK_SNAPSHOT, force=True)

if __name__ == '__main__':
    unittest.main()
