mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Fix failing license test after rhCreds was changed to subscriptionCreds
This commit is contained in:
@@ -7,7 +7,7 @@ describe('Controller: LicenseController', () => {
|
|||||||
ConfigService,
|
ConfigService,
|
||||||
ProcessErrors,
|
ProcessErrors,
|
||||||
config,
|
config,
|
||||||
rhCreds;
|
subscriptionCreds;
|
||||||
|
|
||||||
beforeEach(angular.mock.module('awApp'));
|
beforeEach(angular.mock.module('awApp'));
|
||||||
beforeEach(angular.mock.module('license', ($provide) => {
|
beforeEach(angular.mock.module('license', ($provide) => {
|
||||||
@@ -23,7 +23,7 @@ describe('Controller: LicenseController', () => {
|
|||||||
version: '3.1.0-devel'
|
version: '3.1.0-devel'
|
||||||
};
|
};
|
||||||
|
|
||||||
rhCreds = {
|
subscriptionCreds = {
|
||||||
password: '$encrypted$',
|
password: '$encrypted$',
|
||||||
username: 'foo',
|
username: 'foo',
|
||||||
}
|
}
|
||||||
@@ -33,21 +33,21 @@ describe('Controller: LicenseController', () => {
|
|||||||
$provide.value('ConfigService', ConfigService);
|
$provide.value('ConfigService', ConfigService);
|
||||||
$provide.value('ProcessErrors', ProcessErrors);
|
$provide.value('ProcessErrors', ProcessErrors);
|
||||||
$provide.value('config', config);
|
$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();
|
scope = $rootScope.$new();
|
||||||
ConfigService = _ConfigService_;
|
ConfigService = _ConfigService_;
|
||||||
ProcessErrors = _ProcessErrors_;
|
ProcessErrors = _ProcessErrors_;
|
||||||
config = _config_;
|
config = _config_;
|
||||||
rhCreds = _rhCreds_;
|
subscriptionCreds = _subscriptionCreds_;
|
||||||
LicenseController = $controller('licenseController', {
|
LicenseController = $controller('licenseController', {
|
||||||
$scope: scope,
|
$scope: scope,
|
||||||
ConfigService: ConfigService,
|
ConfigService: ConfigService,
|
||||||
ProcessErrors: ProcessErrors,
|
ProcessErrors: ProcessErrors,
|
||||||
config: config,
|
config: config,
|
||||||
rhCreds: rhCreds
|
subscriptionCreds: subscriptionCreds
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user