From 1df1a7b9ea4cd24235d344d495a874de40624612 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 31 Aug 2016 00:24:56 -0400 Subject: - Fixed API tests to work after login/email changes --- xt/webservice/bug_attachments.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xt/webservice/bug_attachments.t') 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'); -- cgit v1.2.3-24-g4f1b