Commit b7365100 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add description to test V2X messages distribution

parent 4f5a6805
Loading
Loading
Loading
Loading
+38 −31
Original line number Original line Diff line number Diff line
@@ -25,38 +25,45 @@ Objective:


# Annex 1: The CURL commands for testing V2X message distribution
# Annex 1: The CURL commands for testing V2X message distribution


To get V2X unicatst provisonning for a specific PoA:

```sh
$ curl https://try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=ecgi,268738486303 --header "Accept: application/json"
```

To subscribe for a V2X message distribution:
To subscribe for a V2X message distribution:


```sh
```sh
$ curl --verbose --request POST http://mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions --header "Accept: application/json" --data "{\"subscriptionType\": \"V2xMsgSubscription\",\"callbackReference\":\"http://yanngarcia.ddns.net:3000/vis-v2x-msg/1\",\"filterCriteria\":{\"stdOrganization\":\"ETSI\",\"msgType\": [1,2]},\"expiryDeadline\":{\"seconds\": 1977846800,\"nanoseconds\": 0}}"
$ curl --request POST https://try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions --header "Accept: application/json" --data "{\"subscriptionType\": \"V2xMsgSubscription\",\"callbackReference\":\"http://xxx.ddns.net:3000/vis-v2x-msg/1\",\"filterCriteria\":{\"stdOrganization\":\"ETSI\",\"msgType\": [1,2]},\"expiryDeadline\":{\"seconds\": 1977846800,\"nanoseconds\": 0}}"
```
```


To get the created subscription:
To get the created subscription:


```sh
```sh
$ curl --verbose --request GET http://mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1 --header "Accept: application/json"
$ curl https://try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1 --header "Accept: application/json"
```
```


To get the list of the current subscriptions list:
To get the list of the current subscriptions list:
```sh
```sh
$ curl --verbose --request GET http://mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions --header "Accept: application/json"
$ curl https://try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions --header "Accept: application/json"
```
```


To publish a message after a subscription:
To publish a message after a subscription:


```sh
```sh
$ curl --verbose --request POST http://yanngarcia.ddns.net:30000/vis-v2x-msg/1 --header "Accept: application/json" --data "{_links:{subscription:{href:http://mec-platform.etsi.org/sbxykqjr17/vis/v2/subscriptions/1}},msgContent:031200f101038100400380818c20400100005802001ee600003c0004e548140072066b24d01eb78149084d5571800000001eb78b7b084dc18b07d000000000000007d20000020171d95b9ac7b8ecadcd001b90c0c1b4e7a4303036583545c747b7397938bffffffe11dbba1f0b01e80630f1c18025a76240a7f2ea020b63387f2ea020b63387f2ea020b63387f2ea020b63387f2ea020b633850012500020b8912896a0d1eb78149084d557106a2810101800300803163f35536c83ed010830000000000224e2ca0840024010280012481040301fffc80012581050401ffffff808083699e543101421024edf050b6f1e3b7ddf7ccc65cb31b1f72ec5dad924c4a4e01808070eefd2444f43f9884787d5da52e2e5a4b3ac71e87c254f6b8abefef8aa2c030a6201b45c1095594319607fa053b92ddc798f72cfde4800c97faa3fc9c51afdd808083c03e25010fe98f936b8d5be9695df3a5337e42a08ecff43c93e16ee0016397303199e961825786e715f096cf7e27556a3a0a0d9fd935d87a5606cf81fe5e24,msgEncodeFormat:hexadump,msgType:1,notificationType:V2xMsgNotification,stdOrganization:v2x_msg,timeStamp:{nanoSeconds:0,seconds:1673420426}}"
$ curl --request POST https://xxx.ddns.net:30000/vis-v2x-msg/1 --header "Accept: application/json" --data "{_links:{subscription:{href:http://try-mec.etsi.org/sbxykqjr17/vis/v2/subscriptions/1}},msgContent:031200f101038100400380818c20400100005802001ee600003c0004e548140072066b24d01eb78149084d5571800000001eb78b7b084dc18b07d000000000000007d20000020171d95b9ac7b8ecadcd001b90c0c1b4e7a4303036583545c747b7397938bffffffe11dbba1f0b01e80630f1c18025a76240a7f2ea020b63387f2ea020b63387f2ea020b63387f2ea020b63387f2ea020b633850012500020b8912896a0d1eb78149084d557106a2810101800300803163f35536c83ed010830000000000224e2ca0840024010280012481040301fffc80012581050401ffffff808083699e543101421024edf050b6f1e3b7ddf7ccc65cb31b1f72ec5dad924c4a4e01808070eefd2444f43f9884787d5da52e2e5a4b3ac71e87c254f6b8abefef8aa2c030a6201b45c1095594319607fa053b92ddc798f72cfde4800c97faa3fc9c51afdd808083c03e25010fe98f936b8d5be9695df3a5337e42a08ecff43c93e16ee0016397303199e961825786e715f096cf7e27556a3a0a0d9fd935d87a5606cf81fe5e24,msgEncodeFormat:hexadump,msgType:1,notificationType:V2xMsgNotification,stdOrganization:v2x_msg,timeStamp:{nanoSeconds:0,seconds:1673420426}}"
```
```


To delete a subscription:
To delete a subscription:
```sh
```sh
$ curl --verbose --request DELETE "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1" --header "Accept: application/json"
$ curl --request DELETE "https://try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1" --header "Accept: application/json"
```
```


To get the log of the meep-vis service:
To get the log of the meep-vis service:


```sh
```sh
$ kubectl logs mec030-1-<deploy_id>-<pod_id> meep-vis -n <namespace> # e.g. kubectl logs mec030-1-57f7cbc494-tll5n meep-vis -n sbxykqjr17
$ kubectl get pods -A
$ kubectl logs mec030-1-<deploy_id>-<pod_id> meep-vis -n <namespace> # e.g. kubectl logs mec030-1-57f7cbc494-drfmw meep-vis -n sbxykqjr17
```
```


\
\
@@ -84,9 +91,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=ecgi,268738486303",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=ecgi,268738486303",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -121,9 +128,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=latitude=0.00,0.01,longitude=1.00,1.01",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=latitude=0.00,0.01,longitude=1.00,1.01",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -158,7 +165,7 @@ The code below is the the Postman workspace equivalent to the curl requests abov
				],
				],
				"body": {
				"body": {
					"mode": "raw",
					"mode": "raw",
					"raw": "{\r\n  \"subscriptionType\": \"V2xMsgSubscription\",\r\n  \"callbackReference\": \"http://yanngarcia.ddns.net:3000/vis-v2x-msg/1\",\r\n  \"filterCriteria\": {\r\n    \"stdOrganization\": \"ETSI\",\r\n    \"msgType\": [\r\n      1,\r\n      2\r\n    ]\r\n  },\r\n  \"expiryDeadline\": {\r\n    \"seconds\": 1977836800,\r\n    \"nanoseconds\": 0\r\n  }\r\n}",
					"raw": "{\r\n  \"subscriptionType\": \"V2xMsgSubscription\",\r\n  \"callbackReference\": \"http://xxx.ddns.net:3000/vis-v2x-msg/1\",\r\n  \"filterCriteria\": {\r\n    \"stdOrganization\": \"ETSI\",\r\n    \"msgType\": [\r\n      1,\r\n      2\r\n    ]\r\n  },\r\n  \"expiryDeadline\": {\r\n    \"seconds\": 1977836800,\r\n    \"nanoseconds\": 0\r\n  }\r\n}",
					"options": {
					"options": {
						"raw": {
						"raw": {
							"language": "json"
							"language": "json"
@@ -166,9 +173,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				},
				},
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -196,9 +203,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -227,9 +234,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -265,9 +272,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				},
				},
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/publish_v2x_message",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/publish_v2x_message",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -295,9 +302,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/subscriptions/1",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -326,9 +333,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -357,9 +364,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=ecgi",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=ecgi",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -394,9 +401,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=longitude,0.00",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=longitude,0.00",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -431,9 +438,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=latitude=0.00",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=latitude=0.00",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],
@@ -468,9 +475,9 @@ The code below is the the Postman workspace equivalent to the curl requests abov
					}
					}
				],
				],
				"url": {
				"url": {
					"raw": "mec-platform.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=latitude=0.00,0.01,longitude=1.00",
					"raw": "try-mec.etsi.org/sbxykqjr17/mep1/vis/v2/queries/uu_unicast_provisioning_info?location_info=latitude=0.00,0.01,longitude=1.00",
					"host": [
					"host": [
						"mec-platform",
						"try-mec",
						"etsi",
						"etsi",
						"org"
						"org"
					],
					],