Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cb2-12307): refactor cert gen #169

Open
wants to merge 92 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
5470320
added missing event validation test
me-matt May 13, 2024
adf59d9
simplified missing event validation
me-matt May 13, 2024
80977ca
refactored cancelled test result type
me-matt May 13, 2024
43714b6
formatting on cert gen
me-matt May 13, 2024
d626037
validate using uuid
me-matt May 13, 2024
31e12c5
update to use eslint
me-matt May 13, 2024
c061c05
first pass at linting fixes
me-matt May 13, 2024
02859c5
isolated the test suites a bit
me-matt May 14, 2024
84c8681
replaced hand rolled di
me-matt May 14, 2024
094e24a
added cancelled unit test
me-matt May 14, 2024
c6ca226
fix int test
me-matt May 14, 2024
fb70e10
added cancelled test
me-matt May 14, 2024
bbde06e
added jest coverage ext
me-matt May 14, 2024
28d25dc
isolated interfaces
me-matt May 14, 2024
c0bb1d1
added test service (called for now)
me-matt May 14, 2024
67c060c
refactored msva test to test service
me-matt May 14, 2024
4bcf39a
refactored iva test to test service
me-matt May 14, 2024
352ef6a
refactored iva check to test service
me-matt May 14, 2024
997f42f
refactored adr check to test service
me-matt May 14, 2024
0f3f539
added tech records repository
me-matt May 14, 2024
3382ace
refactored call search tech records to tech record repository
me-matt May 15, 2024
c12d861
refactored call get tech records to tech record repository
me-matt May 15, 2024
e45d7ff
refactored process current record to tech record repository
me-matt May 15, 2024
20ff4af
refactored get vehicle make model to tech record repository
me-matt May 15, 2024
44f51dd
added test station repository
me-matt May 15, 2024
da0fa52
refactored get test stations to test station repository
me-matt May 15, 2024
dd6bf2c
added certificate payload generator
me-matt May 15, 2024
c4256bb
refactored roadworthiness checks to test service
me-matt May 16, 2024
1abe904
refactored payload generation to payload generator
me-matt May 17, 2024
0ce9a0f
added trailer repository
me-matt May 17, 2024
e0a2a55
refactored get trailer registration to trailer repository
me-matt May 17, 2024
af7b54a
added test result repository
me-matt May 17, 2024
548f9aa
refactored get odometer history to test results repository
me-matt May 17, 2024
48005f8
refactored is valid for trn to test service
me-matt May 17, 2024
1ce2c87
refactored get odometer history tests
me-matt May 17, 2024
f79a479
added tech records service
me-matt May 17, 2024
02d32e5
refactored get vehicle make and model to tech records service
me-matt May 17, 2024
e5871bf
added defect service
me-matt May 17, 2024
c495438
refactored format vehicle additional defects to defect service
me-matt May 17, 2024
5b9727c
refactored calculate approval retest to defect service
me-matt May 17, 2024
4f32120
refactored flatten defects to defect service
me-matt May 17, 2024
d10ba32
refactored format defect to defect service
me-matt May 17, 2024
5e87a2a
refactored is welsh cert available to test service
me-matt May 17, 2024
a5e19db
added defect repository
me-matt May 17, 2024
21f119b
refactored get defect translation to defect repository
me-matt May 17, 2024
357940b
added translation service
me-matt May 17, 2024
caee041
refactored convert location to translation service
me-matt May 17, 2024
85bb4f6
refactored get weight details to tech records service
me-matt May 17, 2024
b9ab422
refactored get adr details to teceh records service
me-matt May 17, 2024
c14704f
refactored filter flat defects to defects service
me-matt May 17, 2024
ec0bfa4
added msva payload generator
me-matt May 17, 2024
2c35680
refactored payload generators to respective generators files
me-matt May 20, 2024
edb3bda
refactored format defects to defect service
me-matt May 20, 2024
6ad8e7f
moved trailer repository
me-matt May 20, 2024
cf096bf
moved tech records repository
me-matt May 20, 2024
60762d5
moved test results repository
me-matt May 20, 2024
4f7fed2
moved test station repository
me-matt May 20, 2024
68b8d2c
moved defect repository
me-matt May 20, 2024
2fd934c
moved msva payload generator
me-matt May 20, 2024
da845de
moved iva payload generator
me-matt May 20, 2024
2334045
moved rwt payload generator
me-matt May 20, 2024
4be746b
moved adr payload generator
me-matt May 20, 2024
aa7d8c6
moved pass or fail payload generator
me-matt May 20, 2024
e2ac783
added sonar scanner
me-matt May 21, 2024
e3b5a41
fixed serverless for local development
me-matt May 22, 2024
c520f25
reduce logging noise
me-matt May 22, 2024
74b7dfd
mock service conforms to service interface
me-matt May 22, 2024
903fb5a
formatting
me-matt May 22, 2024
72bc18d
refactored DI and improved request handler
me-matt May 22, 2024
c050d97
cleaned up imports
me-matt May 22, 2024
ebbdb6e
refactor the payload generation into the generator
me-matt May 23, 2024
a56c033
simplified constructors
me-matt May 23, 2024
831ecea
formatting
me-matt May 24, 2024
7fdbeac
replaced manual retries with smithy retry policy
me-matt May 24, 2024
afaed46
refactored watermark and signature to commands
me-matt May 24, 2024
d5508de
refactored test history command
me-matt May 24, 2024
0322cb1
refactored command structure
me-matt May 24, 2024
aa60743
use enums
me-matt May 28, 2024
8f20475
extraneous lodash dependency
me-matt May 28, 2024
6964944
firmed up the typings
me-matt May 28, 2024
6c6a5ee
refactored defect classes to vertical grouping
me-matt May 28, 2024
e5d364e
refactored tech record classes to vertical grouping
me-matt May 28, 2024
22cc1a5
refactored test result classes to vertical grouping
me-matt May 28, 2024
adc6f7a
refactored test station classes to vertical grouping
me-matt May 28, 2024
dd160fa
refactored trailer classes to vertical grouping
me-matt May 28, 2024
218e78e
isolated certificate types
me-matt May 28, 2024
e44946f
use enums
me-matt May 28, 2024
b5c93a3
refactored certificate classes to vertical grouping
me-matt May 28, 2024
a0f1426
isolated defect payload command
me-matt May 28, 2024
f99b0b7
removed more any types
me-matt May 28, 2024
ad309fc
refactored make and model command
me-matt May 28, 2024
18098c5
refactored odometer history command
me-matt May 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": [
"@dvsa/eslint-config-ts"
],
"settings": {
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "off",
"jest/no-identical-title": "off",
"jest/no-conditional-expect": "off"
// "import/no-extraneous-dependencies": [
// "error",
// {
// "devDependencies": true
// }
// ],
// "max-len":["error", {
// "code": 150,
// "ignoreComments": true
// }]
}
}
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug NPM Script",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"start:debug"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": ["<node_internals>/**"]
}
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
{
"jest.outputConfig": {
"revealOn": "run",
"revealWithFocus": "test-results",
"clearOnRun": "none"
},
"testing.openTesting": "neverOpen",
"search.exclude": {
"**/node_modules": false
}
}
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ services:
ports:
- "7000:7000" # s3 server
- "9991:9991" # data store
sqs:
container_name: sqs
image: softwaremill/elasticmq
ports:
- "9324:9324"
- "9325:9325"
Loading
Loading