sonata-nfv / tng-api-gtw

The API Gateway for the 5GTANGO Verification&Validation and Service Platforms (built on top of SONATA).
http://5gtango.eu
Apache License 2.0
1 stars 12 forks source link

Add a route for the creation of test plans from a network service uuid #208

Closed anapolg closed 5 years ago

anapolg commented 5 years ago

The V&V route to POST a group of test plans related to a NS UUID is: http://pre-int-vnv-bcn.5gtango.eu:6100/swagger-ui.html#/test-plan-controller/buildTestPlansByServiceUsingPOST

POST /api/v1/test-plans/services

Portal needs a route to /test-plans/services that supports POST method.

Example from Swagger: curl -X POST "http://pre-int-vnv-bcn.5gtango.eu:6100/api/v1/test-plans/services?confirmRequired=true&serviceUuid=" -H "accept: /"

jbonnet commented 5 years ago

Closed by #209. @srodriguezOPT I think you need to configure the Planner's response in order to avoid the 'chunked' response:

$ curl -X POST "http://pre-int-vnv-bcn.5gtango.eu:32002/api/v3/tests/plans/tests?confirmationRequired=true&testUuid=526bb462-736f-44ff-9ca3-ee393ca71567" -H 'content-type:application/json'
curl: (56) Illegal or missing hexadecimal sequence in chunked-encoding