sonata-nfv / tng-vnv-planner

5GTANGO V&V Platform Planner repository
Apache License 2.0
3 stars 8 forks source link

TestPlanController create TestSuite #85

Closed sinaure closed 5 years ago

sinaure commented 5 years ago

http://pre-int-vnv-bcn.5gtango.eu:6100/swagger-ui.html#/test-plan-controller/saveUsingPOST

With this payload (same used for unit tests) the test suite creation show in the created testplan the following ID : a9a45ed4-2206-4a98-a29c-257053794a96null

Check the cause of the 'null' word at the bottom

{"test_plans":[{"test_uuid":"immedia0-8cc7-47a9-9112-6wff9e88wu2k","service_uuid":"immedia0-9429-4a07-b7af-dd429d6d04o3","description":"dummyTestPlan1-index1","index":"1"},{"test_uuid":"input0ts-75f5-4ca1-90c8-12ec80a79836","service_uuid":"input0ns-f213-4fae-8d3f-04358e1e1451","description":"dummyTestPlan2-index3","index":"3"},{"test_uuid":"input0ts-75f5-4ca1-90c8-12ec80a79836","service_uuid":"input0ns-f213-4fae-8d3f-04358e1e1451","description":"dummyTestPlan3-index2","index":"2"},{"testd":{"test_configuration_parameters":[{"content_type":"text/plain","parameter_definition":"location of the test file","parameter_value":"config.cfg","parameter_name":"config_file"},{"content_type":"text/plain","parameter_definition":"bash script to run the http benchmark test within docker container","parameter_value":"runner.sh","parameter_name":"runner_file"}],"author":"Felipe Vicens, ATOS","vendor":"eu.5gtango.atos","name":"test-http-benchmark-advanced-proxy","description":"Test descriptor for http benchmarking advanced proxy","descriptor_schema":"https://raw.githubusercontent.com/sonata-nfv/tng-schema/master/test-descriptor/testdescriptor-schema.yml","test_category":[{"category_type":"performance"}],"version":"0.1","test_tags":["proxy-advanced"],"test_type":"bash","validate":"1"},"description":"dummyTestPlan4-index4","index":"4","nsd":{"author":"Luis Hens","vendor":"eu.5gtango","connection_points":[{"id":"mgmt","interface":"ipv4","type":"management"}],"name":"NS-squid","description":"NS Squidfor year 1 demo","descriptor_schema":"https://raw.githubusercontent.com/sonata-nfv/tng-schema/master/service-descriptor/nsd-schema.yml","network_functions":[{"vnf_vendor":"eu.5gtango","vnf_id":"vnf_squid","vnf_version":"0.1","vnf_name":"squid-vnf"}],"version":"0.1","testing_tags":["proxy-advanced"],"virtual_links":[{"connection_points_reference":["vnf_squid:mgmt","mgmt"],"id":"mgmt","connectivity_type":"E-LAN"}]}}]}

sinaure commented 5 years ago

modify line 130 in ScheduleManager tp.uuid = service.uuid?:tp.nsd?.uuid?:UUID.randomUUID().toString() + test.uuid?:tp.testd?.uuid?:UUID.randomUUID().toString()