def test_deploy(self, fake_LOG): args = [ 5, 'git://example.com/foo', 'new_app', '1-2-3-4', 'heroku', 'docker', 44 ] args = [77, 'created_image_id'] noop_handler.Handler().deploy(self.ctx, *args) message = 'Deploy %s %s' % tuple(args) fake_LOG.debug.assert_called_once_with(_("%s") % message)
def test_destroy(self, fake_LOG, fake_registry): fake_assembly = fakes.FakeAssembly() fake_registry.Assembly.get_by_id.return_value = fake_assembly args = [fake_assembly.id] noop_handler.Handler().destroy_assembly(self.ctx, *args) fake_assembly.destroy.assert_called_once_with(self.ctx) message = 'Destroy %s' % tuple(args) fake_LOG.debug.assert_called_once_with(_("%s") % message)
def test_echo(self, fake_LOG): noop_handler.Handler().echo({}, 'foo') fake_LOG.debug.assert_called_once_with(_('%s') % 'foo')
def test_deploy(self, fake_LOG): args = [77, 'created_image_id', [80]] noop_handler.Handler().deploy(self.ctx, *args) message = 'Deploy %s %s %s' % tuple(args) fake_LOG.debug.assert_called_once_with(_("%s") % message)