airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-626) HTML Content does not show up when sending email with attachment
Date Tue, 15 Nov 2016 03:58:59 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15665976#comment-15665976
] 

ASF subversion and git services commented on AIRFLOW-626:
---------------------------------------------------------

Commit c6dd4d4578918364da1cd3d5655a8d41a65871b5 in incubator-airflow's branch refs/heads/master
from Siddharth Anand
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=c6dd4d4 ]

Revert "[AIRFLOW-626] HTML Content does not show up when sending email with attachment"

This reverts commit 55af3e04f8aa2062715370c8feec10308938715e.

Master is currently broken as shown on https://travis-ci.org/apache/incubator-airflow/jobs/175858834

======================================================================
FAIL: test_custom_backend (tests.EmailTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/mock/mock.py",
line 1305, in patched
    return func(*args, **keywargs)
  File "/home/travis/build/apache/incubator-airflow/tests/core.py", line 1927, in test_custom_backend
    send_email_test.assert_called_with('to', 'subject', 'content', files=None, dryrun=False,
cc=None, bcc=None)
  File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/mock/mock.py",
line 937, in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
  File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/six.py",
line 718, in raise_from
    raise value
AssertionError: Expected call: mock('to', 'subject', 'content', bcc=None, cc=None, dryrun=False,
files=None)
Actual call: mock('to', 'subject', 'content', bcc=None, cc=None, dryrun=False, files=None,
mime_subtype=u'mixed')


> HTML Content does not show up when sending email with attachment
> ----------------------------------------------------------------
>
>                 Key: AIRFLOW-626
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-626
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Ilya Rakoshes
>            Assignee: Ilya Rakoshes
>            Priority: Minor
>             Fix For: Airflow 1.8
>
>
> When the send_email function in airflow.utils is used to send an email with both an email
body in {{html_content}} and attachments in {{files}}, the email comes through without the
body. This impacts EmailOperator. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message