dovecot-1.2-sieve: Testsuite: avoid using existing e-mail addres...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Tue Apr 20 02:16:30 EEST 2010


details:   http://hg.rename-it.nl/dovecot-1.2-sieve/rev/8c062f238053
changeset: 1250:8c062f238053
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Apr 20 01:16:18 2010 +0200
description:
Testsuite: avoid using existing e-mail addresses and domains in tests.

diffstat:

 tests/address.svtest                                          |  12 +-
 tests/comparators/core.svtest                                 |   4 +-
 tests/compile/errors/address-part.sieve                       |   2 +-
 tests/compile/errors/envelope.sieve                           |   8 +-
 tests/compile/errors/match-type.sieve                         |   2 +-
 tests/compile/errors/out-address.sieve                        |  12 +-
 tests/compile/errors/unsupported.sieve                        |   2 +-
 tests/compile/recover/commands-semicolon.sieve                |   4 +-
 tests/compile/redirect.sieve                                  |  38 +++---
 tests/compile/warnings/invalid-headers.sieve                  |   4 +-
 tests/control-structures.svtest                               |  16 +-
 tests/deprecated/notify/basic.svtest                          |   2 +-
 tests/deprecated/notify/denotify.svtest                       |  60 ++++++------
 tests/deprecated/notify/errors/options.sieve                  |   4 +-
 tests/deprecated/notify/execute/duplicates.sieve              |   4 +-
 tests/deprecated/notify/mailto.svtest                         |  46 ++++----
 tests/execute/actions.svtest                                  |   4 +-
 tests/execute/actions/fileinto.sieve                          |   2 +-
 tests/execute/actions/redirect.sieve                          |   4 +-
 tests/execute/mailstore.svtest                                |  12 +-
 tests/execute/smtp.svtest                                     |  22 ++--
 tests/exists.svtest                                           |   4 +-
 tests/extensions/body/basic.svtest                            |   8 +-
 tests/extensions/body/match-values.svtest                     |  12 +-
 tests/extensions/date/basic.svtest                            |   4 +-
 tests/extensions/date/date-parts.svtest                       |   4 +-
 tests/extensions/date/zones.svtest                            |   8 +-
 tests/extensions/enotify/basic.svtest                         |   2 +-
 tests/extensions/enotify/errors/from-mailto.sieve             |   2 +-
 tests/extensions/enotify/errors/options.sieve                 |  10 +-
 tests/extensions/enotify/errors/uri-mailto.sieve              |  12 +-
 tests/extensions/enotify/errors/uri.sieve                     |   2 +-
 tests/extensions/enotify/execute/duplicates.sieve             |   4 +-
 tests/extensions/enotify/mailto.svtest                        |  74 +++++++-------
 tests/extensions/enotify/notify_method_capability.svtest      |   4 +-
 tests/extensions/enotify/valid_notify_method.svtest           |   8 +-
 tests/extensions/envelope.svtest                              |  52 +++++-----
 tests/extensions/include/execute.svtest                       |   2 +-
 tests/extensions/include/included/rfc-ex1-mailing_lists.sieve |   4 +-
 tests/extensions/mailbox/execute.svtest                       |   8 +-
 tests/extensions/regex/basic.svtest                           |   8 +-
 tests/extensions/regex/errors/compile.sieve                   |   8 +-
 tests/extensions/regex/match-values.svtest                    |  12 +-
 tests/extensions/reject/execute.svtest                        |   4 +-
 tests/extensions/reject/execute/basic.sieve                   |   2 +-
 tests/extensions/reject/smtp.svtest                           |  12 +-
 tests/extensions/relational/basic.svtest                      |   8 +-
 tests/extensions/spamvirustest/spamtest.svtest                |   6 +-
 tests/extensions/spamvirustest/spamtestplus.svtest            |   2 +-
 tests/extensions/spamvirustest/virustest.svtest               |   2 +-
 tests/extensions/subaddress/basic.svtest                      |   8 +-
 tests/extensions/subaddress/config.svtest                     |   6 +-
 tests/extensions/subaddress/rfc.svtest                        |   4 +-
 tests/extensions/vacation/execute/action.sieve                |   2 +-
 tests/extensions/vacation/execute/no-handle.sieve             |   2 +-
 tests/extensions/vacation/message.svtest                      |  16 +-
 tests/extensions/vacation/smtp.svtest                         |  44 ++++----
 tests/extensions/vacation/utf-8.svtest                        |  16 +-
 tests/extensions/variables/basic.svtest                       |  10 +-
 tests/extensions/variables/match.svtest                       |  20 ++--
 tests/header.svtest                                           |   4 +-
 tests/match-types/contains.svtest                             |  16 +-
 tests/match-types/is.svtest                                   |   4 +-
 tests/match-types/matches.svtest                              |  39 +++----
 tests/multiscript/basic.svtest                                |   6 +-
 tests/multiscript/conflicts.svtest                            |   6 +-
 tests/multiscript/notify.sieve                                |   2 +-
 tests/testsuite.svtest                                        |  28 ++--
 68 files changed, 392 insertions(+), 393 deletions(-)

diffs (truncated from 2472 to 300 lines):

diff -r 464eae192a1e -r 8c062f238053 tests/address.svtest
--- a/tests/address.svtest	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/address.svtest	Tue Apr 20 01:16:18 2010 +0200
@@ -7,7 +7,7 @@
 
 test_set "message" text:
 From: stephan@
-To: @rename-it.nl
+To: @example.org
 Cc: nonsense
 Resent-To:
 Subject: Invalid addresses
@@ -21,7 +21,7 @@
 		test_fail ":localpart matched invalid address";
 	}	
 
-	if address :domain "to" "rename-it.nl" {
+	if address :domain "to" "example.org" {
 		test_fail ":domain matched invalid address";
 	}	
 
@@ -40,8 +40,8 @@
 
 test_set "message" text:
 From: stephan@
-To: nico at vestingbar.nl, @rename-it.nl
-Cc: stephan at rename-it.nl, nonsense
+To: nico at frop.example.com, @example.org
+Cc: stephan at example.org, nonsense
 Subject: Invalid addresses
 
 Test.
@@ -53,7 +53,7 @@
 		test_fail ":localpart matched invalid address";
 	}	
 
-	if address :is :domain "to" "rename-it.nl" {
+	if address :is :domain "to" "example.org" {
 		test_fail ":domain matched invalid address";
 	}	
 }
@@ -87,7 +87,7 @@
 
 test_set "message" text:
 From: SPAM at MYDOMAIN
-To: stephan at renane-it.nl
+To: stephan at example.org
 Subject: Spam
 
 Spam!
diff -r 464eae192a1e -r 8c062f238053 tests/comparators/core.svtest
--- a/tests/comparators/core.svtest	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/comparators/core.svtest	Tue Apr 20 01:16:18 2010 +0200
@@ -1,9 +1,9 @@
 require "vnd.dovecot.testsuite";
 
 test_set "message" text:
-From: stephan at rename-it.nl
+From: stephan at example.org
 Cc: frop at example.com
-To: test at dovecot.org
+To: test at dovecot.example.net
 X-A: This is a TEST header
 Subject: Test Message
 
diff -r 464eae192a1e -r 8c062f238053 tests/compile/errors/address-part.sieve
--- a/tests/compile/errors/address-part.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/errors/address-part.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -8,7 +8,7 @@
 if address :all :comparator "i;octet" :domain "from" "STEPHAN" {
 
 	# Duplicate address part (2)
-	if address :domain :localpart :comparator "i;octet" "from" "drunksnipers.com" {
+	if address :domain :localpart :comparator "i;octet" "from" "friep.example.com" {
 		keep;
 	}
 
diff -r 464eae192a1e -r 8c062f238053 tests/compile/errors/envelope.sieve
--- a/tests/compile/errors/envelope.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/errors/envelope.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -7,17 +7,17 @@
 require "envelope";
 
 # Not an error 
-if envelope :is "to" "frop at rename-it.nl" {
+if envelope :is "to" "frop at example.org" {
 }
 
 # Unknown envelope part (1)
-if envelope :is "frop" "frop at rename-it.nl" {
+if envelope :is "frop" "frop at example.org" {
 }
 
 # Not an error
-if envelope :is ["to","from"] "frop at rename-it.nl" {
+if envelope :is ["to","from"] "frop at example.org" {
 }
 
 # Unknown envelope part (2)
-if envelope :is ["to","frop"] "frop at rename-it.nl" {
+if envelope :is ["to","frop"] "frop at example.org" {
 }
diff -r 464eae192a1e -r 8c062f238053 tests/compile/errors/match-type.sieve
--- a/tests/compile/errors/match-type.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/errors/match-type.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -1,6 +1,6 @@
 require "comparator-i;ascii-numeric";
 
-if header :contains :comparator "i;ascii-numeric" "from" "drunksnipers.com" {
+if header :contains :comparator "i;ascii-numeric" "from" "friep.example.com" {
     keep;
 }
 
diff -r 464eae192a1e -r 8c062f238053 tests/compile/errors/out-address.sieve
--- a/tests/compile/errors/out-address.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/errors/out-address.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -5,23 +5,23 @@
 redirect "@wrong.example.com";
 redirect "error";
 redirect "error@";
-redirect "Stephan Bosch error at rename-it.nl";
-redirect "Stephan Bosch <error at rename-it.nl";
+redirect "Stephan Bosch error at example.org";
+redirect "Stephan Bosch <error at example.org";
 redirect " more error @  example.com  ";
 redirect "@";
 redirect "<>";
 redirect "Error <";
 redirect "Error <stephan";
 redirect "Error <stephan@";
-redirect "stephan at rename-it.nl,tss at iki.fi";
-redirect "stephan at rename-it.nl,%&^&!!~";
+redirect "stephan at example.org,tss at example.net";
+redirect "stephan at example.org,%&^&!!~";
 
 vacation :from "Error" "Ik ben er niet.";
 
 # Ok
 
-redirect "Ok Good <stephan at rename-it.nl>";
+redirect "Ok Good <stephan at example.org>";
 redirect "ok at example.com";
 redirect " more  @  example.com  ";
 
-vacation :from "good at voorbeeld.nl" "Ik ben weg!";
+vacation :from "good at voorbeeld.nl.example.com" "Ik ben weg!";
diff -r 464eae192a1e -r 8c062f238053 tests/compile/errors/unsupported.sieve
--- a/tests/compile/errors/unsupported.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/errors/unsupported.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -16,7 +16,7 @@
 
 set "comp" "i;ascii-numeric";
 
-if address :comparator "${comp}" "from" "stephan at rename-it.nl" {
+if address :comparator "${comp}" "from" "stephan at example.org" {
 	stop;
 }
 
diff -r 464eae192a1e -r 8c062f238053 tests/compile/recover/commands-semicolon.sieve
--- a/tests/compile/recover/commands-semicolon.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/recover/commands-semicolon.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -1,7 +1,7 @@
 keep;
 discard;
 keep
-redirect "frop at frop.nl";
+redirect "frop at nl.example.com";
 discard;
 keep
-redirect "frml at frop.nl";
+redirect "frml at nl.example.com";
diff -r 464eae192a1e -r 8c062f238053 tests/compile/redirect.sieve
--- a/tests/compile/redirect.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/redirect.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -1,23 +1,23 @@
 # Test various white space occurences
-redirect "stephan at rename-it.nl";
-redirect " stephan at rename-it.nl";
-redirect "stephan @rename-it.nl";
-redirect "stephan@ rename-it.nl";
-redirect "stephan at rename-it.nl ";
-redirect " stephan @ rename-it.nl ";
-redirect "Stephan Bosch<stephan at rename-it.nl>";
-redirect " Stephan Bosch<stephan at rename-it.nl>";
-redirect "Stephan Bosch <stephan at rename-it.nl>";
-redirect "Stephan Bosch< stephan at rename-it.nl>";
-redirect "Stephan Bosch<stephan @rename-it.nl>";
-redirect "Stephan Bosch<stephan@ rename-it.nl>";
-redirect "Stephan Bosch<stephan at rename-it.nl >";
-redirect "Stephan Bosch<stephan at rename-it.nl> ";
-redirect "  Stephan Bosch  <  stephan  @  rename-it.nl  > ";
+redirect "stephan at example.org";
+redirect " stephan at example.org";
+redirect "stephan @example.org";
+redirect "stephan@ example.org";
+redirect "stephan at example.org ";
+redirect " stephan @ example.org ";
+redirect "Stephan Bosch<stephan at example.org>";
+redirect " Stephan Bosch<stephan at example.org>";
+redirect "Stephan Bosch <stephan at example.org>";
+redirect "Stephan Bosch< stephan at example.org>";
+redirect "Stephan Bosch<stephan @example.org>";
+redirect "Stephan Bosch<stephan@ example.org>";
+redirect "Stephan Bosch<stephan at example.org >";
+redirect "Stephan Bosch<stephan at example.org> ";
+redirect "  Stephan Bosch  <  stephan  @  example.org  > ";
 
 # Test address syntax
-redirect "\"Stephan Bosch\"@rename-it.nl";
-redirect "Stephan.Bosch at rename-it.nl";
-redirect "Stephan.Bosch at ReNaMe-It.Nl";
-redirect "Stephan Bosch <stephan at rename-it.nl>";
+redirect "\"Stephan Bosch\"@example.org";
+redirect "Stephan.Bosch at eXamPle.oRg";
+redirect "Stephan.Bosch at example.org";
+redirect "Stephan Bosch <stephan at example.org>";
 
diff -r 464eae192a1e -r 8c062f238053 tests/compile/warnings/invalid-headers.sieve
--- a/tests/compile/warnings/invalid-headers.sieve	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/compile/warnings/invalid-headers.sieve	Tue Apr 20 01:16:18 2010 +0200
@@ -1,8 +1,8 @@
-if header "from:" "frop at rename-it.nl" {
+if header "from:" "frop at example.org" {
 	stop;
 }
 
-if address "from:" "frop at rename-it.nl" {
+if address "from:" "frop at example.org" {
 	stop;
 }
 
diff -r 464eae192a1e -r 8c062f238053 tests/control-structures.svtest
--- a/tests/control-structures.svtest	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/control-structures.svtest	Tue Apr 20 01:16:18 2010 +0200
@@ -1,8 +1,8 @@
 require "vnd.dovecot.testsuite";
 
 test_set "message" text:
-From: stephan at rename-it.nl
-To: test at dovecot.org
+From: stephan at example.org
+To: test at dovecot.example.net
 Subject: Test
 
 Test!
@@ -41,31 +41,31 @@
 }
 
 test "IF-address-true" {
-	if address :is "from" "stephan at rename-it.nl" {
+	if address :is "from" "stephan at example.org" {
 	} else {
 		test_fail "executed wrong alternative";
 	}
 }
 
 test "IF-address-false" {
-	if address :is "from" "tss at iki.fi" {
+	if address :is "from" "tss at example.net" {
 		test_fail "executed wrong alternative";
 	}
 }
 
 test "ELSEIF-address-true" {
-	if address :is "from" "tss at iki.fi" {
+	if address :is "from" "tss at example.net" {
 		test_fail "executed wrong alternative (if)";
-	} elsif address :is "from" "stephan at rename-it.nl" {
+	} elsif address :is "from" "stephan at example.org" {
 	} else {
 		test_fail "executed wrong alternative (else)";	
 	}
 }
 
 test "ELSEIF-address-false" {
-	if address :is "from" "tss at iki.fi" {
+	if address :is "from" "tss at example.net" {
 		test_fail "executed wrong alternative (if)";
-	} elsif address :is "to" "stephan at rename-it.nl" {
+	} elsif address :is "to" "stephan at example.org" {
 		test_fail "executed wrong alternative (elsif)";	
 	} else {
 	}
diff -r 464eae192a1e -r 8c062f238053 tests/deprecated/notify/basic.svtest
--- a/tests/deprecated/notify/basic.svtest	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/deprecated/notify/basic.svtest	Tue Apr 20 01:16:18 2010 +0200
@@ -7,5 +7,5 @@
 		:message "This is probably very important"
 		:low
 		:method "mailto" 
-		:options ["stephan at example.com", "stephan at rename-it.nl"];
+		:options ["stephan at example.com", "stephan at example.org"];
 }
diff -r 464eae192a1e -r 8c062f238053 tests/deprecated/notify/denotify.svtest
--- a/tests/deprecated/notify/denotify.svtest	Mon Apr 19 23:57:30 2010 +0200
+++ b/tests/deprecated/notify/denotify.svtest	Tue Apr 20 01:16:18 2010 +0200
@@ -7,8 +7,8 @@
  */
 
 test_set "message" text:


More information about the dovecot-cvs mailing list