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

Merge branch '10-test-policy-import-export-bundles' into 'main'

Update policy import scenarios

Closes #10

See merge request !65
parents de50d3f2 876ba07c
No related branches found
No related tags found
1 merge request!65Update policy import scenarios
Pipeline #69899 passed with stage
in 7 minutes and 13 seconds
#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
......
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