You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2008/12/01 23:30:00 UTC

svn commit: r722266 - in /james/server/trunk/build-tools: smoke.xml smtp.mpt

Author: rdonkin
Date: Mon Dec  1 14:29:59 2008
New Revision: 722266

URL: http://svn.apache.org/viewvc?rev=722266&view=rev
Log:
Very basic SMTP smoke test

Added:
    james/server/trunk/build-tools/smtp.mpt
Modified:
    james/server/trunk/build-tools/smoke.xml

Modified: james/server/trunk/build-tools/smoke.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/smoke.xml?rev=722266&r1=722265&r2=722266&view=diff
==============================================================================
--- james/server/trunk/build-tools/smoke.xml (original)
+++ james/server/trunk/build-tools/smoke.xml Mon Dec  1 14:29:59 2008
@@ -29,8 +29,9 @@
 		<echo>This is a library containing macros required for smoke tests.</echo>
 	</target>
  
-    <macrodef name='TestProtocol'>
+    <macrodef name='TestProtocol'>   
         <attribute name='port'/>
+        <!-- Use simple convention that script is named from protocol -->   
         <attribute name='name'/>
         <sequential>
             <mpt:mpt port='@{port}' script='../build-tools/@{name}.mpt'>
@@ -42,7 +43,7 @@
 C: root
 S: Welcome root. HELP for a list of commands
 C: adduser user passwd
-S: User user added
+S: User user a.*
 </addUser>
             </mpt:mpt>               
         </sequential>   
@@ -60,6 +61,7 @@
             </taskdef>  
             
             <TestProtocol port='10043' name='imap'/>
+            <TestProtocol port='10025' name='smtp'/>   
         </sequential>   
     </macrodef>   
         

Added: james/server/trunk/build-tools/smtp.mpt
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/smtp.mpt?rev=722266&view=auto
==============================================================================
--- james/server/trunk/build-tools/smtp.mpt (added)
+++ james/server/trunk/build-tools/smtp.mpt Mon Dec  1 14:29:59 2008
@@ -0,0 +1,23 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+S: 220 localhost. SMTP Server \(JAMES SMTP Server .*
+C: HELO example.org
+S: 250 localhost. Hello example.org .*
+C: QUIT
+S: 221 2.0.0 localhost. Service closing transmission channel
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org