Skip to content

Commit

Permalink
Remove leftovers + suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mapedraza committed Oct 19, 2023
1 parent 50b4ee9 commit 0a8d8c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions test/functional/config-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
10 changes: 0 additions & 10 deletions test/functional/functional-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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: [],
Expand All @@ -79,7 +77,6 @@ describe('FUNCTIONAL TESTS', function () {
}
};

// Measure
const measure = {
url: 'http://localhost:' + config.http.port + '/iot/json',
method: 'POST',
Expand Down Expand Up @@ -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',
Expand All @@ -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: [],
Expand All @@ -166,7 +161,6 @@ describe('FUNCTIONAL TESTS', function () {
}
};

// Measure
const measure = {
url: 'http://localhost:' + config.http.port + '/iot/json',
method: 'POST',
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0a8d8c2

Please sign in to comment.