From 9fac25ab9698c955851a693fb73d6f834c9ab2f7 Mon Sep 17 00:00:00 2001 From: Valery Kalashnikov <kalashnikov.valeri@gmail.com> Date: Mon, 16 May 2022 19:15:15 +0300 Subject: [PATCH] Rename exportPolicy to trustedInfoExport. Add trustedInfoImport --- ...yExport.feature => trustedInfoExport.feature} | 2 +- features/trustedInfoImport.feature | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) rename features/{policyExport.feature => trustedInfoExport.feature} (93%) create mode 100644 features/trustedInfoImport.feature diff --git a/features/policyExport.feature b/features/trustedInfoExport.feature similarity index 93% rename from features/policyExport.feature rename to features/trustedInfoExport.feature index da364a02..e888cd3a 100644 --- a/features/policyExport.feature +++ b/features/trustedInfoExport.feature @@ -1,5 +1,5 @@ As user of an external system -I want to have an exported result of the policy in JSON-LD format +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 diff --git a/features/trustedInfoImport.feature b/features/trustedInfoImport.feature new file mode 100644 index 00000000..145b098d --- /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 -- GitLab