Skip to content

Commit

Permalink
changes for role_name and role_category (#3805)
Browse files Browse the repository at this point in the history
* changes for role_name and role_category

* Added Provider config in Jenkinsfile_CNP

* typeOFWork amended

* pact Stage running on Preview ?

* pact Stage running on Preview ?

* Remove Provider from Pact

* comments added

* Reverted to original Jenkinsfile_CNP after pipeline Green Run

---------

Co-authored-by: Kasi Subramaniam <[email protected]>
Co-authored-by: RiteshHMCTS <[email protected]>
  • Loading branch information
3 people committed Jul 31, 2024
1 parent 061bcd2 commit 7e5152e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions api/test/pact/pact-tests/wa2/taskRoles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ const taskId = '4d4b6fgh-c91f-433f-92ac-e456ae34f72a';

describe('Task management api, task roles', () => {
const RESPONSE_BODY = { roles: eachLike({
role_category: somethingLike('test-role-cat'),
role_name: somethingLike('test-role-name'),
role_category: somethingLike('LEGAL_OPERATIONS'),
role_name: somethingLike('tribunal-caseworker'),
permissions: eachLike('READ'),
authorisations: eachLike('IAC')
}
) };
}) };

describe('get /work-types', () => {
const sandbox: sinon.SinonSandbox = sinon.createSandbox();
Expand Down
6 changes: 3 additions & 3 deletions api/test/pact/pact-tests/wa2/typeOfWork.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const pactSetUp = new PactTestSetup({ provider: 'wa_task_management_api_get_work
describe('Task management api, work types', () => {
const RESPONSE_BODY = {
work_types: eachLike({
id: somethingLike('applications'),
label: somethingLike('Applications')
id: somethingLike('evidence'),
label: somethingLike('Evidence')
})
};

Expand Down Expand Up @@ -97,5 +97,5 @@ describe('Task management api, work types', () => {
});

function assertResponses(dto: any) {
expect(dto[0].key).to.be.equal('applications');
expect(dto[0].key).to.be.equal('evidence');
}

0 comments on commit 7e5152e

Please sign in to comment.