From f80828bcb2dd5df1836dcc2735b4984bd4620fc7 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 5 Jun 2020 16:25:36 +0000 Subject: [PATCH] fix(core): update --- qenv.yml | 2 +- test/test.ts | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/qenv.yml b/qenv.yml index a69f7cc..780b6dc 100644 --- a/qenv.yml +++ b/qenv.yml @@ -1,3 +1,3 @@ -vars: +required: - RECEIVER_ENDPOINT - PASSPHRASE \ No newline at end of file diff --git a/test/test.ts b/test/test.ts index 3511cb3..dedd95f 100644 --- a/test/test.ts +++ b/test/test.ts @@ -9,8 +9,8 @@ let testSmartlogReceiver: smartlogDestinationReceiver.SmartlogDestinationReceive tap.test('should create a valid SmartlogDestinationReceiver', async () => { testSmartlogReceiver = new smartlogDestinationReceiver.SmartlogDestinationReceiver({ - receiverEndpoint: process.env.RECEIVER_ENDPOINT, - passphrase: process.env.PASSPHRASE + receiverEndpoint: testQenv.getEnvVarOnDemand("RECEIVER_ENDPOINT"), + passphrase: testQenv.getEnvVarOnDemand("PASSPHRASE") }); }); @@ -20,14 +20,18 @@ tap.test('should send a valid message', async () => { context: { company: 'Lossless GmbH', companyunit: 'Lossless Cloud', - containerName: null, + containerName: 'tapbundle-test', environment: 'local', runtime: 'node', zone: 'gitzone' }, type: 'log', level: 'info', - message: 'This is a message' + correlation: { + id: '123', + type: 'none' + }, + message: 'This is a message', }); });