コード例 #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)
コード例 #2
0
ファイル: deployment.py プロジェクト: kambiz-aghaiepour/rally
    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)
コード例 #3
0
ファイル: deployment.py プロジェクト: sahanasj/rally
    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)
コード例 #4
0
ファイル: deployment.py プロジェクト: linhuacheng/rally
    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)
コード例 #5
0
ファイル: test_api.py プロジェクト: marcoemorais/rally
 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)
コード例 #6
0
ファイル: test_api.py プロジェクト: SunilMamillapalli/rally
 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)