From 0a8d8c21943bdc2c8fa8564b3e109ae17f08b94a Mon Sep 17 00:00:00 2001 From: mapedraza Date: Thu, 19 Oct 2023 09:51:19 +0200 Subject: [PATCH] Remove leftovers + suggestions --- test/functional/config-test.js | 3 +-- test/functional/functional-tests.js | 10 ---------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/test/functional/config-test.js b/test/functional/config-test.js index 094f68597..f312e3d3a 100644 --- a/test/functional/config-test.js +++ b/test/functional/config-test.js @@ -64,8 +64,7 @@ config.iota = { providerUrl: 'http://localhost:4041', deviceRegistrationDuration: 'P1M', defaultType: 'Thing', - defaultResource: '/iot/json', - compressTimestamp: true + defaultResource: '/iot/json' }; config.defaultKey = '1234'; diff --git a/test/functional/functional-tests.js b/test/functional/functional-tests.js index fefa7d1f5..cf799b074 100755 --- a/test/functional/functional-tests.js +++ b/test/functional/functional-tests.js @@ -54,7 +54,6 @@ describe('FUNCTIONAL TESTS', function () { }); describe('Basic group provision without attributes', function () { - // Provision const provision = { url: 'http://localhost:' + config.iota.server.port + '/iot/services', method: 'POST', @@ -64,7 +63,6 @@ describe('FUNCTIONAL TESTS', function () { resource: '/iot/json', apikey: '123456', entity_type: 'TheLightType', - trust: '8970A9078A803H3BL98PINEQRW8342HBAMS', cbHost: 'http://192.168.1.1:1026', commands: [], lazy: [], @@ -79,7 +77,6 @@ describe('FUNCTIONAL TESTS', function () { } }; - // Measure const measure = { url: 'http://localhost:' + config.http.port + '/iot/json', method: 'POST', @@ -130,7 +127,6 @@ describe('FUNCTIONAL TESTS', function () { }); describe('Basic group provision with attributes', function () { - // Provision const provision = { url: 'http://localhost:' + config.iota.server.port + '/iot/services', method: 'POST', @@ -140,7 +136,6 @@ describe('FUNCTIONAL TESTS', function () { resource: '/iot/json', apikey: '123456', entity_type: 'TheLightType2', - trust: '8970A9078A803H3BL98PINEQRW8342HBAMS', cbHost: 'http://192.168.1.1:1026', commands: [], lazy: [], @@ -166,7 +161,6 @@ describe('FUNCTIONAL TESTS', function () { } }; - // Measure const measure = { url: 'http://localhost:' + config.http.port + '/iot/json', method: 'POST', @@ -194,19 +188,15 @@ describe('FUNCTIONAL TESTS', function () { }; beforeEach(function (done) { - // logger.setLevel('DEBUG'); - contextBrokerMock = nock('http://192.168.1.1:1026') .matchHeader('fiware-service', 'smartgondor') .matchHeader('fiware-servicepath', '/gardens') .post('/v2/entities?options=upsert', expectation) .reply(204); - // iotaJson.start(config, function () { request(provision, function (error, response, body) { done(); }); - // }); }); it('should return a 200 OK with no error', function (done) {