diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 11:42:34 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 11:42:34 -0700 |
commit | 9a93c62367cdc60890def5fef1afb4e62306781c (patch) | |
tree | a05d518ef1bc5d22238f81df2b11dd7783cb1939 /xt | |
parent | Bug 601376: Test the __all__, __open__, and __closed__ arguments to (diff) | |
download | bugzilla-9a93c62367cdc60890def5fef1afb4e62306781c.tar.gz bugzilla-9a93c62367cdc60890def5fef1afb4e62306781c.tar.bz2 bugzilla-9a93c62367cdc60890def5fef1afb4e62306781c.zip |
Bug 600496: Make searching on [Bug creation] work again, by implementing
creation_ts for the changedafter and changedbefore operators in Search.pm.
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt')
-rw-r--r-- | xt/lib/Bugzilla/Test/Search/Constants.pm | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/Constants.pm b/xt/lib/Bugzilla/Test/Search/Constants.pm index abe01bbd1..7b06a0c95 100644 --- a/xt/lib/Bugzilla/Test/Search/Constants.pm +++ b/xt/lib/Bugzilla/Test/Search/Constants.pm @@ -420,13 +420,11 @@ use constant KNOWN_BROKEN => { 'changedbefore' => { CHANGED_BROKEN, 'attach_data.thedata' => { contains => [1] }, - creation_ts => { contains => [1,2,5] }, }, 'changedafter' => { 'attach_data.thedata' => { contains => [2,3,4] }, classification => { contains => [2,3,4] }, commenter => { contains => [2,3,4] }, - creation_ts => { contains => [2,3,4] }, delta_ts => { contains => [2,3,4] }, percentage_complete => { contains => [2,3,4] }, 'requestees.login_name' => { contains => [2,3,4] }, @@ -642,7 +640,6 @@ use constant BROKEN_NOT => { "attach_data.thedata" => { contains => [2, 3, 4] }, "classification" => { contains => [2, 3, 4] }, "commenter" => { contains => [2, 3, 4] }, - "creation_ts" => { contains => [2, 3, 4] }, "delta_ts" => { contains => [2, 3, 4] }, "percentage_complete" => { contains => [2, 3, 4] }, "requestees.login_name" => { contains => [2, 3, 4] }, @@ -650,7 +647,6 @@ use constant BROKEN_NOT => { }, changedbefore=> { CHANGED_BROKEN_NOT, - creation_ts => { contains => [1, 2, 5] }, work_time => { } }, changedby => { @@ -1096,7 +1092,7 @@ use constant TESTS => { { contains => [1], value => '<1-delta>', override => { CHANGED_OVERRIDE, - creation_ts => { contains => [1,2,5] }, + creation_ts => { contains => [1,5] }, blocked => { contains => [1,2] }, dependson => { contains => [1,3] }, longdesc => { contains => [1,5] }, @@ -1107,7 +1103,7 @@ use constant TESTS => { { contains => [2,3,4], value => '<2-delta>', override => { CHANGED_OVERRIDE, - creation_ts => { contains => [2,3,4] }, + creation_ts => { contains => [3,4] }, # We only change this for one bug, and it doesn't match. 'longdescs.isprivate' => { contains => [] }, # Same for everconfirmed. @@ -1200,8 +1196,8 @@ use constant INJECTION_BROKEN_FIELD => { # search => 1 means the Bugzilla::Search creation fails, but # field_ok contains fields that it does actually succeed for. use constant INJECTION_BROKEN_OPERATOR => { - changedafter => { search => 1 }, - changedbefore => { search => 1 }, + changedafter => { search => 1, field_ok => ['creation_ts'] }, + changedbefore => { search => 1, field_ok => ['creation_ts'] }, changedby => { search => 1 }, }; |