File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -424,4 +424,101 @@ curl -s -o /dev/null -X POST \
424424 ]
425425}'
426426
427+ #
428+ # Ensure that actuators are minimally provisioned.
429+ #
430+ curl -X POST \
431+ ' http://orion:1026/v2/op/update' \
432+ -H ' Content-Type: application/json' \
433+ -H ' fiware-service: openiot' \
434+ -d ' {
435+ "actionType":"APPEND",
436+ "entities":[
437+ {
438+ "id": "Bell:001",
439+ "type": "Bell",
440+ "refStore": {
441+ "type": "Relationship","value": "urn:ngsi-ld:Store:001"
442+ }
443+ },
444+ {
445+ "id": "Door:001",
446+ "type": "Door",
447+ "refStore": {
448+ "type": "Relationship","value": "urn:ngsi-ld:Store:001"
449+ }
450+ },
451+ {
452+ "id": "Lamp:001",
453+ "type": "Lamp",
454+ "refStore": {
455+ "type": "Relationship","value": "urn:ngsi-ld:Store:001"
456+ }
457+ },
458+ {
459+ "id": "Bell:002",
460+ "type": "Bell",
461+ "refStore": {
462+ "type": "Relationship","value": "urn:ngsi-ld:Store:002"
463+ }
464+ },
465+ {
466+ "id": "Door:002",
467+ "type": "Door",
468+ "refStore": {
469+ "type": "Relationship","value": "urn:ngsi-ld:Store:002"
470+ }
471+ },
472+ {
473+ "id": "Lamp:002",
474+ "type": "Lamp",
475+ "refStore": {
476+ "type": "Relationship","value": "urn:ngsi-ld:Store:002"
477+ }
478+ },
479+ {
480+ "id": "Bell:003",
481+ "type": "Bell",
482+ "refStore": {
483+ "type": "Relationship","value": "urn:ngsi-ld:Store:003"
484+ }
485+ },
486+ {
487+ "id": "Door:003",
488+ "type": "Door",
489+ "refStore": {
490+ "type": "Relationship","value": "urn:ngsi-ld:Store:003"
491+ }
492+ },
493+ {
494+ "id": "Lamp:003",
495+ "type": "Lamp",
496+ "refStore": {
497+ "type": "Relationship","value": "urn:ngsi-ld:Store:003"
498+ }
499+ },
500+ {
501+ "id": "Bell:004",
502+ "type": "Bell",
503+ "refStore": {
504+ "type": "Relationship","value": "urn:ngsi-ld:Store:004"
505+ }
506+ },
507+ {
508+ "id": "Door:004",
509+ "type": "Door",
510+ "refStore": {
511+ "type": "Relationship","value": "urn:ngsi-ld:Store:004"
512+ }
513+ },
514+ {
515+ "id": "Lamp:004",
516+ "type": "Lamp",
517+ "refStore": {
518+ "type": "Relationship","value": "urn:ngsi-ld:Store:004"
519+ }
520+ }
521+ ]
522+ }'
523+
427524echo -e " \033[1;32mdone\033[0m"
You can’t perform that action at this time.
0 commit comments