Esempio n. 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)])
Esempio n. 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})
     ])
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)