Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • gaiax/tsa/tests
1 result
Show changes
Commits on Source (3)
#Copyright (c) 2023 Vereign AG [https://www.vereign.com]
@rest @all @tsa @policy @phase2 @IDM.TSA.E1.00005 @IDM.TSA.E1.00006
Feature: API - TSA - policy - /export GET
@rest @all @tsa @policy @phase2 @IDM.TSA.E1.00005 @IDM.TSA.E1.00006 @IDM.TSA.E1.00056
Feature: API - TSA - policy - /import GET
As user
I want to be able to import policy
I want to be able to export signed policy
then I want to be able to check the signature and if the policy is not modified to import it
So I can use it
Background:
......@@ -11,13 +13,26 @@ Feature: API - TSA - policy - /export GET
@wip
Scenario: TSA - Import specific policy - Positive
When I Export Policy group {example} name {examplePolicy} version {1.4}
When I Import {policies_example_examplePolicy_1.4.zip} in to Policy
Then the status code should be {200}
And I execute the Policy group {example} name {examplePolicy} version {1.4} via TSA Policy API
Then the status code should be {200}
@negative @wip
Scenario: TSA - Import modified policy - Negative
Scenario Outline: TSA - Import modified policy with modified file <modifiedFile> - Negative
When I Export Policy group {example} name {examplePolicy} version {1.4}
Then I extract the content
And modify file <modifiedFile>
And I archive back all files from the bundle
When I Import {policies_example_modifiedPolicy_1.4.zip} in to Policy
Then the status code should be {403}
And the field {message} contains the value {failed to verify bundle}
Examples:
| modifiedFile |
| data-config.json |
| data.json |
| export-config.json |
| export-config.json |
| export-config.json |
#Copyright (c) 2023 Vereign AG [https://www.vereign.com]
@rest @all @tsa @policy @phase2 @IDM.TSA.E1.00005 @IDM.TSA.E1.00006 @IDM.TSA.E1.00011
@rest @all @tsa @policy @phase2 @IDM.TSA.E1.00005 @IDM.TSA.E1.00006 @IDM.TSA.E1.00011 @IDM.TSA.E1.00056
Feature: API - TSA - policy - {repository}/{group}/{name}/{version}/export GET
As user
I want to be able to export policy
......