From server-dev-return-73429-apmail-james-server-dev-archive=james.apache.org@james.apache.org Tue Sep 17 02:31:02 2019 Return-Path: X-Original-To: apmail-james-server-dev-archive@www.apache.org Delivered-To: apmail-james-server-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 3DEA3198BD for ; Tue, 17 Sep 2019 02:31:02 +0000 (UTC) Received: (qmail 17138 invoked by uid 500); 17 Sep 2019 02:31:01 -0000 Delivered-To: apmail-james-server-dev-archive@james.apache.org Received: (qmail 17098 invoked by uid 500); 17 Sep 2019 02:31:01 -0000 Mailing-List: contact server-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Developers List" Reply-To: "James Developers List" Delivered-To: mailing list server-dev@james.apache.org Received: (qmail 17073 invoked by uid 99); 17 Sep 2019 02:31:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2019 02:31:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A6177E300C for ; Tue, 17 Sep 2019 02:31:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 202E3780267 for ; Tue, 17 Sep 2019 02:31:00 +0000 (UTC) Date: Tue, 17 Sep 2019 02:31:00 +0000 (UTC) From: "Tellier Benoit (Jira)" To: server-dev@james.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (JAMES-2865) Implementing a MockSmtpServer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JAMES-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16931019#comment-16931019 ] Tellier Benoit commented on JAMES-2865: --------------------------------------- https://github.com/linagora/james-project/pull/2675 provided a fluent HTTP client written in Java thanks to the Feign library. > Implementing a MockSmtpServer > ----------------------------- > > Key: JAMES-2865 > URL: https://issues.apache.org/jira/browse/JAMES-2865 > Project: James Server > Issue Type: Sub-task > Components: Remote Delivery, tests > Reporter: Tellier Benoit > Assignee: Tellier Benoit > Priority: Major > Fix For: 3.5.0 > > > Draft version [here](https://github.com/linagora/james-project/pull/2545) > The MockSmtpServer should match these criteria: > - can return error responses > - can return error responses but actually still success to deliver the mails (450 - server retry and will be success) > - act like a simple smtp server if no mock setup, when mails come, save them in to the memory > Regarding the behaviour: > - a behaviour can be applied to all given commands or a subset of them (condition) > - A number of answer can be specified, after X answers the behaviour will no longer be applied. > You need to rely on the following POJOs : see JAMES-2853 -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org For additional commands, e-mail: server-dev-help@james.apache.org