Skip to content

Commit

Permalink
bugfix/1079 Extensions Longer Than 128 Chars (#90)
Browse files Browse the repository at this point in the history
- truncateExtension config
- fix issues with standardJS
  • Loading branch information
ggrg authored Nov 27, 2019
1 parent f2f17a5 commit a8c21c9
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 29 deletions.
2 changes: 1 addition & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"SWITCH_ENDPOINT": "http://localhost:3001",
"ERROR_HANDLING": {
"includeCauseExtension": false,
"truncateCause": true
"truncateExtensions": true
},
"SIMPLE_ROUTING_MODE": true
}
46 changes: 23 additions & 23 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "quoting-service",
"description": "Quoting Service hosted by a scheme",
"license": "Apache-2.0",
"version": "8.5.0-snapshot",
"version": "8.6.0-snapshot",
"author": "Modusbox",
"contributors": [
"James Bush <[email protected]>",
Expand Down Expand Up @@ -48,9 +48,9 @@
"dependencies": {
"@hapi/good": "8.2.4",
"@hapi/hapi": "18.4.0",
"@mojaloop/central-services-error-handling": "8.5.0",
"@mojaloop/central-services-error-handling": "8.6.2",
"@mojaloop/central-services-logger": "8.1.2",
"@mojaloop/central-services-shared": "8.4.3",
"@mojaloop/central-services-shared": "8.6.1",
"@mojaloop/event-sdk": "8.3.0",
"@mojaloop/ml-number": "8.2.0",
"axios": "0.19.0",
Expand Down
36 changes: 34 additions & 2 deletions test/unit/model/rules.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
const rules = require(`${__ROOT__}/config/rules.json`)
const RulesEngine = require(`${__SRC__}/model/rules`)
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the 'License') and you may not use these files except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Initial contribution
--------------------
The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides.
* Project: Mowali
Contributors
--------------
This is the official list of the Mojaloop project contributors for this file.
Names of the original copyright holders (individuals or organizations)
should be listed with a '*' in the first column. People who have
contributed from an organization can be listed under the organization
that actually holds the copyright for their contributions (see the
Gates Foundation organization for an example). Those individuals should have
their names indented and be marked with a '-'. Email address can be added
optionally within square brackets <email>.
* Gates Foundation
- Name Surname <[email protected]>
* ModusBox
- Georgi Georgiev <[email protected]>
- Vassilis Barzokas <[email protected]>
--------------
******/

const rules = require('../../../config/rules')
const RulesEngine = require('../../../src/model/rules')

describe('RulesEngine', () => {
it('returns the expected events when using jsonpath and notDeepEqual operator', async () => {
Expand Down

0 comments on commit a8c21c9

Please sign in to comment.