Project

General

Profile

Actions

Bug #37563

closed

Angular tests failing on master-source

Added by Samir Jha 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tooling
Target version:
Fixed in Releases:
Found in Releases:

Description

I think we don't run angular tests on our github CI anymore hence the below errors were not caught. We have the below errors on master-source nightly pipeline where angular tests are run as part of pipeline.

HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController Sets a table. FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    Error: Declaration Location
        at window.inject.angular.mock.inject (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3422:25)
        at Suite.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:69:16)
        at /home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:1:1
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController verifies controller name FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController can apply errata with remote execution FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: $scope.applySelected is not a function
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:110:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController provide a way to regenerate applicability FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: $scope.calculateApplicability is not a function
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:120:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController should refresh errata with no options for current FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: $scope.refreshErrata is not a function
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:128:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController should refresh errata with all options for prior FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: $scope.refreshErrata is not a function
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:136:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController should refresh errata with no options for library  FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: $scope.refreshErrata is not a function
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:145:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController By default should have 3 options, with appropriate values FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    Expected 2 to be 3.
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:157:45)
    TypeError: Cannot read properties of undefined (reading 'environment_id')
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:158:27)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController By default should have 3 options, with appropriate values after setupOptions FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:166:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController If no prior, do not include it as an option FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:182:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0) Controller: ContentHostErrataController If already the default content view,, do not include it as an option FAILED
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at /home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4503
        at Object.then (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:37:50)
        at new <anonymous> (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:4403)
        at Object.instantiate (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5223:14)
        at $controller (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:11829:28)
        at /home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:2555:14
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:90:9)
        at Object.invoke (/home/vagrant/katello/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js:5208:19)
        at UserContext.WorkFn (/home/vagrant/katello/engines/bastion/.tmp/bower_components/angular-mocks/angular-mocks.js:3459:20)
    TypeError: Cannot read properties of undefined (reading 'name')
        at $scope.setupErrataOptions (/home/vagrant/katello/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js:9:2863)
        at UserContext.<anonymous> (/home/vagrant/katello/engines/bastion_katello/test/content-hosts/content/content-host-errata.controller.test.js:198:16)
HeadlessChrome 125.0.6422 (Linux 0.0.0): Executed 609 of 610 (11 FAILED) (skipped 1) (5.145 secs / 4.846 secs)
Warning: Task "karma:ci" failed. Use --force to continue.

Actions

Also available in: Atom PDF