Skip to content

Commit

Permalink
feat(cb2-15586): remove test type ids for VTG and VTP12 generation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-coslett committed Dec 19, 2024
1 parent 5dae3c9 commit 022d26c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 165 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@dvsa/cvs-feature-flags": "^0.17.0",
"@aws-sdk/util-dynamodb": "^3.704.0",
"@dvsa/cvs-type-definitions": "^7.8.0",
"@dvsa/cvs-microservice-common": "^1.3.0",
"@dvsa/cvs-microservice-common": "^1.3.1",
"@smithy/types": "^2.12.0",
"@smithy/util-utf8": "^2.3.0",
"aws-lambda": "^1.0.5",
Expand Down
40 changes: 0 additions & 40 deletions tests/resources/queue-event-abandon.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,6 @@
"eventSourceARN": "arn:aws:sqs:eu-west-2:006106226016:cert-gen-q",
"awsRegion": "eu-west-2"
},
{
"messageId": "g48c54a0-7027-4e37-b7e8-c8d231511z002",
"receiptHandle": "AQEBJcBvTRZ1W2LSaUJ0g0ELXlqA8WCL4zJxO63wu0YOVhx44xxxPhsnc+/Q9+1vOPYO+3HupEjXzGRSvfPY5rEEJkgCJe4/RQ+q2kU5LsmJEr1qE/CTdIYe5X/75XeMQ523KKpdNsD9tRhyvEpPpSu50byGbz7J0JyR6lu1E6Q4YuB4QNm+ev1obPMLdEt8RhgvIi/NfEfQf0L1r3TPi3wLho1R61PllPm27He8/1CjCnMyWBzgX+DCjJ7vyRXObMZ/MbhMBKbYpeTcejsKpYX//PPr1yvldp1YPC0wPKp+iqmWxoDDeHXbo8xYRFXDA8rnY5RfkwxxffH7o534vYn8FCZEtqybQuo7pumu6Ah9PsC05tP38syU71ltasljGIA35BgCdSO+9r5rTaBnbO9++Q==",
"body": "{\n \"vin\": \"AUTOQAHGV00000007\",\n \"testResultId\": \"0329c58e-7c95-4bf5-9fab-f9cd50a2e333\",\n \"bodyType\": {\n \"code\": \"b\",\n \"description\": \"box\"\n },\n \"countryOfRegistration\": \"gb\",\n \"createdAt\": \"2024-12-09T15:03:07.515Z\",\n \"createdById\": \"440803a2-ff39-47e2-b50e-592d6043059b\",\n \"createdByName\": \"AN Other\",\n \"euVehicleCategory\": \"n3\",\n \"make\": \"MAN\",\n \"model\": \"TGS\",\n \"noOfAxles\": 2,\n \"numberOfWheelsDriven\": null,\n \"odometerReading\": null,\n \"odometerReadingUnits\": null,\n \"preparerId\": \"No preparer ID given\",\n \"preparerName\": null,\n \"reasonForCancellation\": null,\n \"reasonForCreation\": \"Test conducted\",\n \"systemNumber\": \"90000007\",\n \"testEndTimestamp\": \"2024-12-09T15:03:07.299Z\",\n \"testerEmailAddress\": \"another@dvsatest-cloud.uk\",\n \"testerName\": \"AN Other\",\n \"testerStaffId\": \"440803a2-ff39-47e2-b50e-592d6043059b\",\n \"testStartTimestamp\": \"2024-12-09T15:01:34.179Z\",\n \"testStationName\": \"Abshire-Kub\",\n \"testStationPNumber\": \"09-4129632\",\n \"testStationType\": \"gvts\",\n \"testStatus\": \"submitted\",\n \"testTypes\": \n {\n \"additionalCommentsForAbandon\": null,\n \"additionalNotesRecorded\": null,\n \"centralDocs\": {\n \"issueRequired\": false,\n \"reasonsForIssue\": []\n },\n \"certificateNumber\": null,\n \"createdAt\": \"2024-12-09T15:03:07.515Z\",\n \"customDefects\": null,\n \"defects\": [],\n \"emissionStandard\": null,\n \"fuelType\": null,\n \"lastUpdatedAt\": \"2024-12-09T15:03:07.515Z\",\n \"modificationTypeUsed\": null,\n \"modType\": null,\n \"name\": \"Technical test\",\n \"particulateTrapFitted\": null,\n \"particulateTrapSerialNumber\": null,\n \"prohibitionIssued\": false,\n \"reasonForAbandoning\": \"The examiner could not open the tachograph\",\n \"secondaryCertificateNumber\": null,\n \"smokeTestKLimitApplied\": null,\n \"testCode\": \"ddv\",\n \"testExpiryDate\": null,\n \"testNumber\": \"W01A13643\",\n \"testResult\": \"abandoned\",\n \"testTypeClassification\": \"Annual NO CERTIFICATE\",\n \"testTypeEndTimestamp\": \"2024-12-09T15:03:07.301Z\",\n \"testTypeId\": \"50\",\n \"testTypeName\": \"ADR test\",\n \"testTypeStartTimestamp\": \"2024-12-09T15:02:27.007Z\"\n }\n ,\n \"testVersion\": \"current\",\n \"vehicleClass\": {\n \"code\": \"v\",\n \"description\": \"heavy goods vehicle\"\n },\n \"vehicleConfiguration\": \"rigid\",\n \"vehicleId\": \"QA07HGV\",\n \"vehicleType\": \"hgv\",\n \"vrm\": \"QA07HGV\"\n}",
"messageAttributes": {},
"md5OfBody": "9586727cbc9f3312542387099b60982c",
"eventSource": "aws:sqs",
"eventSourceARN": "arn:aws:sqs:eu-west-2:006106226016:cert-gen-q",
"awsRegion": "eu-west-2"
},
{
"messageId": "g48c54a0-7027-4e37-b7e8-c8d231511z003",
"receiptHandle": "AQEBJcBvTRZ1W2LSaUJ0g0ELXlqA8WCL4zJxO63wu0YOVhx44xxxPhsnc+/Q9+1vOPYO+3HupEjXzGRSvfPY5rEEJkgCJe4/RQ+q2kU5LsmJEr1qE/CTdIYe5X/75XeMQ523KKpdNsD9tRhyvEpPpSu50byGbz7J0JyR6lu1E6Q4YuB4QNm+ev1obPMLdEt8RhgvIi/NfEfQf0L1r3TPi3wLho1R61PllPm27He8/1CjCnMyWBzgX+DCjJ7vyRXObMZ/MbhMBKbYpeTcejsKpYX//PPr1yvldp1YPC0wPKp+iqmWxoDDeHXbo8xYRFXDA8rnY5RfkwxxffH7o534vYn8FCZEtqybQuo7pumu6Ah9PsC05tP38syU71ltasljGIA35BgCdSO+9r5rTaBnbO9++Q==",
"body": "{\n \"vin\": \"AUTOQAHGV00000006\",\n \"testResultId\": \"5e7975ed-5158-4985-b0bf-7cdd2feb0258\",\n \"bodyType\": {\n \"code\": \"i\",\n \"description\": \"livestock carrier\"\n },\n \"countryOfRegistration\": \"gb\",\n \"createdAt\": \"2024-12-09T15:00:34.642Z\",\n \"createdById\": \"440803a2-ff39-47e2-b50e-592d6043059b\",\n \"createdByName\": \"AN Other\",\n \"euVehicleCategory\": \"n2\",\n \"make\": \"PEUGEOT\",\n \"model\": \"Boxer\",\n \"noOfAxles\": 2,\n \"numberOfWheelsDriven\": null,\n \"odometerReading\": 213500,\n \"odometerReadingUnits\": \"kilometres\",\n \"preparerId\": \"No preparer ID given\",\n \"preparerName\": null,\n \"reasonForCancellation\": null,\n \"reasonForCreation\": \"Test conducted\",\n \"systemNumber\": \"90000006\",\n \"testEndTimestamp\": \"2024-12-09T15:00:34.447Z\",\n \"testerEmailAddress\": \"another@dvsatest-cloud.uk\",\n \"testerName\": \"AN Other\",\n \"testerStaffId\": \"440803a2-ff39-47e2-b50e-592d6043059b\",\n \"testStartTimestamp\": \"2024-12-09T14:59:28.424Z\",\n \"testStationName\": \"Abshire-Kub\",\n \"testStationPNumber\": \"09-4129632\",\n \"testStationType\": \"gvts\",\n \"testStatus\": \"submitted\",\n \"testTypes\": \n {\n \"additionalCommentsForAbandon\": null,\n \"additionalNotesRecorded\": null,\n \"certificateNumber\": null,\n \"createdAt\": \"2024-12-09T15:00:34.642Z\",\n \"customDefects\": null,\n \"defects\": [],\n \"emissionStandard\": null,\n \"fuelType\": null,\n \"lastUpdatedAt\": \"2024-12-09T15:00:34.642Z\",\n \"modificationTypeUsed\": null,\n \"modType\": null,\n \"name\": \"Voluntary test\",\n \"particulateTrapFitted\": null,\n \"particulateTrapSerialNumber\": null,\n \"prohibitionIssued\": false,\n \"reasonForAbandoning\": \"There is not permanently fixed to the chassis serial number as shown on the registration document (motor vehicle) or the identification mark issued by the Secretary of State (trailer)\",\n \"secondaryCertificateNumber\": null,\n \"smokeTestKLimitApplied\": null,\n \"testCode\": \"qjv2\",\n \"testExpiryDate\": null,\n \"testNumber\": \"W01A13441\",\n \"testResult\": \"abandoned\",\n \"testTypeClassification\": \"Annual With Certificate\",\n \"testTypeEndTimestamp\": \"2024-12-09T15:00:34.450Z\",\n \"testTypeId\": \"122\",\n \"testTypeName\": \"Voluntary roadworthiness test\",\n \"testTypeStartTimestamp\": \"2024-12-09T15:00:21.951Z\"\n }\n ,\n \"testVersion\": \"current\",\n \"vehicleClass\": {\n \"code\": \"v\",\n \"description\": \"heavy goods vehicle\"\n },\n \"vehicleConfiguration\": \"rigid\",\n \"vehicleId\": \"QA06HGV\",\n \"vehicleType\": \"hgv\",\n \"vrm\": \"QA06HGV\"\n}",
"messageAttributes": {},
"md5OfBody": "9586727cbc9f3312542387099b60982c",
"eventSource": "aws:sqs",
"eventSourceARN": "arn:aws:sqs:eu-west-2:006106226016:cert-gen-q",
"awsRegion": "eu-west-2"
},
{
"messageId": "g48c54a0-7027-4e37-b7e8-c8d231511z004",
"receiptHandle": "AQEBJcBvTRZ1W2LSaUJ0g0ELXlqA8WCL4zJxO63wu0YOVhx44xxxPhsnc+/Q9+1vOPYO+3HupEjXzGRSvfPY5rEEJkgCJe4/RQ+q2kU5LsmJEr1qE/CTdIYe5X/75XeMQ523KKpdNsD9tRhyvEpPpSu50byGbz7J0JyR6lu1E6Q4YuB4QNm+ev1obPMLdEt8RhgvIi/NfEfQf0L1r3TPi3wLho1R61PllPm27He8/1CjCnMyWBzgX+DCjJ7vyRXObMZ/MbhMBKbYpeTcejsKpYX//PPr1yvldp1YPC0wPKp+iqmWxoDDeHXbo8xYRFXDA8rnY5RfkwxxffH7o534vYn8FCZEtqybQuo7pumu6Ah9PsC05tP38syU71ltasljGIA35BgCdSO+9r5rTaBnbO9++Q==",
Expand All @@ -40,16 +20,6 @@
"eventSourceARN": "arn:aws:sqs:eu-west-2:006106226016:cert-gen-q",
"awsRegion": "eu-west-2"
},
{
"messageId": "g48c54a0-7027-4e37-b7e8-c8d231511z005",
"receiptHandle": "AQEBJcBvTRZ1W2LSaUJ0g0ELXlqA8WCL4zJxO63wu0YOVhx44xxxPhsnc+/Q9+1vOPYO+3HupEjXzGRSvfPY5rEEJkgCJe4/RQ+q2kU5LsmJEr1qE/CTdIYe5X/75XeMQ523KKpdNsD9tRhyvEpPpSu50byGbz7J0JyR6lu1E6Q4YuB4QNm+ev1obPMLdEt8RhgvIi/NfEfQf0L1r3TPi3wLho1R61PllPm27He8/1CjCnMyWBzgX+DCjJ7vyRXObMZ/MbhMBKbYpeTcejsKpYX//PPr1yvldp1YPC0wPKp+iqmWxoDDeHXbo8xYRFXDA8rnY5RfkwxxffH7o534vYn8FCZEtqybQuo7pumu6Ah9PsC05tP38syU71ltasljGIA35BgCdSO+9r5rTaBnbO9++Q==",
"body": "{\n \"vin\": \"AUTOQAHGV00000008\",\n \"testResultId\": \"e53e0198-7924-4fca-ad50-9f49c7685d93\",\n \"bodyType\": {\n \"code\": \"t\",\n \"description\": \"tipper\"\n },\n \"countryOfRegistration\": \"gb\",\n \"createdAt\": \"2024-12-09T15:06:13.589Z\",\n \"createdById\": \"440803a2-ff39-47e2-b50e-592d6043059b\",\n \"createdByName\": \"AN Other\",\n \"euVehicleCategory\": \"n3\",\n \"make\": \"SCANIA\",\n \"model\": \"R410\",\n \"noOfAxles\": 2,\n \"numberOfWheelsDriven\": null,\n \"odometerReading\": null,\n \"odometerReadingUnits\": null,\n \"preparerId\": \"No preparer ID given\",\n \"preparerName\": null,\n \"reasonForCancellation\": null,\n \"reasonForCreation\": \"Test conducted\",\n \"systemNumber\": \"90000008\",\n \"testEndTimestamp\": \"2024-12-09T15:06:13.352Z\",\n \"testerEmailAddress\": \"another@dvsatest-cloud.uk\",\n \"testerName\": \"AN Other\",\n \"testerStaffId\": \"440803a2-ff39-47e2-b50e-592d6043059b\",\n \"testStartTimestamp\": \"2024-12-09T15:03:53.234Z\",\n \"testStationName\": \"Abshire-Kub\",\n \"testStationPNumber\": \"09-4129632\",\n \"testStationType\": \"gvts\",\n \"testStatus\": \"submitted\",\n \"testTypes\": \n {\n \"additionalCommentsForAbandon\": null,\n \"additionalNotesRecorded\": null,\n \"centralDocs\": {\n \"issueRequired\": false,\n \"reasonsForIssue\": []\n },\n \"certificateNumber\": null,\n \"createdAt\": \"2024-12-09T15:06:13.589Z\",\n \"customDefects\": null,\n \"defects\": [],\n \"emissionStandard\": null,\n \"fuelType\": null,\n \"lastUpdatedAt\": \"2024-12-09T15:06:13.589Z\",\n \"modificationTypeUsed\": null,\n \"modType\": null,\n \"name\": \"Technical test\",\n \"particulateTrapFitted\": null,\n \"particulateTrapSerialNumber\": null,\n \"prohibitionIssued\": false,\n \"reasonForAbandoning\": \"The relevant test fee has not been paid\",\n \"secondaryCertificateNumber\": null,\n \"smokeTestKLimitApplied\": null,\n \"testCode\": \"tiv\",\n \"testExpiryDate\": null,\n \"testNumber\": \"W01A13845\",\n \"testResult\": \"abandoned\",\n \"testTypeClassification\": \"Annual NO CERTIFICATE\",\n \"testTypeEndTimestamp\": \"2024-12-09T15:06:13.354Z\",\n \"testTypeId\": \"49\",\n \"testTypeName\": \"TIR test\",\n \"testTypeStartTimestamp\": \"2024-12-09T15:05:58.437Z\"\n }\n ,\n \"testVersion\": \"current\",\n \"vehicleClass\": {\n \"code\": \"v\",\n \"description\": \"heavy goods vehicle\"\n },\n \"vehicleConfiguration\": \"rigid\",\n \"vehicleId\": \"QA08HGV\",\n \"vehicleType\": \"hgv\",\n \"vrm\": \"QA08HGV\"\n}",
"messageAttributes": {},
"md5OfBody": "9586727cbc9f3312542387099b60982c",
"eventSource": "aws:sqs",
"eventSourceARN": "arn:aws:sqs:eu-west-2:006106226016:cert-gen-q",
"awsRegion": "eu-west-2"
},
{
"messageId": "g48c54a0-7027-4e37-b7e8-c8d231511z006",
"receiptHandle": "AQEBJcBvTRZ1W2LSaUJ0g0ELXlqA8WCL4zJxO63wu0YOVhx44xxxPhsnc+/Q9+1vOPYO+3HupEjXzGRSvfPY5rEEJkgCJe4/RQ+q2kU5LsmJEr1qE/CTdIYe5X/75XeMQ523KKpdNsD9tRhyvEpPpSu50byGbz7J0JyR6lu1E6Q4YuB4QNm+ev1obPMLdEt8RhgvIi/NfEfQf0L1r3TPi3wLho1R61PllPm27He8/1CjCnMyWBzgX+DCjJ7vyRXObMZ/MbhMBKbYpeTcejsKpYX//PPr1yvldp1YPC0wPKp+iqmWxoDDeHXbo8xYRFXDA8rnY5RfkwxxffH7o534vYn8FCZEtqybQuo7pumu6Ah9PsC05tP38syU71ltasljGIA35BgCdSO+9r5rTaBnbO9++Q==",
Expand All @@ -70,16 +40,6 @@
"eventSourceARN": "arn:aws:sqs:eu-west-2:006106226016:cert-gen-q",
"awsRegion": "eu-west-2"
},
{
"messageId": "g48c54a0-7027-4e37-b7e8-c8d231511z008",
"receiptHandle": "AQEBJcBvTRZ1W2LSaUJ0g0ELXlqA8WCL4zJxO63wu0YOVhx44xxxPhsnc+/Q9+1vOPYO+3HupEjXzGRSvfPY5rEEJkgCJe4/RQ+q2kU5LsmJEr1qE/CTdIYe5X/75XeMQ523KKpdNsD9tRhyvEpPpSu50byGbz7J0JyR6lu1E6Q4YuB4QNm+ev1obPMLdEt8RhgvIi/NfEfQf0L1r3TPi3wLho1R61PllPm27He8/1CjCnMyWBzgX+DCjJ7vyRXObMZ/MbhMBKbYpeTcejsKpYX//PPr1yvldp1YPC0wPKp+iqmWxoDDeHXbo8xYRFXDA8rnY5RfkwxxffH7o534vYn8FCZEtqybQuo7pumu6Ah9PsC05tP38syU71ltasljGIA35BgCdSO+9r5rTaBnbO9++Q==",
"body": "{\n \"vin\": \"AUTOQAPSV00000007\",\n \"testResultId\": \"116c3a4b-0d58-432b-a3da-6613a49939c3\",\n \"bodyType\": {\n \"code\": \"s\",\n \"description\": \"single decker\"\n },\n \"countryOfRegistration\": \"gb\",\n \"createdAt\": \"2024-12-11T12:24:57.871Z\",\n \"createdById\": \"c6d97def-ca70-498a-878c-928b1d13a312\",\n \"createdByName\": \"Joseph Richards\",\n \"euVehicleCategory\": \"m3\",\n \"make\": \"IRIZAR\",\n \"model\": null,\n \"noOfAxles\": 2,\n \"numberOfSeats\": 51,\n \"numberOfWheelsDriven\": null,\n \"odometerReading\": null,\n \"odometerReadingUnits\": null,\n \"preparerId\": \"No preparer ID given\",\n \"preparerName\": null,\n \"reasonForCancellation\": null,\n \"reasonForCreation\": \"Test conducted\",\n \"recalls\": {\n \"hasRecall\": false,\n \"manufacturer\": null\n },\n \"systemNumber\": \"90000002\",\n \"testEndTimestamp\": \"2024-12-11T12:24:57.629Z\",\n \"testerEmailAddress\": \"SA_Joseph.Richards@dvsatest-cloud.uk\",\n \"testerName\": \"Joseph Richards\",\n \"testerStaffId\": \"c6d97def-ca70-498a-878c-928b1d13a312\",\n \"testStartTimestamp\": \"2024-12-11T12:24:07.263Z\",\n \"testStationName\": \"Abshire-Kub\",\n \"testStationPNumber\": \"09-4129632\",\n \"testStationType\": \"gvts\",\n \"testStatus\": \"submitted\",\n \"testTypes\": \n {\n \"additionalCommentsForAbandon\": null,\n \"additionalNotesRecorded\": null,\n \"certificateNumber\": \"zy74747\",\n \"createdAt\": \"2024-12-11T12:24:57.871Z\",\n \"customDefects\": [],\n \"defects\": [],\n \"emissionStandard\": null,\n \"fuelType\": null,\n \"lastSeatbeltInstallationCheckDate\": null,\n \"lastUpdatedAt\": \"2024-12-11T12:24:57.871Z\",\n \"modificationTypeUsed\": null,\n \"modType\": null,\n \"name\": \"Specialist test\",\n \"numberOfSeatbeltsFitted\": null,\n \"particulateTrapFitted\": null,\n \"particulateTrapSerialNumber\": null,\n \"prohibitionIssued\": false,\n \"reasonForAbandoning\": \"The driver at the time of the examination did not remain with the vehicle and operate the controls, or did not comply with a reasonable request of the examiner in the course of his duties, or did not remove and refit panels as requested\",\n \"seatbeltInstallationCheckDate\": false,\n \"secondaryCertificateNumber\": null,\n \"smokeTestKLimitApplied\": null,\n \"testCode\": \"7ll\",\n \"testExpiryDate\": null,\n \"testNumber\": \"W01A75655\",\n \"testResult\": \"abandoned\",\n \"testTypeClassification\": \"Annual NO CERTIFICATE\",\n \"testTypeEndTimestamp\": \"2024-12-11T12:24:57.631Z\",\n \"testTypeId\": \"150\",\n \"testTypeName\": \"DDA Schedule 1, 2 or 3\",\n \"testTypeStartTimestamp\": \"2024-12-11T12:24:26.547Z\"\n }\n ,\n \"testVersion\": \"current\",\n \"vehicleClass\": {\n \"code\": \"l\",\n \"description\": \"large psv(ie: greater than 23 seats)\"\n },\n \"vehicleConfiguration\": \"rigid\",\n \"vehicleId\": \"QA07PSV\",\n \"vehicleSize\": \"large\",\n \"vehicleType\": \"psv\",\n \"vrm\": \"QA07PSV\"\n}",
"messageAttributes": {},
"md5OfBody": "9586727cbc9f3312542387099b60982c",
"eventSource": "aws:sqs",
"eventSourceARN": "arn:aws:sqs:eu-west-2:006106226016:cert-gen-q",
"awsRegion": "eu-west-2"
},
{
"messageId": "g48c54a0-7027-4e37-b7e8-c8d231511z009",
"receiptHandle": "AQEBJcBvTRZ1W2LSaUJ0g0ELXlqA8WCL4zJxO63wu0YOVhx44xxxPhsnc+/Q9+1vOPYO+3HupEjXzGRSvfPY5rEEJkgCJe4/RQ+q2kU5LsmJEr1qE/CTdIYe5X/75XeMQ523KKpdNsD9tRhyvEpPpSu50byGbz7J0JyR6lu1E6Q4YuB4QNm+ev1obPMLdEt8RhgvIi/NfEfQf0L1r3TPi3wLho1R61PllPm27He8/1CjCnMyWBzgX+DCjJ7vyRXObMZ/MbhMBKbYpeTcejsKpYX//PPr1yvldp1YPC0wPKp+iqmWxoDDeHXbo8xYRFXDA8rnY5RfkwxxffH7o534vYn8FCZEtqybQuo7pumu6Ah9PsC05tP38syU71ltasljGIA35BgCdSO+9r5rTaBnbO9++Q==",
Expand Down
Loading

0 comments on commit 022d26c

Please sign in to comment.