Skip to content
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