Ejemplo n.º 1
0
    def test_requirements(self):

        with self.assertRaises(exceptions.InvalidOptions):
            # Bad string passed in as count
            server_array.Launch('Unit test', {
                'array': 'unit test array',
                'count': 'foo'
            })
Ejemplo n.º 2
0
 def integration_05b_launch(self):
     # Launch the machines and wait until they boot
     actor = server_array.Launch('Launch %s' % self.clone_name, {
         'array': self.clone_name,
         'enable': True,
         'count': 2
     })
     ret = yield actor.execute()
     self.assertEquals(ret, None)
Ejemplo n.º 3
0
    def setUp(self, *args, **kwargs):
        super(TestLaunchActor, self).setUp()
        base.TOKEN = 'unittest'

        # Create the actor
        self.actor = server_array.Launch(
            'Launch',
            {'array': 'unittestarray',
             'enable': True})

        # Patch the actor so that we use the client mock
        self.client_mock = mock.MagicMock()
        self.actor._client = self.client_mock