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

Merge branch '13-test-storage-extension-functions' into 'main'

Update negative tests for test storage extension

See merge request !58
parents f6141714 faf7d9f4
No related branches found
No related tags found
1 merge request!58Update negative tests for test storage extension
Pipeline #68931 passed with stage
in 6 minutes and 33 seconds
......@@ -32,14 +32,16 @@
"storageKey": {
"key": "dataEntry1"
},
"missingKey": {
"data": {
"record1": "value for record 1",
"record2": true,
"record3": 3
}
"emptyKey": {
"key": "",
"data": "data for empty key"
},
"missingData": {
"key": "dataEntry1"
"numberAsKey": {
"key": 1,
"data": "data for numeric key"
},
"emptyData": {
"key": "dataEntry1",
"data": ""
}
}
\ No newline at end of file
......@@ -107,32 +107,23 @@ Feature: API -TSA - Policy - {repository}/{group}/{name}/{version}/evaluation PO
And the response is valid according to the {Policy_EvaluateDID_negative_schema.json} REST schema
And the field {data.didResolutionMetadata.error} has the value {notFound}
@negative @phase2 @IDM.TSA.E1.00014 @wip @https://gitlab.eclipse.org/eclipse/xfsc/tsa/policy/-/issues/54
Scenario: TSA - Work with database storage - Set data with empty body - Negative
When I load the REST request {Policy.json} with profile {empty}
@negative @phase2 @IDM.TSA.E1.00014
Scenario: TSA - Work with database storage - Set data with empty key - Negative
When I load the REST request {Policy.json} with profile {emptyKey}
And I execute the Policy group {example} name {storageSet} version {1.0} via TSA Policy API
Then the status code should be {400}
Then the status code should be {500}
And the field {message} has the value {error evaluating rego query}
@negative @phase2 @IDM.TSA.E1.00014 @wip @wip @https://gitlab.eclipse.org/eclipse/xfsc/tsa/policy/-/issues/54
Scenario: TSA - Work with database storage - Set data with missing key - Negative
When I load the REST request {Policy.json} with profile {missingKey}
@negative @phase2 @IDM.TSA.E1.00014
Scenario: TSA - Work with database storage - Set data with incorrect key - Negative
When I load the REST request {Policy.json} with profile {numberAsKey}
And I execute the Policy group {example} name {storageSet} version {1.0} via TSA Policy API
Then the status code should be {400}
Then the status code should be {500}
And the field {message} has the value {error evaluating rego query}
@negative @phase2 @IDM.TSA.E1.00014 @wip @wip @https://gitlab.eclipse.org/eclipse/xfsc/tsa/policy/-/issues/54
Scenario: TSA - Work with database storage - Set data with missing data field - Negative
When I load the REST request {Policy.json} with profile {missingData}
@negative @phase2 @IDM.TSA.E1.00014
Scenario: TSA - Work with database storage - Set data with empty data field - Negative
When I load the REST request {Policy.json} with profile {emptyData}
And I execute the Policy group {example} name {storageSet} version {1.0} via TSA Policy API
Then the status code should be {400}
@negative @phase2 @IDM.TSA.E1.00014 @wip @wip @https://gitlab.eclipse.org/eclipse/xfsc/tsa/policy/-/issues/54
Scenario: TSA - Work with database storage - Get data with empty body - Negative
When I load the REST request {Policy.json} with profile {empty}
And I execute the Policy group {example} name {storageGet} version {1.0} via TSA Policy API
Then the status code should be {400}
@negative @phase2 @IDM.TSA.E1.00014 @wip @wip @https://gitlab.eclipse.org/eclipse/xfsc/tsa/policy/-/issues/54
Scenario: TSA - Work with database storage - Delete data with empty body - Negative
When I load the REST request {Policy.json} with profile {empty}
And I execute the Policy group {example} name {storageDelete} version {1.0} via TSA Policy API
Then the status code should be {400}
Then the status code should be {500}
And the field {message} has the value {error evaluating rego query}
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