Skip to content

Commit

Permalink
Merge pull request #38 from DEFRA/add-service-code-to-stub
Browse files Browse the repository at this point in the history
add service code to mock data
  • Loading branch information
christopherjturner authored Aug 1, 2024
2 parents 2cfe978 + 9e01a3a commit 96bcd00
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test && npm run lint && npm run format:check
npm run git:pre-commit-hook
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dev:debug": "npm run server:debug",
"format": "prettier --write 'src/**/*.js' '**/*.{js,md,json,config.js,test.js,graphql.js}'",
"format:check": "prettier --check 'src/**/*.js' '**/*.{js,md,json,config.js,test.js,graphql.js}'",
"git:pre-commit-hook": "npm run format:check && npm test && npm run lint",
"postinstall": "npm run setup:husky",
"lint": "npm run lint:js",
"lint:fix": "eslint . --fix",
Expand Down
15 changes: 10 additions & 5 deletions src/config/mock-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,33 @@ const tenantServices = [
'cdp-portal-frontend': {
zone: 'public',
mongo: false,
redis: true
redis: true,
service_code: 'CDP'
},
'cdp-portal-backend': {
zone: 'protected',
mongo: true,
redis: false
redis: false,
service_code: 'CDP'
},
'cdp-self-service-ops': {
zone: 'protected',
mongo: true,
redis: false
redis: false,
service_code: 'CDP'
},
'cdp-user-service': {
zone: 'protected',
mongo: true,
redis: false
redis: false,
service_code: 'CDP'
},
'cdp-env-test-suite': {
zone: 'public',
mongo: false,
redis: false,
test_suite: 'cdp-env-test-suite'
test_suite: 'cdp-env-test-suite',
service_code: 'CDP'
}
}
]
Expand Down

0 comments on commit 96bcd00

Please sign in to comment.