]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Fix stuff around mbox header changes
authorVeronika Kabatova <vkabatov@redhat.com>
Tue, 10 Apr 2018 14:30:44 +0000 (16:30 +0200)
committerStephen Finucane <stephen@that.guru>
Wed, 11 Apr 2018 14:11:52 +0000 (15:11 +0100)
commit785edf966812168c621de9841fa93d76e214cb3d
treeb07cdd7925cf7bf7529d88023fee1efdcbef8376
parent76b06cdcbbe59e035a37b1a794387bb0d59f06fb
Fix stuff around mbox header changes

Bundle tests got broken after the subject in mbox was changed from the
parsed version to the original one because the tests checked for the
presence of patch's name in the response. Fixing this turned out to be
a bit tricky since the tests check the mbox attachment and HTML
responses separately, so we need a string that would be present in both
(the intuitive idea of checking X-Patchwork-Id won't work well).

Add the patch's name to the content of the test patch so we can continue
testing things the same way, checking for the presence of patch's name.

Also add a releasenote notifying about the inclusion of the original
headers.

Reverts: b2a25342 ("Use parsed subject for mboxes")
Fixes: 01b9cbb9 ("Include all email headers in mboxes")
Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/utils.py
patchwork/views/utils.py
releasenotes/notes/mbox-headers-27e1f1bde9570e9f.yaml [new file with mode: 0644]