summaryrefslogtreecommitdiffstats
path: root/xt/webservice/bug_attachments.t
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-08-31 06:24:56 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-08-31 06:24:56 +0200
commit1df1a7b9ea4cd24235d344d495a874de40624612 (patch)
treef09a46880a81149cceceabe466cec1ea74d8d80b /xt/webservice/bug_attachments.t
parent3a903b41328ba20072570c9fde36b332ea082f03 (diff)
downloadbugzilla-1df1a7b9ea4cd24235d344d495a874de40624612.tar.gz
bugzilla-1df1a7b9ea4cd24235d344d495a874de40624612.tar.xz
- Fixed API tests to work after login/email changes
Diffstat (limited to 'xt/webservice/bug_attachments.t')
-rw-r--r--xt/webservice/bug_attachments.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/xt/webservice/bug_attachments.t b/xt/webservice/bug_attachments.t
index 2150a0ff8..b0e6af81c 100644
--- a/xt/webservice/bug_attachments.t
+++ b/xt/webservice/bug_attachments.t
@@ -141,8 +141,8 @@ sub post_success {
"content_type is correct");
cmp_ok($attachment->{file_name}, '=~', qr/^\w+\.pl$/,
"filename is in the expected format");
- is($attachment->{creator}, $config->{QA_Selenium_TEST_user_login},
- "creator is the correct user");
+ is($attachment->{creator}, ($t->{user} ? $config->{QA_Selenium_TEST_user_login} : email_filter($config->{QA_Selenium_TEST_user_login})),
+ "creator is the correct user");
my $data = $attachment->{data};
$data = decode_base64($data) if $rpc->isa('QA::RPC::JSONRPC');
is($data, $content, 'data is correct');