Skip to content

Commit

Permalink
Removed the test with restart of broker
Browse files Browse the repository at this point in the history
  • Loading branch information
kzangeli committed Oct 4, 2024
1 parent d4aeea1 commit 2babe4a
Showing 1 changed file with 16 additions and 159 deletions.
175 changes: 16 additions & 159 deletions test/functionalTest/cases/0000_dds/dds_notifications.test
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ ftClientStart -t 0-5000
# 02. Ask FT to publish an entity urn:E2 on topic 'P2'
# 03. Ask FT to publish an entity urn:E3 on topic 'P3'
# 04. Ask FT to publish an entity urn:E4 on topic 'P4'
# 05. Query the broker for all its entities, see all three (urn:ngsi-ld:camera:cam1, urn:ngsi-ld:arm:arm1, and the default entity))
# 05. Query the broker for all its entities, see all three (urn:ngsi-ld:camera:cam1, urn:ngsi-ld:arm:arm1, and the default entity))
#
# Later:
# 06. Kill the broker and empty its databae, then restart the broker again
# 07. Query the broker for all its entities, see all three - should be present due to the DDS discovery
#
Expand Down Expand Up @@ -106,21 +108,21 @@ echo
echo


echo "06. Kill the broker and empty its database, then restart the broker again"
echo "========================================================================="
brokerStop
dbInit CB > /dev/null
orionldStart CB -mongocOnly -dds -ddsConfigFile /tmp/ddsConfig > /dev/null
echo Orion-LD is running again
echo
echo
# echo "06. Kill the broker and empty its database, then restart the broker again"
# echo "========================================================================="
# brokerStop
# dbInit CB > /dev/null
# orionldStart CB -mongocOnly -dds -ddsConfigFile /tmp/ddsConfig > /dev/null
# echo Orion-LD is running again
# echo
# echo


echo "07. Query the broker for all its entities, see all three - should be present due to the DDS discovery "
echo "======================================================================================================"
orionCurl --url /ngsi-ld/v1/entities?local=true
echo
echo
# echo "07. Query the broker for all its entities, see all three - should be present due to the DDS discovery "
# echo "======================================================================================================"
# orionCurl --url /ngsi-ld/v1/entities?local=true
# echo
# echo


--REGEXPECT--
Expand Down Expand Up @@ -292,151 +294,6 @@ Link: <https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-contextREGEX(.*)
]


06. Kill the broker and empty its database, then restart the broker again
=========================================================================
Orion-LD is running again


07. Query the broker for all its entities, see all three - should be present due to the DDS discovery
======================================================================================================
HTTP/1.1 200 OK
Content-Length: 1438
Content-Type: application/json
Date: REGEX(.*)
Link: <https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-contextREGEX(.*)

[
{
"ddsType": {
"type": "Property",
"value": "fastdds"
},
"id": "urn:ngsi-ld:camera:cam1",
"shutterSpeed": {
"participantId": {
"type": "Property",
"value": "REGEX(.*)"
},
"publishedAt": {
"type": "Property",
"value": REGEX(.*)
},
"type": "Property",
"value": {
"data": {
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0": {
"b": false,
"f": 0,
"i": 0,
"ia": [
0,
0
],
"s": "abc"
}
},
"type": "NgsildSample"
}
},
"type": "Camera"
},
{
"armReach": {
"participantId": {
"type": "Property",
"value": "REGEX(.*)"
},
"publishedAt": {
"type": "Property",
"value": REGEX(.*)
},
"type": "Property",
"value": {
"data": {
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0": {
"b": false,
"f": 0,
"i": 2,
"ia": [
0,
0
],
"s": ""
}
},
"type": "NgsildSample"
}
},
"ddsType": {
"type": "Property",
"value": "fastdds"
},
"id": "urn:ngsi-ld:arm:arm1",
"type": "Arm"
},
{
"P3": {
"participantId": {
"type": "Property",
"value": "REGEX(.*)"
},
"publishedAt": {
"type": "Property",
"value": REGEX(.*)
},
"type": "Property",
"value": {
"data": {
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0": {
"b": false,
"f": 3.14,
"i": 0,
"ia": [
0,
0
],
"s": ""
}
},
"type": "NgsildSample"
}
},
"P4": {
"participantId": {
"type": "Property",
"value": "REGEX(.*)"
},
"publishedAt": {
"type": "Property",
"value": REGEX(.*)
},
"type": "Property",
"value": {
"data": {
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0": {
"b": false,
"f": 4.14,
"i": 4,
"ia": [
0,
0
],
"s": "p4"
}
},
"type": "NgsildSample"
}
},
"ddsType": {
"type": "Property",
"value": "fastdds"
},
"id": "urn:ngsi-ld:dds:default",
"type": "DDS"
}
]


--TEARDOWN--
ftClientStop
brokerStop
Expand Down

0 comments on commit 2babe4a

Please sign in to comment.