Produced by Araxis Merge on 4/18/2019 5:55:13 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_API_Core\src\tas\test | kv.js | Wed Apr 3 02:27:56 2019 UTC |
2 | MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_API_Core\src\tas\test | kv.js | Mon Apr 15 17:25:35 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 74 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | "use stric t" | |
2 | ||
3 | const { ex pect, asse rt } = req uire('chai ') | |
4 | ||
5 | const debu g = requir e('debug') ('test') | |
6 | ||
7 | const $tas = require ('../')() | |
8 | ||
9 | /* istanbu l ignore n ext */ | |
10 | if (proces s.env.TAS_ KV_VAULT_N AME && pro cess.env.T AS_KV_APPL ICATION_ID && proces s.env.TAS_ KV_SECRET) { | |
11 | descri be("checks key vault ", () => { | |
12 | it ("gets sec ret", asyn c function () { | |
13 | let samp le01 = awa it $tas.kv .getSecret ('sample01 ') | |
14 | expect(s ample01).t o.eq('the quick fox brown jump s over the lazy dog' ) | |
15 | }) | |
16 | ||
17 | if (process. env.SERVER _IS_ENABLE D) { | |
18 | it("call s external service w ith secret s", async function ( ) { | |
19 | let kvtest_ca_ client_crt = await $ tas.kv.get Secret('kv test-ca-cl ient-crt') | |
20 | let kvtest_cli ent_crt = await $tas .kv.getSec ret('kvtes t-client-c rt') | |
21 | let kvtest_cli ent_key = await $tas .kv.getSec ret('kvtes t-client-k ey') | |
22 | ||
23 | cons t request = require( 'request') | |
24 | requ est({ | |
25 | url: 'http s:// IP ', | |
26 | cert: kvte st_client_ crt, | |
27 | key: kvtes t_client_k ey, | |
28 | rejectUnau thorized: false | |
29 | }, ( err, res, body) => { | |
30 | if (err) { | |
31 | debug( 'ERROR', e rr) | |
32 | } | |
33 | expect(bod y).to.eq(' success\n' ) | |
34 | }) | |
35 | }) | |
36 | } | |
37 | }) | |
38 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.