diff --git a/features/Policy-export.png b/features/Policy-export.png index 7b2202abf2d16fed4989a6c3337984337e238248..17db5bb94fec197c3eb2685736f938bc29e52773 100644 Binary files a/features/Policy-export.png and b/features/Policy-export.png differ diff --git a/features/executeTaskList.feature b/features/executeTaskList.feature new file mode 100644 index 0000000000000000000000000000000000000000..a87234353c691bd228544b31b003130d4fdaaac4 --- /dev/null +++ b/features/executeTaskList.feature @@ -0,0 +1,56 @@ +As user +I want to execute the list of tasks +So I am able to bring the consistensy to running multiple asyncronous tasks + +Scenario: Sequential task list processing +Given long running policy is uploaded to the system +And the list of tasks is defined +And the list of tasks contains the group of tasks +And the group of tasks contains task A and task B +When I evaluate a policy +And the task list specified as an input +Then I get successful response with waiting status +And the response contains the taskListObject +And the taskListObject contains the taskList id +And the taskListObject contains the taskIDs of all the tasks + +Scenario: Handling the error for the sequential task list execution +Given task list is configured +And the list of tasks contains the group of tasks +And the group of tasks contains task A, task B and task C +And the group of tasks is configured for running one by one +And the task list has executed +And task B failed +When I request the result of task list execution +Then I get the failure response +And the status of task list execution marked as failed +And the status of task A is marked as successful +And the status of task B is marked as failed +And the status of task C is marked as failed + +Scenario: Handling the error for the parallel task list execution +Given task list is configured +And the list of tasks contains the group of tasks +And the group of tasks contains task A, task B and task C +And the group of tasks is configured for running in parallel +And the task list has executed +And task B failed +When I request the result of task list execution +Then I get the failure response +And the status of task list execution marked as failed +And the status of task A is marked as successful +And the status of task B is marked as failed +And the status of task C is marked as successful + +Scenario: Handling the error for the mixed task list execution +Given task list is configured +And the list of tasks contains the group A and group B +And the group A configured for running sequentially +And the group B configured for running in parallel +And the task list has executed +And one of the tasks in a group B failed +When I request the result of the task list execution +Then I get the failure response +And the status of task list execution marked as failed + + diff --git a/features/policyExport.feature b/features/policyExport.feature deleted file mode 100644 index c204fffe6178fffbae17ae1b423b8ffc4336c39a..0000000000000000000000000000000000000000 --- a/features/policyExport.feature +++ /dev/null @@ -1,10 +0,0 @@ -As user of an external system -I want to have an exported result of the policy in JSON-LD format -So I am able to verify the result of policy evaluation - -Scenario: Export of the policy evaluation result -Given policy configured for being evaluated for export -When I evaluate the policy -Then I get a successful response -And the response is in a JSON-LD format -And the response contains proof section signed by TSA \ No newline at end of file diff --git a/features/trustedInfoExport.feature b/features/trustedInfoExport.feature new file mode 100644 index 0000000000000000000000000000000000000000..e888cd3ae263979380bd9c6374101598437c52c5 --- /dev/null +++ b/features/trustedInfoExport.feature @@ -0,0 +1,29 @@ +As user of an external system +I want to have an exported trusted result of the policy in JSON-LD format +So I am able to verify the result of policy evaluation + +Scenario: Execute task for exporting data from external resource +Given the environment configured for running policy to export +When I execute the task +And the task contains the actual http url to execute +And the finalizer policy contains signing the data logic +Then I get a successful response +And the response contains task id + +Scenario: Execute task for exporting data from the policy evaluation +Given the environment configured for running policy to export +When I execute the task +And the task contains the the request policy to evaluate +And the finalizer policy contains signing the data logic +Then I get a successful response +And the response contains task id + +Scenario: Export of the policy evaluation result +Given value exists inside of the cache +And the format of the value is in JSON-LD +When I execute policy export endpoint +And the request contains task id +Then I get a successful response +And the response contains the exported document + + diff --git a/features/trustedInfoImport.feature b/features/trustedInfoImport.feature new file mode 100644 index 0000000000000000000000000000000000000000..145b098d70f80c39b185f652cfa83eb72da66957 --- /dev/null +++ b/features/trustedInfoImport.feature @@ -0,0 +1,16 @@ +As user +I want to import value to the cache and trust to the imported content +So I can then process the trusted data + +Scenario: Import data +Given DID documents are published +And JSON transformations policy is published +When I send a request to import +And the request contains JSON-LD data +And the request contains allowed DIDs list +And the request contains import interval +And the request contains http sources to import +When I get a successful response +When I evaluate the policy to get result from the cache +Then I get a response +And the response contains transformed data