Skip to content

Update geoproperties-test.js #1018

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 31 additions & 30 deletions test/unit/ngsiv2/ngsiService/geoproperties-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,38 @@
*/

const iotAgentLib = require('../../../../lib/fiware-iotagent-lib');
const utils = require('../../../tools/utils');
const should = require('should');
// FIXME: #1012
//const utils = require('../../../tools/utils');
//const should = require('should');
const logger = require('logops');
const nock = require('nock');
let contextBrokerMock;
const iotAgentConfig = {
autocast: true,
contextBroker: {
host: '192.168.1.1',
port: '1026',
ngsiVersion: 'v2'
},
server: {
port: 4041
},
types: {
Light: {
commands: [],
type: 'Light',
active: [
{
name: 'location',
type: 'geo:json'
}
]
}
},
service: 'smartGondor',
subservice: 'gardens',
providerUrl: 'http://smartGondor.com'
};
//const nock = require('nock');
//let contextBrokerMock;
//const iotAgentConfig = {
// autocast: true,
// contextBroker: {
// host: '192.168.1.1',
// port: '1026',
// ngsiVersion: 'v2'
// },
// server: {
// port: 4041
// },
// types: {
// Light: {
// commands: [],
// type: 'Light',
// active: [
// {
// name: 'location',
// type: 'geo:json'
// }
// ]
// }
// },
// service: 'smartGondor',
// subservice: 'gardens',
// providerUrl: 'http://smartGondor.com'
//};

describe('NGSI-v2 - Geo-JSON types autocast test', function () {
beforeEach(function () {
Expand Down