Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

FIX enable statistics_with_counters.test #4583

Merged
merged 1 commit into from
Jun 11, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,15 @@ brokerStart CB 0 IPv4 -statCounters
#
# All counters has 1 hit.
#
# As a kind of checksum note there are 60 orionCurl ocurrences in this file
# (it can be checked with grep) and that:
# As a kind of checksum note there are 53 orionCurl ocurrences in this file
# (it can be checked with grep orionCurl | grep '\-\-url' | wc -l) and that:
#
# - jsonRequests: 16
# - noPayloadRequests: 42
# - jsonRequests: 11
# - noPayloadRequests: 40
# - textRequest: 1
# - (comented orionCurl) 1
#
# which sum 131

# Not legacy
# which sum 53

orionCurl --url /admin/log > /dev/null

Expand Down Expand Up @@ -207,46 +205,6 @@ orionCurl --url /v2/types/T -X OPTIONS > /dev/null

orionCurl --url /version > /dev/null

# Legacy

payload='{}'
orionCurl --url /v1/contextEntities/E -X DELETE > /dev/null
orionCurl --url /v1/contextEntities/E -X PUT --payload "$payload" > /dev/null

orionCurl --url /v1/contextEntities/E/attributes/A > /dev/null

payload='{
"entities": [
{
"type": "T",
"isPattern": "false",
"id": "E"
}
]
}'
orionCurl --url /ngsi10/queryContext -X POST --payload "$payload" > /dev/null
orionCurl --url /v1/queryContext -X POST --payload "$payload" > /dev/null

payload='{
"contextElements": [
{
"type": "T",
"isPattern": "false",
"id": "E",
"attributes": [
{
"name": "A",
"type": "Text",
"value": "foo"
}
]
}
],
"updateAction": "APPEND"
}'
orionCurl --url /ngsi10/updateContext -X POST --payload "$payload" > /dev/null
orionCurl --url /v1/updateContext -X POST --payload "$payload" > /dev/null

# Get statistics

orionCurl --url /statistics
Expand All @@ -260,11 +218,8 @@ Content-Length: REGEX(\d+)

{
"counters": {
"deprecatedFeatures": {
"ngsiv1Requests": 7
},
"jsonRequests": 16,
"noPayloadRequests": 42,
"jsonRequests": 11,
"noPayloadRequests": 40,
"requests": {
"/admin/log": {
"GET": 1,
Expand Down Expand Up @@ -359,27 +314,6 @@ Content-Length: REGEX(\d+)
"GET": 1
}
},
"requestsLegacy": {
"/ngsi10/queryContext": {
"POST": 1
},
"/ngsi10/updateContext": {
"POST": 1
},
"/v1/contextEntities/{id}": {
"DELETE": 1,
"PUT": 1
},
"/v1/contextEntities/{id}/attributes/{name}": {
"GET": 1
},
"/v1/queryContext": {
"POST": 1
},
"/v1/updateContext": {
"POST": 1
}
},
"textRequests": 1
},
"measuring_interval_in_secs": REGEX(\d+),
Expand Down
Loading