mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix core ECM BPM Url configuration
This commit is contained in:
@@ -216,7 +216,7 @@ describe('AlfrescoAuthentication', () => {
|
|||||||
authService.alfrescoSetting.ecmHost = '127.99.99.99';
|
authService.alfrescoSetting.ecmHost = '127.99.99.99';
|
||||||
|
|
||||||
authService.login('fake-username', 'fake-password').subscribe(() => {
|
authService.login('fake-username', 'fake-password').subscribe(() => {
|
||||||
expect(authService.getAlfrescoApi().config.host).toBe('127.99.99.99');
|
expect(authService.getAlfrescoApi().config.hostEcm).toBe('127.99.99.99');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -225,7 +225,7 @@ describe('AlfrescoAuthentication', () => {
|
|||||||
authService.alfrescoSetting.bpmHost = '127.99.99.99';
|
authService.alfrescoSetting.bpmHost = '127.99.99.99';
|
||||||
|
|
||||||
authService.login('fake-username', 'fake-password').subscribe(() => {
|
authService.login('fake-username', 'fake-password').subscribe(() => {
|
||||||
expect(authService.getAlfrescoApi().config.hostActiviti).toBe('127.99.99.99');
|
expect(authService.getAlfrescoApi().config.hostBpm).toBe('127.99.99.99');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -41,12 +41,12 @@ export class AlfrescoAuthenticationService {
|
|||||||
hostBpm: this.alfrescoSetting.bpmHost
|
hostBpm: this.alfrescoSetting.bpmHost
|
||||||
});
|
});
|
||||||
|
|
||||||
alfrescoSetting.bpmHostSubject.subscribe((ecmHost) => {
|
alfrescoSetting.bpmHostSubject.subscribe((bpmHost) => {
|
||||||
this.alfrescoApi.config.changeEcmHost(ecmHost);
|
this.alfrescoApi.changeBpmHost(bpmHost);
|
||||||
});
|
});
|
||||||
|
|
||||||
alfrescoSetting.ecmHostSubject.subscribe((bpmHost) => {
|
alfrescoSetting.ecmHostSubject.subscribe((ecmHost ) => {
|
||||||
this.alfrescoApi.config.changeBpmHost(bpmHost);
|
this.alfrescoApi.changeEcmHost(ecmHost);
|
||||||
});
|
});
|
||||||
|
|
||||||
alfrescoSetting.providerSubject.subscribe((value) => {
|
alfrescoSetting.providerSubject.subscribe((value) => {
|
||||||
|
Reference in New Issue
Block a user