Ejemplo n.º 1
0
 def integration_07b_destroy_missing_array(self):
     # Re-run the same destroy.. this time it should fail
     actor = server_array.Destroy(
         'Destroy %s (should fail)' % self.template_array,
         {'array': self.clone_name})
     with self.assertRaises(exceptions.RecoverableActorFailure):
         yield actor.execute()
Ejemplo n.º 2
0
    def setUp(self, *args, **kwargs):
        super(TestDestroyActor, self).setUp()
        base.TOKEN = 'unittest'

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

        # Patch the actor so that we use the client mock
        self.client_mock = mock.MagicMock()
        self.actor._client = self.client_mock
Ejemplo n.º 3
0
 def integration_07b_destroy(self):
     actor = server_array.Destroy('Destroy %s' % self.template_array,
                                  {'array': self.clone_name})
     ret = yield actor.execute()
     self.assertEquals(ret, None)