OJ-1539: Replace audit logic with cri-audit and use cri-types #2283
check-pr.yml
on: pull_request
Preview
/
Build SAM app
1m 15s
pre-commit
1m 5s
Run tests
/
Unit
1m 22s
Annotations
2 errors
|
Run tests / API
Process completed with exit code 1.
|
|
Given the session and NINO is valid › Should receive a 200 response when /check endpoint is called without optional headers:
integration-tests/api-gateway/check/check-lambda-happy.test.ts#L84
expect(received).toStrictEqual(expected) // deep equality
- Expected - 25
+ Received + 4
@@ -1,34 +1,13 @@
Object {
"component_id": StringMatching /^https:\/\/.+\.account\.gov\.uk$/,
- "event_name": "IPV_HMRC_RECORD_CHECK_CRI_REQUEST_SENT",
+ "event_name": "IPV_HMRC_RECORD_CHECK_CRI_RESPONSE_RECEIVED",
"event_timestamp_ms": Any<Number>,
- "restricted": Object {
- "birthDate": Array [
- Object {
- "value": "1965-07-08",
- },
- ],
- "name": Array [
- Object {
- "nameParts": Array [
- Object {
- "type": "GivenName",
- "value": "KENNETH",
- },
- Object {
- "type": "FamilyName",
- "value": "DECERQUEIRA",
- },
- ],
+ "extensions": Object {
+ "evidence": Object {
+ "txn": "mock_txn_header",
},
- ],
- "socialSecurityRecord": Array [
- Object {
- "personalNumber": "AA123456C",
- },
- ],
},
"timestamp": Any<Number>,
"user": ObjectContaining {
"govuk_signin_journey_id": StringMatching /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,
"ip_address": Any<String>,
at Object.<anonymous> (check/check-lambda-happy.test.ts:84:40)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coverage
|
4.59 KB |
sha256:be77c72455087221378550613469c718e9b04aa379ad388c317d8375ab1a2a5f
|
|