[ADF-5366] initialize discovery and version compatibility service for oauth based session (#6864)

* [ADF-5366] initialize discovery and version compatibility service for oauth based session

* better error message

* * fix spaces

* * revert the search service

* * fix build

* * check properties after type update

* * check properties after type update

* * check properties after type update

* * fix infinite loop

* * fix test without title

* * wait for options

* * wait for session

* Update metadata-content-type.e2e.ts

* Update metadata-content-type.e2e.ts

* Update protractor.excludes.json

* Update protractor.excludes.json
This commit is contained in:
Dharan
2021-04-29 18:10:49 +05:30
committed by GitHub
parent c0b5935b43
commit 8b5e45f4eb
28 changed files with 532 additions and 345 deletions

View File

@@ -36,7 +36,8 @@ describe('AppListCloudComponent', () => {
const mock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve(fakeApplicationInstance)
callCustomApi: () => Promise.resolve(fakeApplicationInstance),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -32,7 +32,8 @@ describe('AppsProcessCloudService', () => {
const apiMock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve({list : { entries: [ {entry: fakeApplicationInstance[0]}, {entry: fakeApplicationInstance[1]}] }})
callCustomApi: () => Promise.resolve({list : { entries: [ {entry: fakeApplicationInstance[0]}, {entry: fakeApplicationInstance[1]}] }}),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -29,7 +29,7 @@ const responseBody = {
{ id: 'id', name: 'name', formKey: 'form-key' }
};
const oauth2Auth = jasmine.createSpyObj('oauth2Auth', ['callCustomApi']);
const oauth2Auth = jasmine.createSpyObj('oauth2Auth', ['callCustomApi', 'on']);
describe('Form Cloud service', () => {

View File

@@ -52,7 +52,7 @@ const responseBody = [
}
];
const oauth2Auth = jasmine.createSpyObj('oauth2Auth', ['callCustomApi']);
const oauth2Auth = jasmine.createSpyObj('oauth2Auth', ['callCustomApi', 'on']);
describe('Form Definition Selector Cloud Service', () => {

View File

@@ -42,7 +42,8 @@ describe('GroupCloudComponent', () => {
const mock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve(mockIdentityGroups)
callCustomApi: () => Promise.resolve(mockIdentityGroups),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -42,7 +42,8 @@ describe('PeopleCloudComponent', () => {
const mock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve(mockUsers)
callCustomApi: () => Promise.resolve(mockUsers),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -66,7 +66,8 @@ describe('EditProcessFilterCloudComponent', () => {
const mock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve(fakeApplicationInstance)
callCustomApi: () => Promise.resolve(fakeApplicationInstance),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -45,7 +45,8 @@ describe('NotificationCloudService', () => {
const apiServiceMock = {
oauth2Auth: {
token: '1234567'
token: '1234567',
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -38,7 +38,8 @@ describe('PreferenceService', () => {
oauth2Auth: {
callCustomApi: () => {
return Promise.resolve(mockResponse);
}
},
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -40,7 +40,8 @@ describe('StartTaskCloudComponent', () => {
const mock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve(taskDetailsMock)
callCustomApi: () => Promise.resolve(taskDetailsMock),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -53,7 +53,8 @@ describe('EditTaskFilterCloudComponent', () => {
const mock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve(fakeApplicationInstance)
callCustomApi: () => Promise.resolve(fakeApplicationInstance),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -51,7 +51,8 @@ describe('TaskHeaderCloudComponent', () => {
const mock = {
oauth2Auth: {
callCustomApi: () => Promise.resolve({})
callCustomApi: () => Promise.resolve({}),
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -31,7 +31,8 @@ describe('Activiti ServiceTaskList Cloud Service', () => {
oauth2Auth: {
callCustomApi: (_queryUrl, _operation, _context, queryParams) => {
return Promise.resolve(queryParams);
}
},
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;

View File

@@ -32,7 +32,8 @@ describe('TaskListCloudService', () => {
oauth2Auth: {
callCustomApi : (_queryUrl, _operation, _context, queryParams) => {
return Promise.resolve(queryParams);
}
},
on: jasmine.createSpy('on')
},
isEcmLoggedIn() {
return false;