Skip to content

Commit

Permalink
Revert "Bug/ex UI 855 mo nightly pipeline fix (#1101)" (#1104)
Browse files Browse the repository at this point in the history
This reverts commit 43faff8.
  • Loading branch information
RiteshHMCTS authored Sep 20, 2023
1 parent 43faff8 commit b61854b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
withNightlyPipeline(type, product, component) {
enableSlackNotifications(channel)
loadVaultSecrets(secrets)
// enableFortifyScan('rpx-aat')
enableFullFunctionalTest(60)
enableFortifyScan('rpx-aat')
// enableFullFunctionalTest(60)
// enableSecurityScan()
enableMutationTest()
enableCrossBrowserTest()

Expand Down
4 changes: 0 additions & 4 deletions api/caaCases/caaCases.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ export function getRequestBody(organisationID: string, pageNo: number, pageSize:
};
}

export function validateCaseTypeId(caseTypeId: string): string {
return caseTypeId.match('^[0-9\\-_]+$') === null ? '' : caseTypeId;
}

function mapCcdData(ccdCase: CcdCase, columnConfigs: CcdColumnConfig[], caseType: string): any[] {
const data = Array<any>();
ccdCase.cases.forEach((caseData) => data.push(onGeneratedRow(caseData, columnConfigs, caseType)));
Expand Down
4 changes: 2 additions & 2 deletions api/caaCases/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { NextFunction, Request, Response, Router } from 'express';
import { getConfigValue } from '../configuration';
import { SERVICES_MCA_PROXY_API_PATH, SERVICES_ROLE_ASSIGNMENT_API_PATH } from '../configuration/references';
import { EnhancedRequest } from '../models/enhanced-request.interface';
import { getApiPath, getRequestBody, validateCaseTypeId, mapCcdCases } from './caaCases.util';
import { getApiPath, getRequestBody, mapCcdCases } from './caaCases.util';
import { CaaCasesFilterType } from './enums';
import { RoleAssignmentResponse } from './models/roleAssignmentResponse';

export async function handleCaaCases(req: EnhancedRequest, res: Response, next: NextFunction) {
const caseTypeId = validateCaseTypeId(req.query.caseTypeId as string);
const caseTypeId = req.query.caseTypeId as string;
const caaCasesPageType = req.query.caaCasesPageType as string;
const caaCasesFilterType = req.query.caaCasesFilterType as string;
const path = getApiPath(getConfigValue(SERVICES_MCA_PROXY_API_PATH), caseTypeId);
Expand Down
1 change: 1 addition & 0 deletions test/integration/tests/post_Invite_User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ suite('Manage Org -> POST Invite User', function() {
// console.log('response', response.headers.get('cache-control'))
.then((response) => {
response.status.should.be.eql(200);
console.log(response);
}));
});
1 change: 0 additions & 1 deletion test/integration/tests/post_ReInvite_User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ suite('Manage Org -> POST Re Invite User', function() {
test('POST Invite User', () => generatePOSTAPIRequest('POST', '/api/inviteUser', payload)
// console.log('response', response.headers.get('cache-control'))
.then((response) => {
// console.log('response', response)
if (response.status === 429) {
console.log(`User Already Invited: ${response.status}`);
}
Expand Down

0 comments on commit b61854b

Please sign in to comment.