From b9122e5acb32bf3a1f2ced1d548535b394ebf964 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 4 Jan 2018 10:43:18 -0500 Subject: fix tests that rely on error messages prior to bug 1426475 --- qa/t/lib/QA/Tests.pm | 2 +- qa/t/webservice_bug_add_attachment.t | 2 +- qa/t/webservice_bug_add_comment.t | 2 +- qa/t/webservice_bug_update.t | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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', -- cgit v1.2.3-24-g4f1b