From 96e0152737c796727de6c60f9da3f2435c5d87e9 Mon Sep 17 00:00:00 2001
From: Valery Kalashnikov <kalashnikov.valeri@gmail.com>
Date: Wed, 27 Apr 2022 16:49:11 +0300
Subject: [PATCH] Add OCM communication feature

---
 .gitignore                                           |  1 +
 features/evaluatePolicyGroups.feature                |  0
 ...aluatePolicyAsync.feature => executeTask.feature} |  4 ++--
 features/ocmCommunication.feature                    | 12 ++++++++++++
 .../{resolveDID.feature => resolveDIDSync.feature}   |  0
 5 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 features/evaluatePolicyGroups.feature
 rename features/{evaluatePolicyAsync.feature => executeTask.feature} (88%)
 create mode 100644 features/ocmCommunication.feature
 rename features/{resolveDID.feature => resolveDIDSync.feature} (100%)

diff --git a/.gitignore b/.gitignore
index 2ccbd780..3fd0a599 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ local.properties
 logs
 QA.log
 out
+.DS_Store
 
 # Java
 # Compiled class file
diff --git a/features/evaluatePolicyGroups.feature b/features/evaluatePolicyGroups.feature
new file mode 100644
index 00000000..e69de29b
diff --git a/features/evaluatePolicyAsync.feature b/features/executeTask.feature
similarity index 88%
rename from features/evaluatePolicyAsync.feature
rename to features/executeTask.feature
index 31f6d7d4..b2c90306 100644
--- a/features/evaluatePolicyAsync.feature
+++ b/features/executeTask.feature
@@ -2,7 +2,7 @@ As user
 I want to evaluate the policy asyncronously
 So I am able to execute the developed Rego code in the future non-blocking
 
-Scenario: Evaluate the policy asyncronously
+Scenario: Execute the task during evaluating policy
 Given long running policy is uploaded to the system
 And the task template is uploaded to the system
 When I evaluate the policy asyncronously 
@@ -10,7 +10,7 @@ And the task template is specifyed as an input
 When I get successful response
 And the response contains taskId
 
-Scenario: Getting the result for the executed policy
+Scenario: Getting the result for the executed task
 Given long running policy is executed
 When I request the result of execution
 And request contains the taskId
diff --git a/features/ocmCommunication.feature b/features/ocmCommunication.feature
new file mode 100644
index 00000000..7d06b2b9
--- /dev/null
+++ b/features/ocmCommunication.feature
@@ -0,0 +1,12 @@
+As policy administrator
+I want to evaluate OCM communication feature
+So I am able to create policies to control login functionality
+
+Scenario: Make OCM requests
+Given the policy to query OCM is uploaded to the system
+When I make the request to the OCM
+And the request contains the path
+And the request contains the input JSON object
+Then I get successful response
+And it contains the output JSON object
+
diff --git a/features/resolveDID.feature b/features/resolveDIDSync.feature
similarity index 100%
rename from features/resolveDID.feature
rename to features/resolveDIDSync.feature
-- 
GitLab