Skip to content
Snippets Groups Projects
Verified Commit f6ae2dcb authored by Georgi Michev's avatar Georgi Michev
Browse files

Add scenario for IDM.TSA.E1.00011 requirement


The automation for this scenario could not be implemented,
but instead a steps for manual tests are provided.

Signed-off-by: default avatarGeorgi Michev <georgi.michev@vereign.com>
parent 4647b1f1
No related branches found
No related tags found
1 merge request!66Add scenario for IDM.TSA.E1.00011 requirement
Pipeline #69905 canceled with stage
......@@ -36,3 +36,14 @@ Feature: API - TSA - policy - /import GET
| export-config.json |
| export-config.json |
| export-config.json |
@IDM.TSA.E1.00011 @wip
Scenario: TSA - Defining export configuration policy and configure Import - Positive
When I define export configuration for Policy group {example} name {exmaple_policy} version {1.0} via TSA Policy API
And I changes the policy {example_policy} in the repository {synchronised_repository} to {allow} be {true}
And I commit the changes to {main} on {synchronised_repository}
Then I execute the Policy group {example} name {exmaple_policy} version {1.0} via TSA Policy API
And the status code should be {200}
And the field {allow} has the value {true}
# Revert bach the changes
Then I changes the policy {example_policy} in the repository {synchronised_repository} to {allow} be {false}
#Copyright (c) 2023 Vereign AG [https://www.vereign.com]
@rest @all @tsa @policy @phase2 @IDM.TSA.E1.00009
@rest @all @tsa @policy @phase2 @IDM.TSA.E1.00009 @IDM.TSA.E1.00060
Feature: API - TSA -Policy - {repository}/{group}/{name}/{version}/validation POST
As user
I want to be able to evaluate a policy output by JSON schema
......@@ -15,11 +15,11 @@ Feature: API - TSA -Policy - {repository}/{group}/{name}/{version}/validation PO
Then the status code should be {200}
And the field {foo} has the value {barbaz}
@negative @wip @bug-https://gitlab.eclipse.org/eclipse/xfsc/tsa/policy/-/issues/53
@negative
Scenario: TSA - Validate invalid policy output by JSON schema - Negative
When I load the REST request {Policy.json} with profile {invalid_schema_output}
When I validate the output of policy using POST with group {example} name {examplePolicy} version {1.4} by JSON schema
Then the status code should be {400}
Then the status code should be {500}
And the field {message} has the value {policy output schema validation failed}
@negative
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment