ooici/coi-services — pull request #385 by swarbhanu (2012-12-04 16:51:03+00:00)
Title: Fixes UNS for end to end demo using ION-UX

Patches uns_utility_method.py so that it can calculate the subscribed users correctly when notification requests are made with event_subtype set as ''. Made the method more resilient against different kinds of inputs.

Added the option to pass an origin to the demo stream alert transform when it is launched by sending it a CFG.process.event_origin field. But this is just an option and it does NOT have to be passed the origin. The existing preload code will work fine. Existing tests which do not pass the origin will work fine too. When the origin is not being passed (as in several successfully running tests), the transform extracts the origin from the granule using its data_producer_id attribute.

The code now has been verified to atleast send fake emails using a fake smtp client to the correct user email address using the correct sender's address and with the right contents.

What is left is to try it from inside the UCSD VPN to send a real email using mail.oceanobservatories.org.