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

Unit tests for servicesController broken

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • 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:

      PhantomJS 2.1.1 (Mac OS X 0.0.0) Services controller #sanitize sanitizes the service FAILED
      Error: Unexpected request: GET /admin-ng/resources/services/filters.json
      Expected POST /services/sanitize in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js (line 1227)
      $httpBackend@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1227:90
      sendReq@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9694:21
      serverRequest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9406:23
      processQueue@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13318:29
      /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13334:39
      $eval@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14570:28
      $digest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14386:36
      flush@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1525:45
      /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/modules/systems/controllers/servicesControllerSpec.js:39:31
      PhantomJS 2.1.1 (Mac OS X 0.0.0) Services controller #sanitize on success updates the table FAILED
      Error: Unexpected request: GET /admin-ng/resources/services/filters.json
      No more request expected in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js (line 1227)
      $httpBackend@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1227:90
      sendReq@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9694:21
      serverRequest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9406:23
      processQueue@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13318:29
      /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13334:39
      $eval@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14570:28
      $digest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14386:36
      flush@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1525:45
      /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/modules/systems/controllers/servicesControllerSpec.js:49:35

       Expected Results:
      No tests should fail
       
       Workaround (if any):
       





      Show
      Steps to reproduce: 1. Go to modules/matterhorn-admin-ui-ng/ 2. Run 'grunt'    Actual Results: PhantomJS 2.1.1 (Mac OS X 0.0.0) Services controller #sanitize sanitizes the service FAILED Error: Unexpected request: GET /admin-ng/resources/services/filters.json Expected POST /services/sanitize in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js (line 1227) $httpBackend@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1227:90 sendReq@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9694:21 serverRequest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9406:23 processQueue@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13318:29 /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13334:39 $eval@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14570:28 $digest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14386:36 flush@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1525:45 /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/modules/systems/controllers/servicesControllerSpec.js:39:31 PhantomJS 2.1.1 (Mac OS X 0.0.0) Services controller #sanitize on success updates the table FAILED Error: Unexpected request: GET /admin-ng/resources/services/filters.json No more request expected in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js (line 1227) $httpBackend@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1227:90 sendReq@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9694:21 serverRequest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:9406:23 processQueue@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13318:29 /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:13334:39 $eval@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14570:28 $digest@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/bower_components/angular/angular.js:14386:36 flush@/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/lib/angular/angular-mocks.js:1525:45 /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/modules/systems/controllers/servicesControllerSpec.js:49:35  Expected Results: No tests should fail    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