From 6f9b78a48eba3f8d3040bac3060221a33f25deb3 Mon Sep 17 00:00:00 2001 From: Valery Kalashnikov <kalashnikov.valeri@gmail.com> Date: Mon, 16 May 2022 11:53:14 +0300 Subject: [PATCH] Add policy export feature --- features/policyExport.feature | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/features/policyExport.feature b/features/policyExport.feature index c204fffe..25027dd1 100644 --- a/features/policyExport.feature +++ b/features/policyExport.feature @@ -2,9 +2,20 @@ 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: Execute task for JSON-LD exporting +Given the environment configured for running policy for export +When I execute the task +And the task contains the actual http url to execute +And the finalizer policy contains a policy signing the data +Then I get successful response +And the response contains task id + Scenario: Export of the policy evaluation result -Given policy configured for being evaluated for export -When I evaluate the policy +Given value exists inside of the cache +And the format of the value is in JSON-LD +When I execute policy export functionality +And the request contains task id 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 +And the response contains the exported document + + -- GitLab