Пример #1
0
 def test_recreate_deploy(self, mock_get, mock_update):
     mock_get.return_value = self.deployment
     mock_update.return_value = self.deployment
     api.recreate_deploy(self.deploy_uuid)
     mock_get.assert_called_once_with(self.deploy_uuid)
     mock_update.assert_has_calls(
         [mock.call(self.deploy_uuid, self.endpoints)])
Пример #2
0
 def test_recreate_deploy(self, mock_get, mock_update):
     mock_get.return_value = self.deployment
     mock_update.return_value = self.deployment
     api.recreate_deploy(self.deploy_uuid)
     mock_get.assert_called_once_with(self.deploy_uuid)
     mock_update.assert_has_calls([
         mock.call(self.deploy_uuid, {'endpoints': self.endpoints})
     ])
Пример #3
0
    def recreate(self, deploy_id=None):
        """Destroy and create an existing deployment.

        Unlike 'deployment destroy' command deployment database record will
        not be deleted, so deployment's UUID stay same.

        :param deploy_id: a UUID of the deployment
        """
        api.recreate_deploy(deploy_id)
Пример #4
0
    def recreate(self, deployment=None):
        """Destroy and create an existing deployment.

        Unlike 'deployment destroy' command deployment database record will
        not be deleted, so deployment's UUID stay same.

        :param deployment: a UUID or name of the deployment
        """
        api.recreate_deploy(deployment)
Пример #5
0
    def recreate(self, deploy_id=None):
        """Destroy and create an existing deployment.

        :param deploy_id: a UUID of the deployment
        """
        api.recreate_deploy(deploy_id)
Пример #6
0
    def recreate(self, deploy_id=None):
        """Destroy and create an existing deployment.

        :param deploy_id: a UUID of the deployment
        """
        api.recreate_deploy(deploy_id)