X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F14_control_at_submit.t;h=6688f53c97aa8d1f78d15aab202d3115098d376a;hb=759994a97a3e747305961b38eecd825d910e0c59;hp=7f0659f2cf00bd02c01833ce59e208d1b4db0975;hpb=29b09c6df08236eac458eeff27bbd393b20e0ac3;p=debbugs.git diff --git a/t/14_control_at_submit.t b/t/14_control_at_submit.t index 7f0659f..6688f53 100644 --- a/t/14_control_at_submit.t +++ b/t/14_control_at_submit.t @@ -1,7 +1,7 @@ # -*- mode: cperl;-*- # $Id: 05_mail.t,v 1.1 2005/08/17 21:46:17 don Exp $ -use Test::More tests => 118; +use Test::More tests => 122; use warnings; use strict; @@ -124,6 +124,39 @@ my $status = read_bug(bug=>1); ok($status->{subject} eq 'new title','bug 1 retitled'); ok($status->{severity} eq 'wishlist','bug 1 wishlisted'); +send_message(to => 'submit@bugs.something', + headers => [To => 'submit@bugs.something', + From => 'foo@bugs.something', + Subject => 'Testing submit at control', + ], + body => <2); +ok($status->{subject} eq 'this is a new title','bug 2 retitled at submit@ time'); + +send_message(to => '1@bugs.something', + headers => [To => '1@bugs.something', + From => 'foo@bugs.something', + Subject => 'Testing control at 1@bugs.something', + ], + body => <1); +ok($status->{subject} eq 'this is now the title of bug 1','bug 1 retitled at 1@ time'); + + + # now we're going to go through and methododically test all of the control commands. my @control_commands = ( @@ -131,7 +164,7 @@ my @control_commands = value => '-2', status_key => 'package', status_value => 'foo', - bug => '3', + bug => '4', }, severity_wishlist => {command => 'severity', value => 'wishlist', @@ -225,9 +258,9 @@ my @control_commands = status_value => '', }, merge => {command => 'merge', - value => '1 3', + value => '1 4', status_key => 'mergedwith', - status_value => '3', + status_value => '4', }, unmerge => {command => 'unmerge', value => '', @@ -235,9 +268,9 @@ my @control_commands = status_value => '', }, forcemerge => {command => 'forcemerge', - value => '3', + value => '4', status_key => 'mergedwith', - status_value => '3', + status_value => '4', }, unmerge => {command => 'unmerge', value => '',