Skip to content

Commit

Permalink
Fix/1101 event sdk update (#142)
Browse files Browse the repository at this point in the history
* Update non-event-sdk packages

* Add new required tracestate header to fix usage of event-sdk test

* reenable missing tests

* Bump package version to 8.6.4
  • Loading branch information
lewisdaly authored Dec 9, 2019
1 parent 82d9516 commit 352b54e
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 46 deletions.
1 change: 0 additions & 1 deletion .ncurc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"reject": [
"@mojaloop/event-sdk"
]
}
84 changes: 42 additions & 42 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
@@ -1,6 +1,6 @@
{
"name": "@mojaloop/central-services-shared",
"version": "8.6.3",
"version": "8.6.4",
"description": "Shared code for central services",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -46,7 +46,7 @@
"@hapi/catbox-memory": "4.1.1",
"@mojaloop/central-services-error-handling": "8.6.2",
"@mojaloop/central-services-logger": "8.6.0",
"@mojaloop/event-sdk": "8.3.0",
"@mojaloop/event-sdk": "8.6.1",
"axios": "0.19.0",
"base64url": "3.0.1",
"clone": "2.1.2",
Expand All @@ -61,7 +61,7 @@
"@modusbox/mojaloop-sdk-standard-components": "0.0.39",
"@hapi/hapi": "18.4.0",
"@hapi/joi": "16.1.8",
"chance": "1.1.3",
"chance": "1.1.4",
"faucet": "0.0.1",
"npm-audit-resolver": "2.1.0",
"npm-check-updates": "3.2.2",
Expand Down
2 changes: 2 additions & 0 deletions test/unit/util/hapi/plugins/eventPlugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Test('Event plugin test', async (pluginTest) => {
method: 'POST',
url: '/',
headers: {
tracestate: 'acmevendor=12312312',
traceparent: '00-9732ca939fbd9f755b5bc07c227c4cd5-acd6fbed1e66219c-00'
}
})
Expand All @@ -113,6 +114,7 @@ Test('Event plugin test', async (pluginTest) => {
assert.equal(span.spanContext.service, 'test_route')
assert.equal(span.spanContext.traceId, '9732ca939fbd9f755b5bc07c227c4cd5')
assert.equal(span.spanContext.parentSpanId, 'acd6fbed1e66219c')

assert.end()
} catch (e) {
assert.fail()
Expand Down

0 comments on commit 352b54e

Please sign in to comment.