From 29c548fc2fbd94fbdd9a3764c5aa549e9f471f89 Mon Sep 17 00:00:00 2001 From: Matias Date: Wed, 10 Jul 2019 08:40:05 -0300 Subject: [PATCH] Improving logs view --- server/src/kubernetes/createClone.js | 14 +++++++------- server/src/kubernetes/getClonePodLogs.js | 2 +- test/cloneAdminTest.js | 16 ++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/server/src/kubernetes/createClone.js b/server/src/kubernetes/createClone.js index f6f780dfd..202c20e45 100644 --- a/server/src/kubernetes/createClone.js +++ b/server/src/kubernetes/createClone.js @@ -32,19 +32,19 @@ const createClone = async (clone) => { 'name': 'HOST_STORAGE', 'value': 'localStorage' }) - // TODO Pending setting private bots - // env.push({ - // 'name': 'HOST_ACCESS_KEY', - // 'value': clone.host.accessKey - // }) - - if(clone.authorization){ + if (clone.authorization) { env.push({ 'name': 'AUTHORIZATION', 'value': clone.authorization }) } + if (JSON.parse(process.env.FULL_LOG)) { + env.push({ + 'name': 'FULL_LOG', + 'value': process.env.FULL_LOG + }) + } logger.debug('createClone General Financial Being Configuration.') env.push({ 'name': 'DEV_TEAM', diff --git a/server/src/kubernetes/getClonePodLogs.js b/server/src/kubernetes/getClonePodLogs.js index b37ee34dd..e2d95f2a5 100644 --- a/server/src/kubernetes/getClonePodLogs.js +++ b/server/src/kubernetes/getClonePodLogs.js @@ -20,7 +20,7 @@ const getClonePodLogs = async (cloneName) => { let queryLogs = { 'qs': { - 'tailLines': '20' + 'tailLines': '300' } } if(pod.body.items[0] !== undefined){ diff --git a/test/cloneAdminTest.js b/test/cloneAdminTest.js index 1df9f4770..777c5475f 100644 --- a/test/cloneAdminTest.js +++ b/test/cloneAdminTest.js @@ -14,7 +14,7 @@ describe('Admin clones Clones', function () { assert.isOk('everything', 'everything is ok') }) // it('Add COSS Live Indicator Clones', async function () { - // this.timeout(300000) + // this.timeout(1000000) // var error // var clones = activeCloneList("Coss") // try { @@ -28,7 +28,7 @@ describe('Admin clones Clones', function () { // assert.equal(error, undefined) // }) // it('Add POLONIEX Live Indicator Clones', async function () { - // this.timeout(300000) + // this.timeout(1000000) // var error // var clones = activeCloneList("Poloniex") // try { @@ -43,36 +43,36 @@ describe('Admin clones Clones', function () { // }) describe('Poloniex clones', function () { it('Add Charly', async function () { - this.timeout(3000) + this.timeout(10000) await createClone(cloneList[0]) await createClone(cloneList[1]) assert.isOk('everything', 'everything is ok') }) it('Add Bruce', async function () { - this.timeout(3000) + this.timeout(10000) await createClone(cloneList[2]) assert.isOk('everything', 'everything is ok') }) it('Add Olivia', async function () { - this.timeout(3000) + this.timeout(10000) await createClone(cloneList[3]) await createClone(cloneList[4]) assert.isOk('everything', 'everything is ok') }) it('Add Tom', async function () { - this.timeout(3000) + this.timeout(10000) await createClone(cloneList[5]) await createClone(cloneList[6]) assert.isOk('everything', 'everything is ok') }) it('Add Chris', async function () { - this.timeout(3000) + this.timeout(10000) await createClone(cloneList[7]) await createClone(cloneList[8]) assert.isOk('everything', 'everything is ok') }) it('Add Paula', async function () { - this.timeout(3000) + this.timeout(10000) await createClone(cloneList[9]) await createClone(cloneList[10]) assert.isOk('everything', 'everything is ok')