This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version test":{"method":"GET","url":"http://orion.lab.fi-ware.eu:1026/version","body":"","overrideMimeType":false,"headers":[["Accept","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"discoverContextAvailability":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi9/discoverContextAvailability","body":"<?xml version=\"1.0\"?>\n<discoverContextAvailabilityRequest>\n <entityIdList>\n <entityId type=\"Room\" isPattern=\"false\">\n <id>Room1</id>\n </entityId>\n </entityIdList>\n <attributeList>\n <attribute>temperature</attribute>\n </attributeList>\n</discoverContextAvailabilityRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"updateContext":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi10/updateContext","body":"<?xml version=\"1.0\" encoding=\"UT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U | |
* | |
* This file is part of Orion Context Broker. | |
* | |
* Orion Context Broker is free software: you can redistribute it and/or | |
* modify it under the terms of the GNU Affero General Public License as | |
* published by the Free Software Foundation, either version 3 of the | |
* License, or (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "bar is: -$BAR-" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fermin@oriondeb:~/src/fiware-orion$ mongo orion | |
MongoDB shell version: 2.4.9 | |
connecting to: orion | |
> db.dropDatabase() | |
{ "dropped" : "orion", "ok" : 1 } | |
> ^C | |
bye | |
fermin@oriondeb:~/src/fiware-orion$ (curl localhost:1026/ngsi10/contextEntities/cie_test_1/attributes/test_1 -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @- ) <<EOF | |
{"value":"10"} | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: latin-1 -*- | |
# Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U | |
# | |
# This file is part of Orion Context Broker. | |
# | |
# Orion Context Broker is free software: you can redistribute it and/or | |
# modify it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: latin-1 -*- | |
# Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U | |
# | |
# This file is part of Orion Context Broker. | |
# | |
# Orion Context Broker is free software: you can redistribute it and/or | |
# modify it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fermin@debvm:~/src/fiware-orion$ (curl localhost:1026/v1/registry/discoverContextAvailability -s -S --header 'Content-Type: application/xml' -d @- | xmllint --format - ) <<EOF | |
<?xml version="1.0"?> | |
<discoverContextAvailabilityRequest> | |
<entityIdList> | |
<entityId type="Room" isPattern="false"> | |
<id>Room2</id> | |
</entityId> | |
</entityIdList> | |
<attributeList> | |
<attribute>temperature</attribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jmeterTestPlan version="1.2" properties="2.6" jmeter="2.11 r1554548"> | |
<hashTree> | |
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Plan de Pruebas" enabled="true"> | |
<stringProp name="TestPlan.comments"></stringProp> | |
<boolProp name="TestPlan.functional_mode">false</boolProp> | |
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="Variables definidas por el Usuario" enabled="true"> | |
<collectionProp name="Arguments.arguments"/> | |
</elementProp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
#include <stdlib.h> | |
#include "mongo/client/dbclient.h" | |
#include "mongo/bson/bson.h" | |
// To build this program: | |
// g++ wc-test.cpp -pthread -lmongoclient -lboost_thread-mt -lboost_system -lboost_regex -o wc-test | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test populating en1, en2, en3, en4, en5 | |
// status equal to running -> en1, en2 | |
> db.entities.find({"attrs.status.value": {$in: [ "running" ]}}, {"_id.id": 1}) | |
{ "_id" : { "id" : "en1", "type" : "device", "servicePath" : "/" } } | |
{ "_id" : { "id" : "en2", "type" : "device", "servicePath" : "/" } } | |
// status equal to running, error -> en1, en2, en4 | |
> db.entities.find({"attrs.status.value": {$in: [ "running", "error" ]}}, {"_id.id": 1}) | |
{ "_id" : { "id" : "en1", "type" : "device", "servicePath" : "/" } } |
OlderNewer