mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-27 07:41:39 +01:00
cb1c1e586e
When a URL attachment is used a check is done if an InputStream to the URL can be opened to see if it is valid. Because the openHAB website was used the test would fail when the website has issues: ``` [ERROR] org.openhab.binding.mail.MailBuilderTest.withURLAttachmentReturnsMultiPartEmail Time elapsed: 10.391 s <<< ERROR! org.apache.commons.mail.EmailException: Invalid URL set:http://www.openhab.org at org.openhab.binding.mail.MailBuilderTest.withURLAttachmentReturnsMultiPartEmail(MailBuilderTest.java:77) Caused by: java.io.IOException: Server returned HTTP response code: 520 for URL: http://www.openhab.org at org.openhab.binding.mail.MailBuilderTest.withURLAttachmentReturnsMultiPartEmail(MailBuilderTest.java:77) ``` It will now use a file URL instead so it is no longer depends on a website. Signed-off-by: Wouter Born <github@maindrain.net> |
||
---|---|---|
.. | ||
main | ||
test |