Uploaded image for project: 'Opencast'
  1. MH-11714

Fix unit test: Event controller #accessSave saves the event access

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects versions: 2.2.0
    • Fix versions: 2.2.2
    • Labels:
      None
    • Severity:
      Build Error
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. Go to modules/matterhorn-admin-ui-ng
      2. Run 'grunt'
       
       Actual Results:
      Besides others, the unit test for the event controller fails:

      PhantomJS 2.1.1 (Mac OS X 0.0.0) Event controller #accessSave saves the event access FAILED
      Expected spy save to have been called with [ Object({ id: '40518' }), Object({ acl: Object({ ace: [ Object({ action: 'read', allow: true, role: 'admin' }), Object({ action: 'write', allow: true, role: 'admin' }) ] }), override: true }) ] but actual calls were [ Object({ id: '40518' }), Object({ acl: Object({ ace: [ Object({ action: 'read', allow: true, role: 'admin' }), Object({ action: 'write', allow: true, role: 'admin' }) ] }), override: true }), Function, Function ].
      /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/modules/events/controllers/eventControllerSpec.js:269:66

       Expected Results:
      The unit test should work
       
       Workaround (if any):
       





      Show
      Steps to reproduce: 1. Go to modules/matterhorn-admin-ui-ng 2. Run 'grunt'    Actual Results: Besides others, the unit test for the event controller fails: PhantomJS 2.1.1 (Mac OS X 0.0.0) Event controller #accessSave saves the event access FAILED Expected spy save to have been called with [ Object({ id: '40518' }), Object({ acl: Object({ ace: [ Object({ action: 'read', allow: true, role: 'admin' }), Object({ action: 'write', allow: true, role: 'admin' }) ] }), override: true }) ] but actual calls were [ Object({ id: '40518' }), Object({ acl: Object({ ace: [ Object({ action: 'read', allow: true, role: 'admin' }), Object({ action: 'write', allow: true, role: 'admin' }) ] }), override: true }), Function, Function ]. /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/modules/events/controllers/eventControllerSpec.js:269:66  Expected Results: The unit test should work    Workaround (if any):  

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              staubesv Sven Stauber
              Reporter:
              staubesv Sven Stauber
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases