We're updating the issue view to help you get more done. 

Admin UI Test: New Event API Resource assembles the metadata for SCHEDULE_MULTIPLE with DST change is failing

Steps to reproduce

When trying to run the front end tests I am getting:

[INFO] Running 'npm install --color=false' in /Users/adammckenzie/matterhorn/test/modules/matterhorn-admin-ui-ng
[ERROR] npm WARN package.json Matterhorn-Admin-UI@0.0.1 No repository field.
[ERROR] npm WARN package.json Matterhorn-Admin-UI@0.0.1 No README data
[ERROR] npm WARN package.json sass@0.5.0 No repository field.
[INFO]
[INFO] — frontend-maven-plugin:0.0.23:grunt (grunt build) @ matterhorn-admin-ui-ng —
[INFO] Running 'grunt build --no-color --skipTests=false' in /Users/adammckenzie/matterhorn/test/modules/matterhorn-admin-ui-ng
[INFO] Running "jshint:all" (jshint) task
[INFO] >> 354 files lint free.
[INFO]
[INFO] Running "karma:continuous" (karma) task
[INFO] INFO [karma]: Karma v0.12.28 server started at http://localhost:9876/
[INFO] INFO [launcher]: Starting browser PhantomJS
[INFO] INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket 6s1R_qgZObsLXjlBYw3e with id 98576230
WARN: 'Unable to parse JSON file: SyntaxError: Unable to parse JSON string'
WARN: 'Unable to parse JSON file: SyntaxError: Unable to parse JSON string'
PhantomJS 1.9.8 (Mac OS X) New Event API Resource assembles the metadata for SCHEDULE_MULTIPLE with DST change FAILED
[INFO] Expected { type : 'SCHEDULE_MULTIPLE', metadata :
{ start : '2016-03-25T14:00:00Z', device : '•mock• agent3', inputs : 'TRANSLATION.PATH.VIDEO', duration : '600000', end : '2016-03-28T14:10:00Z', rrule : 'FREQ=WEEKLY;BYDAY=MO,TU,WE;BYHOUR=14;BYMINUTE=0' }

} to equal { type : 'SCHEDULE_MULTIPLE', metadata :
{ start : '2016-03-25T14:00:00Z', end : '2016-03-28T06:10:00Z', duration : '600000', rrule : 'FREQ=WEEKLY;BYDAY=MO,TU,WE;BYHOUR=7;BYMINUTE=0', device : '•mock• agent3', inputs : 'TRANSLATION.PATH.VIDEO' }

}.
[INFO] Error: Expected { type : 'SCHEDULE_MULTIPLE', metadata :
{ start : '2016-03-25T14:00:00Z', device : '•mock• agent3', inputs : 'TRANSLATION.PATH.VIDEO', duration : '600000', end : '2016-03-28T14:10:00Z', rrule : 'FREQ=WEEKLY;BYDAY=MO,TU,WE;BYHOUR=14;BYMINUTE=0' }

} to equal { type : 'SCHEDULE_MULTIPLE', metadata :
{ start : '2016-03-25T14:00:00Z', end : '2016-03-28T06:10:00Z', duration : '600000', rrule : 'FREQ=WEEKLY;BYDAY=MO,TU,WE;BYHOUR=7;BYMINUTE=0', device : '•mock• agent3', inputs : 'TRANSLATION.PATH.VIDEO' }

}.
[INFO] at /Users/adammckenzie/matterhorn/test/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/resources/newEventResourceSpec.js:207
PhantomJS 1.9.8 (Mac OS X): Executed 812 of 823 (1 FAILED) (skipped 3) (8.222 secs / 7.923 secs)
[INFO] Warning: Task "karma:continuous" failed. Use --force to continue.

Status

Assignee

Xavier Butty

Reporter

Xavier Butty

Severity

Build Error

Tags (folksonomy)

Components

Fix versions

Affects versions

2.0.1

Priority

Major