[AAE-9311] Use new micro service ingress for people/group (#7708)

* [AAE-9311] Use new micro service ingress for people/group

* [AAE-9311] change ingress for user-access-service

* [AAE-9311] fix unit test

* Trigger travis

* [AAE-9311] fix unit test
This commit is contained in:
Tomasz Gnyp
2022-07-14 12:55:21 +02:00
committed by GitHub
parent 3fab3cd630
commit 1f82230b0e
4 changed files with 7 additions and 7 deletions

View File

@@ -152,7 +152,7 @@ describe('UserAccessService', () => {
appConfigService.config.bpmHost = fakeIdentityHost;
await userAccessService.fetchUserAccess();
expect(getAccessFromApiSpy).toHaveBeenCalledWith({ url: `${fakeIdentityHost}/modeling-service/v1/identity/roles` });
expect(getAccessFromApiSpy).toHaveBeenCalledWith({ url: `${fakeIdentityHost}/identity-adapter-service/v1/roles` });
});
it('should not fetch the access from the API if is not configured with OAUTH', async () => {

View File

@@ -22,7 +22,7 @@ import { UserAccessModel } from '../models/user-access.model';
import { AppConfigService } from '../app-config/app-config.service';
import { OAuth2Service } from './oauth2.service';
const IDENTITY_MICRO_SERVICE_INGRESS = 'modeling-service';
const IDENTITY_MICRO_SERVICE_INGRESS = 'identity-adapter-service';
@Injectable({
providedIn: 'root'
@@ -52,7 +52,7 @@ export class UserAccessService {
}
private async fetchAccessFromApi() {
const url = `${this.identityHost}/${IDENTITY_MICRO_SERVICE_INGRESS}/v1/identity/roles`;
const url = `${this.identityHost}/${IDENTITY_MICRO_SERVICE_INGRESS}/v1/roles`;
await this.oAuth2Service.get({ url })
.toPromise()
.then((response: UserAccessModel) => {