ooici/coi-services — pull request #355 by swarbhanu (2012-11-13 14:56:35+00:00)
Title: Fix demo transform

Fixes a bug in demo transform in which the wrong field was used when getting the preferred timestamp and using that value to fill an attribute for that purpose in DeviceStatusEvent. The earlier bug was due to a typo where the field name is extracted from the config for the transform.

Also fixes another bug regarding the origin of the events published. Now the origin of the events is set to the data_producer_id field of the granule, so that the producer of the stream (which is being checked for bad data) is the origin of the DeviceStatusEvent and the DeviceCommsEvent.

Test corroborate this and test passes. The test is here:

ion/process/data/transforms/test/test_transform_prototype.py:TransformPrototypeIntTest.test_demo_stream_granules_processing