Exemplo n.º 1
0
    def destroy(self, deploy_id=None):
        """Destroy the deployment.

        Release resources that are allocated for the deployment. The
        Deployment, related tasks and their results are also deleted.

        :param deploy_id: a UUID of the deployment
        """
        api.destroy_deploy(deploy_id)
Exemplo n.º 2
0
    def destroy(self, deploy_id=None):
        """Destroy the deployment.

        Release resources that are allocated for the deployment. The
        Deployment, related tasks and their results are also deleted.

        :param deploy_id: a UUID of the deployment
        """
        api.destroy_deploy(deploy_id)
Exemplo n.º 3
0
    def destroy(self, deploy_id=None):
        """Destroy existing deployment.

        This will delete all containers, virtual machines, OpenStack instances
        or Fuel clusters created during Rally deployment creation. Also it will
        remove deployment record from Rally database.

        :param deploy_id: a UUID of the deployment
        """
        api.destroy_deploy(deploy_id)
Exemplo n.º 4
0
    def destroy(self, deployment=None):
        """Destroy existing deployment.

        This will delete all containers, virtual machines, OpenStack instances
        or Fuel clusters created during Rally deployment creation. Also it will
        remove deployment record from Rally database.

        :param deployment: a UUID or name of the deployment
        """
        api.destroy_deploy(deployment)
Exemplo n.º 5
0
 def test_destroy_deploy(self, mock_get, mock_update, mock_delete):
     mock_get.return_value = self.deployment
     mock_update.return_value = self.deployment
     api.destroy_deploy(self.deploy_uuid)
     mock_get.assert_called_once_with(self.deploy_uuid)
     mock_delete.assert_called_once_with(self.deploy_uuid)
Exemplo n.º 6
0
 def test_destroy_deploy(self, mock_get, mock_update, mock_delete):
     mock_get.return_value = self.deployment
     mock_update.return_value = self.deployment
     api.destroy_deploy(self.deploy_uuid)
     mock_get.assert_called_once_with(self.deploy_uuid)
     mock_delete.assert_called_once_with(self.deploy_uuid)