Skip to content

Commit

Permalink
Merge pull request #730 from ndw/send-mail-fixes
Browse files Browse the repository at this point in the history
Fixes for send-mail tests
  • Loading branch information
ndw authored Oct 12, 2024
2 parents d51244f + ae64bdf commit 7b69484
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion test-suite/tests/nw-send-mail-002.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
<t:info>
<t:title>p:send-mail-002</t:title>
<t:revision-history>
<t:revision>
<t:date>2024-10-12</t:date>
<t:author>
<t:name>Norm Tovey-Walsh</t:name>
</t:author>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Avoid content-type error if clearing the log fails.</p>
</t:description>
</t:revision>
<t:revision>
<t:date>2024-05-30</t:date>
<t:author>
Expand Down Expand Up @@ -30,7 +39,11 @@

<!-- Make sure that succeeded -->
<p:if test=".?code != 'OK'">
<p:error code="Q{{http://example.com/}}irrelevant"/>
<p:error code="Q{{http://example.com/}}irrelevant">
<p:with-input>
<p:empty/>
</p:with-input>
</p:error>
</p:if>

<p:send-mail parameters="map{'host':'localhost', 'port':1025}"
Expand Down
15 changes: 14 additions & 1 deletion test-suite/tests/nw-send-mail-003.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
<t:info>
<t:title>p:send-mail-003</t:title>
<t:revision-history>
<t:revision>
<t:date>2024-10-12</t:date>
<t:author>
<t:name>Norm Tovey-Walsh</t:name>
</t:author>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Avoid content-type error if clearing the log fails.</p>
</t:description>
</t:revision>
<t:revision>
<t:date>2024-05-30</t:date>
<t:author>
Expand Down Expand Up @@ -30,7 +39,11 @@

<!-- Make sure that succeeded -->
<p:if test=".?code != 'OK'">
<p:error code="Q{{http://example.com/}}irrelevant"/>
<p:error code="Q{{http://example.com/}}irrelevant">
<p:with-input>
<p:empty/>
</p:with-input>
</p:error>
</p:if>

<p:send-mail parameters="map{'host':'localhost', 'port':1025}"
Expand Down

0 comments on commit 7b69484

Please sign in to comment.