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

Feature/#1243 #1245 incorrect http and status code #250

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9081d09
Initial Commit.
May 29, 2019
7cb0d70
Merge branch 'master' of https://github.com/mojaloop/account-lookup-s…
May 29, 2019
8103bcf
Upload domain/participant test.
May 31, 2019
e530052
Upload domain/participant test.
May 31, 2019
459154a
fixes for getParticipantsByTypeId test failing. now functioning properly
rmothilal May 31, 2019
50d1f58
Checking in testing code.
Jun 4, 2019
eef5753
removal of vscode config
rmothilal Jun 4, 2019
f956f76
updated gitignore
rmothilal Jun 4, 2019
4eb87e2
fixes for stubbing issues
rmothilal Jun 4, 2019
a2c0d15
fix for bug https://github.com/mojaloop/project/issues/797
rmothilal Jun 13, 2019
b35ff32
fix for only retrieving default entries
rmothilal Jun 13, 2019
db3ad3b
fix for returning null for valid oracle lookup
rmothilal Jun 13, 2019
68de814
correct database port
rmothilal Jun 13, 2019
06e925a
removal of isOracle for header validation
rmothilal Jun 13, 2019
5a26e8b
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Jul 29, 2019
6d1196a
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Aug 29, 2019
57a7617
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Sep 4, 2019
2755806
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Sep 7, 2019
43472f1
fix for incorrect endpoint being requested for callback response
rmothilal Sep 7, 2019
077aab7
updated with pre-commit to manage dependencies
rmothilal Sep 7, 2019
a9bc5a2
Updated versions of ALS dependencies and updated standard changes
rmothilal Sep 7, 2019
5409714
incorrect port for database being set
rmothilal Sep 7, 2019
3b5e23a
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Sep 16, 2019
7b22f58
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Sep 30, 2019
da55808
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Oct 11, 2019
ff41e83
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Oct 22, 2019
3fa9580
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Nov 5, 2019
749f389
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Nov 11, 2019
0b2174d
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Nov 27, 2019
d5016c7
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Dec 16, 2019
f7f7b79
Merge branch 'master' of github.com:mojaloop/account-lookup-service
rmothilal Feb 27, 2020
514e13e
changes for invalid error code being returned
rmothilal Feb 27, 2020
f7b8766
Merge branch 'master' of github.com:mojaloop/account-lookup-service i…
rmothilal Feb 27, 2020
01104eb
updated version and error thrown
rmothilal Feb 27, 2020
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
12 changes: 1 addition & 11 deletions audit-resolve.json
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{
"decisions": {
"1482|@hapi/hapi": {
"decision": "ignore",
"madeAt": 1582124461246,
"expiresAt": 1582729246881
}
},
"rules": {},
"version": 1
}
{}
74 changes: 73 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "account-lookup-service",
"description": "Account Lookup Service is used to validate Party and Participant lookups",
"version": "9.2.2",
"version": "9.2.3",
"license": "Apache-2.0",
"author": "ModusBox",
"contributors": [
Expand Down Expand Up @@ -96,6 +96,7 @@
"devDependencies": {
"@types/jest": "25.1.3",
"eslint": "6.8.0",
"eslint-plugin-jest": "23.8.0",
"get-port": "5.1.1",
"jest": "25.1.0",
"jest-junit": "10.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'use strict'

const Hapi = require('@hapi/hapi')
const Boom = require('@hapi/boom')
const HapiOpenAPI = require('hapi-openapi')
const Path = require('path')
const Db = require('./lib/db')
Expand Down Expand Up @@ -70,7 +71,7 @@ const createServer = async (port, isApi) => {
validate: {
options: ErrorHandler.validateRoutes(),
failAction: async (request, h, err) => {
throw ErrorHandler.Factory.reformatFSPIOPError(err)
throw Boom.boomify(err)
}
},
payload: {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/handlers/participants.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('/participants', () => {
const response = await server.inject(options)

// Assert
expect(response.statusCode).toBe(500)
expect(response.statusCode).toBe(400)
await server.stop()
})
})