From: Dylan William Hardison Date: Thu, 4 Jan 2018 15:43:18 +0000 (-0500) Subject: fix tests that rely on error messages prior to bug 1426475 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9122e5acb32bf3a1f2ced1d548535b394ebf964;p=thirdparty%2Fbugzilla.git fix tests that rely on error messages prior to bug 1426475 --- diff --git a/qa/t/lib/QA/Tests.pm b/qa/t/lib/QA/Tests.pm index 89d382050..86fc06ad1 100644 --- a/qa/t/lib/QA/Tests.pm +++ b/qa/t/lib/QA/Tests.pm @@ -65,7 +65,7 @@ sub bug_tests { test => 'Logged-out user can access a public bug.', }, { args => { ids => [INVALID_BUG_ID] }, - error => "not a valid bug number", + error => "It does not seem like bug number", test => 'Passing invalid bug id returns error "Invalid Bug ID"', }, { args => { ids => [undef] }, diff --git a/qa/t/webservice_bug_add_attachment.t b/qa/t/webservice_bug_add_attachment.t index e2dad94c3..382e5bf99 100644 --- a/qa/t/webservice_bug_add_attachment.t +++ b/qa/t/webservice_bug_add_attachment.t @@ -69,7 +69,7 @@ my @tests = ( }, { user => 'unprivileged', args => attach(INVALID_BUG_ID), - error => "not a valid bug number", + error => "It does not seem like bug number", test => 'Passing invalid bug id returns error "Invalid Bug ID"', }, { user => 'unprivileged', diff --git a/qa/t/webservice_bug_add_comment.t b/qa/t/webservice_bug_add_comment.t index cf0310602..dafd088fb 100644 --- a/qa/t/webservice_bug_add_comment.t +++ b/qa/t/webservice_bug_add_comment.t @@ -48,7 +48,7 @@ my @tests = ( }, { user => 'unprivileged', args => { id => INVALID_BUG_ID, comment => TEST_COMMENT }, - error => "not a valid bug number", + error => "It does not seem like bug number", test => 'Passing invalid bug id returns error "Invalid Bug ID"', }, { user => 'unprivileged', diff --git a/qa/t/webservice_bug_update.t b/qa/t/webservice_bug_update.t index 097c506b6..4e3b9985b 100644 --- a/qa/t/webservice_bug_update.t +++ b/qa/t/webservice_bug_update.t @@ -522,7 +522,7 @@ sub invalid_values { see_also => [ { value => { add => [random_string(20)] }, - error => 'is not a valid bug number nor an alias', + error => 'It does not seem like bug number nor an alias to a bug.', test => 'random string fails in see_also' }, { value => { add => ['http://landfill.bugzilla.org/'] }, error => 'See Also URLs should point to one of',