From 3d17fec052b1f121ffab0ffd6f19846155f62ff4 Mon Sep 17 00:00:00 2001
From: "georgi.michev" <georgi.michev@vereign.com>
Date: Fri, 17 Jun 2022 10:00:51 +0300
Subject: [PATCH] add evaluate negative test

Signed-off-by: georgi.michev <georgi.michev@vereign.com>
---
 .../{group}/{name}/{version}/evaluation/POST.feature     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/test/resources/features/tsa/policy/{group}/{name}/{version}/evaluation/POST.feature b/src/test/resources/features/tsa/policy/{group}/{name}/{version}/evaluation/POST.feature
index 9f8c6f05..b0c336b8 100644
--- a/src/test/resources/features/tsa/policy/{group}/{name}/{version}/evaluation/POST.feature
+++ b/src/test/resources/features/tsa/policy/{group}/{name}/{version}/evaluation/POST.feature
@@ -70,12 +70,13 @@ Feature: API -TSA - Policy - :group/:name/:version/evaluation POST
     And the field {message} has the value {missing required payload}
     And delete policy {test7} from repository
 
-  @negative @wip
+  @negative
   Scenario: TSA - Evaluate missing policy - Negative
-    Given I execute the policy {/testable/test0/2.0/evaluation}
-    Then the status code should be {400}
+    Then I load the REST request {Policy.json} with profile {successful_evaluate}
+    Given I execute the policy {/testable/test0/1.0/evaluation}
+    Then the status code should be {404}
     And the response is valid according to the {Policy_Evaluate_negative_schema.json} REST schema
-#    And the field {message} has the value {policy not found}
+    And the field {message} has the value {error evaluating policy}
 
   @negative
   Scenario: TSA - DID resolution with incorrect did - Negative
-- 
GitLab