From 3c1cc7fcef9b6ebb5aff5104f5ec1740e10f645c Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 26 Oct 2020 10:14:16 -0400 Subject: [PATCH] Fix failing license test after rhCreds was changed to subscriptionCreds --- awx/ui/test/spec/license/license.controller-test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/awx/ui/test/spec/license/license.controller-test.js b/awx/ui/test/spec/license/license.controller-test.js index 660e918e79..4c00a15546 100644 --- a/awx/ui/test/spec/license/license.controller-test.js +++ b/awx/ui/test/spec/license/license.controller-test.js @@ -7,7 +7,7 @@ describe('Controller: LicenseController', () => { ConfigService, ProcessErrors, config, - rhCreds; + subscriptionCreds; beforeEach(angular.mock.module('awApp')); beforeEach(angular.mock.module('license', ($provide) => { @@ -23,7 +23,7 @@ describe('Controller: LicenseController', () => { version: '3.1.0-devel' }; - rhCreds = { + subscriptionCreds = { password: '$encrypted$', username: 'foo', } @@ -33,21 +33,21 @@ describe('Controller: LicenseController', () => { $provide.value('ConfigService', ConfigService); $provide.value('ProcessErrors', ProcessErrors); $provide.value('config', config); - $provide.value('rhCreds', rhCreds); + $provide.value('subscriptionCreds', subscriptionCreds); })); - beforeEach(angular.mock.inject( ($rootScope, $controller, _ConfigService_, _ProcessErrors_, _config_, _rhCreds_) => { + beforeEach(angular.mock.inject( ($rootScope, $controller, _ConfigService_, _ProcessErrors_, _config_, _subscriptionCreds_) => { scope = $rootScope.$new(); ConfigService = _ConfigService_; ProcessErrors = _ProcessErrors_; config = _config_; - rhCreds = _rhCreds_; + subscriptionCreds = _subscriptionCreds_; LicenseController = $controller('licenseController', { $scope: scope, ConfigService: ConfigService, ProcessErrors: ProcessErrors, config: config, - rhCreds: rhCreds + subscriptionCreds: subscriptionCreds }); }));