[
https://issues.jboss.org/browse/DROOLS-4507?page=com.atlassian.jira.plugi...
]
Daniele Zonca commented on DROOLS-4507:
---------------------------------------
_Should the response be the same if kie server is not available or in case if some
exception did appeared (container id was not found)_
The envelope object is the same {{ServiceResponse}} but the error message and HTTP code
will be different:
- 404: container not found
- 400: malformed scesim file provided
- 200: test executed with OK or KO (a failed test is not a service failure)
- 500: any other unexpected exception
_What should response kie-server in case if container was corrupted_
If the container cannot be retrieved it will fail with 404, otherwise if the kieContainer
is available but not valid for any reason it will probably fail with an internal server
error
_Should job be restarted if the job at container was not successfully executed?_
Nope, each call is single and there is no internal recovery mechanism
_What roles should the tech user has to complete the execution_
As far as I know it is enough for a user to be part of {{kie-server}} group to be able to
execute REST calls
_Is that API should be public in the meaning that we do want to provide it for anyone who
has the link, or we could allow the execution for person who sends certain header
information?_
There is no specific requirement for this new service so it will be used the same group
based filtering of other services
_Shouldn't we save somewhere the userId who launched the scesim?_
There is no audit requirement for this new service
Ability to externally execute project defined tests.
----------------------------------------------------
Key: DROOLS-4507
URL:
https://issues.jboss.org/browse/DROOLS-4507
Project: Drools
Issue Type: Enhancement
Components: Scenario Simulation and Testing
Reporter: Paul Brown
Assignee: Daniele Zonca
Priority: Major
Provide the ability to externally invoke project define tests scenario i.e via a rest
api.
This is required in order for project defined tests to be reused and executed as part of
a delivery pipeline and not from within business central.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)