Last active
May 24, 2023 06:27
-
-
Save bobeal/72d5f44a2c8ee3c85081610a507e7d95 to your computer and use it in GitHub Desktop.
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
============================================================================== | |
028 01 :: Check that you can create a subscription | |
============================================================================== | |
Create Subscription :: Check that you can create a subscription .{ | |
"method": "POST", | |
"url": "http://localhost:8080/ngsi-ld/v1/subscriptions/", | |
"headers": { | |
"User-Agent": "python-requests/2.28.2", | |
"Accept-Encoding": "gzip, deflate", | |
"Accept": "*/*", | |
"Connection": "keep-alive", | |
"Content-Type": "application/ld+json", | |
"Content-Length": "397" | |
}, | |
"body": { | |
"id": "urn:ngsi-ld:Subscription:5670251438106986", | |
"type": "Subscription", | |
"timeInterval": 5, | |
"entities": [ | |
{ | |
"type": "Building" | |
} | |
], | |
"notification": { | |
"format": "keyValues", | |
"endpoint": { | |
"uri": "http://my.endpoint.org/notify", | |
"accept": "application/json" | |
} | |
}, | |
"@context": [ | |
"https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld" | |
] | |
} | |
} | |
{ | |
"url": "http://localhost:8080/ngsi-ld/v1/subscriptions/", | |
"headers": { | |
"Vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers", | |
"Location": "/ngsi-ld/v1/subscriptions/urn:ngsi-ld:Subscription:5670251438106986", | |
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate", | |
"Pragma": "no-cache", | |
"Expires": "0", | |
"X-Content-Type-Options": "nosniff", | |
"X-Frame-Options": "DENY", | |
"X-XSS-Protection": "0", | |
"Referrer-Policy": "no-referrer", | |
"content-length": "0" | |
}, | |
"status_code": 201, | |
"reason": "Created", | |
"body": null | |
} | |
..{ | |
"method": "GET", | |
"url": "http://localhost:8080/ngsi-ld/v1/subscriptions/urn:ngsi-ld:Subscription:5670251438106986", | |
"headers": { | |
"User-Agent": "python-requests/2.28.2", | |
"Accept-Encoding": "gzip, deflate", | |
"Accept": "application/json", | |
"Connection": "keep-alive", | |
"Content-Type": "application/ld+json", | |
"Link": "<https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\";type=\"application/ld+json\"" | |
}, | |
"body": null | |
} | |
{ | |
"url": "http://localhost:8080/ngsi-ld/v1/subscriptions/urn:ngsi-ld:Subscription:5670251438106986", | |
"headers": { | |
"Vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers", | |
"Link": "<https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", | |
"Content-Type": "application/json", | |
"Content-Length": "257", | |
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate", | |
"Pragma": "no-cache", | |
"Expires": "0", | |
"X-Content-Type-Options": "nosniff", | |
"X-Frame-Options": "DENY", | |
"X-XSS-Protection": "0", | |
"Referrer-Policy": "no-referrer" | |
}, | |
"status_code": 200, | |
"reason": "OK", | |
"body": { | |
"id": "urn:ngsi-ld:Subscription:5670251438106986", | |
"type": "Subscription", | |
"entities": [ | |
{ | |
"type": "Building" | |
} | |
], | |
"timeInterval": 5, | |
"notification": { | |
"format": "keyValues", | |
"endpoint": { | |
"uri": "http://my.endpoint.org/notify", | |
"accept": "application/json" | |
} | |
}, | |
"status": "active" | |
} | |
} | |
.F{ | |
"method": "DELETE", | |
"url": "http://localhost:8080/ngsi-ld/v1/subscriptions/urn:ngsi-ld:Subscription:5670251438106986", | |
"headers": { | |
"User-Agent": "python-requests/2.28.2", | |
"Accept-Encoding": "gzip, deflate", | |
"Accept": "*/*", | |
"Connection": "keep-alive", | |
"Content-Length": "0" | |
}, | |
"body": null | |
} | |
{ | |
"url": "http://localhost:8080/ngsi-ld/v1/subscriptions/urn:ngsi-ld:Subscription:5670251438106986", | |
"headers": { | |
"Vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers", | |
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate", | |
"Pragma": "no-cache", | |
"Expires": "0", | |
"X-Content-Type-Options": "nosniff", | |
"X-Frame-Options": "DENY", | |
"X-XSS-Protection": "0", | |
"Referrer-Policy": "no-referrer" | |
}, | |
"status_code": 204, | |
"reason": "No Content", | |
"body": null | |
} | |
Create Subscription :: Check that you can create a subscription | FAIL | | |
Item root['@context'] removed from dictionary. | |
------------------------------------------------------------------------------ | |
028 01 :: Check that you can create a subscription | FAIL | | |
1 test, 0 passed, 1 failed | |
============================================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment