feat:(allstate): Add allstate users to withdraw package state users #1822
pr-coverage-annotation.yml
on: pull_request
coverage-report
4m 2s
Annotations
10 errors
lambda/sinkMainProcessors.test.ts > insertOneMacRecordsFromKafkaIntoMako > should handle valid kafka records for contracting-initial:
lib/lambda/sinkMainProcessors.test.ts#L213
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"actionType": "Initial",
"additionalInformation": "Some additional information about this submission.",
"authority": "1915(b)",
"changedDate": "2024-11-26T18:17:21.557Z",
"cmsStatus": "Submitted - Intake Needed",
"description": null,
"id": "VA-1234.R00.00",
"initialIntakeNeeded": true,
"makoChangedDate": "2024-11-26T18:17:21.557Z",
"origin": "OneMAC",
"proposedDate": 1700000000,
"raiWithdrawEnabled": false,
"seatoolStatus": "Submitted",
"state": "VA",
"stateStatus": "Submitted",
"statusDate": "2024-11-26T00:00:00.000Z",
"subject": null,
"submissionDate": "2024-11-26T18:17:21.557Z",
"submitterEmail": "[email protected]",
"submitterName": "George Harrison",
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:213:31
|
lambda/sinkMainProcessors.test.ts > insertOneMacRecordsFromKafkaIntoMako > should handle valid kafka records for contracting-renewal:
lib/lambda/sinkMainProcessors.test.ts#L213
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"actionType": "Renew",
"additionalInformation": "Some additional information about this submission.",
"authority": "1915(b)",
"changedDate": "2024-11-26T18:17:21.557Z",
"cmsStatus": "Submitted - Intake Needed",
"description": null,
"id": "VA-1234.R01.00",
"initialIntakeNeeded": true,
"makoChangedDate": "2024-11-26T18:17:21.557Z",
"origin": "OneMAC",
"proposedDate": 1700000000,
"raiWithdrawEnabled": false,
"seatoolStatus": "Submitted",
"state": "VA",
"stateStatus": "Submitted",
"statusDate": "2024-11-26T00:00:00.000Z",
"subject": null,
"submissionDate": "2024-11-26T18:17:21.557Z",
"submitterEmail": "[email protected]",
"submitterName": "George Harrison",
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:213:31
|
lambda/sinkMainProcessors.test.ts > insertOneMacRecordsFromKafkaIntoMako > should handle valid kafka records for temporary-extension:
lib/lambda/sinkMainProcessors.test.ts#L213
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"actionType": "Extend",
"additionalInformation": "Some additional information about this submission.",
"authority": "1915(b)",
"changedDate": "2024-11-26T18:17:21.557Z",
"cmsStatus": "Requested",
"description": null,
"id": "VA-1234.R11.TE12",
"initialIntakeNeeded": false,
"makoChangedDate": "2024-11-26T18:17:21.557Z",
"origin": "OneMAC",
"originalWaiverNumber": "VA-1111.R11.00",
"raiWithdrawEnabled": false,
"seatoolStatus": "Pending",
"state": "VA",
"stateStatus": "Submitted",
"statusDate": "2024-11-26T00:00:00.000Z",
"subject": null,
"submissionDate": "2024-11-26T18:17:21.557Z",
"submitterEmail": "[email protected]",
"submitterName": "George Harrison",
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:213:31
|
lambda/sinkMainProcessors.test.ts > insertOneMacRecordsFromKafkaIntoMako > should handle valid kafka records for respond-to-rai:
lib/lambda/sinkMainProcessors.test.ts#L306
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"cmsStatus": "Submitted - Intake Needed",
"id": "VA-11-2020",
"initialIntakeNeeded": true,
"locked": true,
"makoChangedDate": "2024-11-26T18:17:21.557Z",
"raiReceivedDate": "2024-11-26T18:17:21.557Z",
"raiWithdrawEnabled": false,
"seatoolStatus": "Submitted",
"stateStatus": "Submitted",
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:306:31
|
lambda/sinkMainProcessors.test.ts > insertOneMacRecordsFromKafkaIntoMako > should handle valid kafka records for withdraw-rai:
lib/lambda/sinkMainProcessors.test.ts#L306
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"cmsStatus": "Formal RAI Response - Withdrawal Requested",
"id": "VA-11-2020",
"locked": true,
"makoChangedDate": "2024-11-26T18:17:21.557Z",
"raiWithdrawEnabled": false,
"seatoolStatus": "Formal RAI Response - Withdrawal Requested",
"secondClock": false,
"stateStatus": "Formal RAI Response - Withdrawal Requested",
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:306:31
|
lambda/sinkMainProcessors.test.ts > insertOneMacRecordsFromKafkaIntoMako > should handle valid kafka records for toggle-withdraw-rai:
lib/lambda/sinkMainProcessors.test.ts#L306
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"id": "VA-11-2020",
"makoChangedDate": "2024-11-26T18:17:21.557Z",
"raiWithdrawEnabled": true,
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:306:31
|
lambda/sinkMainProcessors.test.ts > insertOneMacRecordsFromKafkaIntoMako > should handle valid kafka records for withdraw-package:
lib/lambda/sinkMainProcessors.test.ts#L306
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"cmsStatus": "Submitted - Intake Needed",
"id": "VA-11-2020",
"initialIntakeNeeded": true,
"locked": true,
"makoChangedDate": "2024-11-26T18:17:21.557Z",
"raiWithdrawEnabled": false,
"seatoolStatus": "Withdrawal Requested",
"secondClock": false,
"stateStatus": "Withdrawal Requested",
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:306:31
|
lambda/sinkMainProcessors.test.ts > insertNewSeatoolRecordsFromKafkaIntoMako > outputs kafka records into mako records:
lib/lambda/sinkMainProcessors.test.ts#L585
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"actionType": "Initial Review",
"approvedEffectiveDate": "2024-11-26T18:17:21.557Z",
"authority": "1915(c)",
"changed_date": 1722645041557,
"cmsStatus": "Approved",
"description": "Sample summary",
"finalDispositionDate": "2024-08-03T00:30:41.557Z",
"id": "MD-0005.R01.00",
"initialIntakeNeeded": false,
"leadAnalystEmail": "[email protected]",
"leadAnalystName": "Michael Chen",
"leadAnalystOfficerId": 67890,
"locked": false,
"proposedDate": null,
"raiReceivedDate": null,
"raiRequestedDate": null,
"raiWithdrawEnabled": false,
"raiWithdrawnDate": null,
"reviewTeam": Array [
Object {
"email": "[email protected]",
"name": "John Doe",
},
Object {
"email": "[email protected]",
"name": "Emily Rodriguez",
},
],
"seatoolStatus": "Approved",
"secondClock": false,
"state": "10",
"stateStatus": "Approved",
"statusDate": "2024-08-03T00:30:41.557Z",
"subTypes": Array [
Object {
"TYPE_ID": 1,
"TYPE_NAME": "SubType X",
},
],
"subject": "Sample Title",
"submissionDate": "2024-11-26T18:17:21.557Z",
"types": Array [
Object {
"SPA_TYPE_ID": 1,
"SPA_TYPE_NAME": "Type A",
},
],
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:585:31
|
lambda/sinkMainProcessors.test.ts > insertNewSeatoolRecordsFromKafkaIntoMako > outputs kafka records into mako records if mako record is not found:
lib/lambda/sinkMainProcessors.test.ts#L699
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"actionType": "Initial Review",
"approvedEffectiveDate": "2024-11-26T18:17:21.557Z",
"authority": "1915(c)",
"changed_date": 1722645041557,
"cmsStatus": "Approved",
"description": "Sample summary",
"finalDispositionDate": "2024-08-03T00:30:41.557Z",
"id": "MD-0004.R00.00",
"initialIntakeNeeded": false,
"leadAnalystEmail": "[email protected]",
"leadAnalystName": "Michael Chen",
"leadAnalystOfficerId": 67890,
"locked": false,
"proposedDate": null,
"raiReceivedDate": null,
"raiRequestedDate": null,
"raiWithdrawEnabled": false,
"raiWithdrawnDate": null,
"reviewTeam": Array [
Object {
"email": "[email protected]",
"name": "John Doe",
},
Object {
"email": "[email protected]",
"name": "Emily Rodriguez",
},
],
"seatoolStatus": "Approved",
"secondClock": false,
"state": "10",
"stateStatus": "Approved",
"statusDate": "2024-08-03T00:30:41.557Z",
"subTypes": Array [
Object {
"TYPE_ID": 1,
"TYPE_NAME": "SubType X",
},
],
"subject": "Sample Title",
"submissionDate": "2024-11-26T18:17:21.557Z",
"types": Array [
Object {
"SPA_TYPE_ID": 1,
"SPA_TYPE_NAME": "Type A",
},
],
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:699:31
|
lambda/sinkMainProcessors.test.ts > insertNewSeatoolRecordsFromKafkaIntoMako > outputs kafka records into mako records without changedDates:
lib/lambda/sinkMainProcessors.test.ts#L813
AssertionError: expected "bulkUpdateData" to be called with arguments: [ …(3) ]
Received:
1st bulkUpdateData call:
Array [
"https://vpc-opensearchdomain-mock-domain.us-east-1.es.amazonaws.com",
"test-namespace-main",
Array [
Object {
"actionType": "Initial Review",
"approvedEffectiveDate": "2024-11-26T18:17:21.557Z",
"authority": "1915(c)",
"changed_date": 1722645041557,
"cmsStatus": "Approved",
"description": "Sample summary",
"finalDispositionDate": "2024-08-03T00:30:41.557Z",
"id": "MD-0005.R01.TE00",
"initialIntakeNeeded": false,
"leadAnalystEmail": "[email protected]",
"leadAnalystName": "Michael Chen",
"leadAnalystOfficerId": 67890,
"locked": false,
"proposedDate": null,
"raiReceivedDate": null,
"raiRequestedDate": null,
"raiWithdrawEnabled": false,
"raiWithdrawnDate": null,
"reviewTeam": Array [
Object {
"email": "[email protected]",
"name": "John Doe",
},
Object {
"email": "[email protected]",
"name": "Emily Rodriguez",
},
],
"seatoolStatus": "Approved",
"secondClock": false,
"state": "10",
"stateStatus": "Approved",
"statusDate": "2024-08-03T00:30:41.557Z",
"subTypes": Array [
Object {
"TYPE_ID": 1,
"TYPE_NAME": "SubType X",
},
],
"subject": "Sample Title",
"submissionDate": "2024-11-26T18:17:21.557Z",
"types": Array [
Object {
"SPA_TYPE_ID": 1,
"SPA_TYPE_NAME": "Type A",
},
],
- "withdrawEmailSent": false,
},
],
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:813:31
|