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

Add test data examples for DB

parent 97920393
No related branches found
No related tags found
1 merge request!48Add test data examples for DB
Pipeline #68137 passed
......@@ -28,6 +28,12 @@ This repository holds the test automation framework based on Java and used for t
_{BASE_URL} - should be replaced with the path where the services are deployed:
example: http://localhost_
### Database
In order for the test scenarios to be properly executed a MongoDB database deployment is needed.
The database should have specific structure and imported actual data.
The structure and the data should follow the examples in **test_data** folder.
Part of the data is also available in the Policies repository.
# Manual execution
To simplify manual tests execution we have a postman collection with the list of supported endpoints, you can find [here](postman/TSA.postman_collection.json)
......
[
{
"_id": {"$oid": "63fa2f16b70ed89144e37114"},
"contexts": ["https://www.w3.org/2018/credentials/examples/v1"],
"exportName": "testexport",
"issuer": "did:web:vault.vereign.com:tsa:policy:policy:policies:example:returnDID:1.0:evaluation",
"key": "key1",
"keyNamespace": "transit",
"policies": {
"policies/example/examplePolicy/1.0": {
"message": "example"
},
"policies/example/ProofRequestResponse/1.0": {
"hello": "world"
}
}
}
]
\ No newline at end of file
This diff is collapsed.
[
{
"_id": {"$oid": "63fa2f16b70ed89144e37111"},
"cacheNamespace": "login",
"cacheScope": "user",
"groups": [
{
"execution": "sequential",
"tasks": ["exampleTask", "exampleTask2"]
}
],
"name": "sequentialTaskList"
},
{
"_id": {"$oid": "63fa2f16b70ed89144e37112"},
"cacheNamespace": "login",
"cacheScope": "user",
"groups": [
{
"execution": "parallel",
"tasks": ["exampleTask", "exampleTask2"]
}
],
"name": "parallelTaskList"
},
{
"_id": {"$oid": "63fa2f16b70ed89144e37113"},
"cacheNamespace": "login",
"cacheScope": "user",
"groups": [
{
"execution": "parallel",
"tasks": ["exampleTask", "exampleTask2"]
},
{
"execution": "sequential",
"tasks": ["exampleTask", "exampleTask2"]
}
],
"name": "mixedTaskList"
},
{
"_id": {"$oid": "6465d0704db48957264a74f1"},
"groups": [
{
"execution": "sequential",
"finalPolicy": "",
"tasks": ["getKeyDID", "didResolve"]
}
],
"name": "testList"
},
{
"_id": {"$oid": "6465e7e44db48957264a74f8"},
"groups": [
{
"execution": "sequential",
"finalPolicy": "",
"tasks": ["getKeyDID", "failingTask", "exampleTask"]
}
],
"name": "failTestListSync"
},
{
"_id": {"$oid": "6465e7e54db48957264a74f9"},
"groups": [
{
"execution": "parallel",
"finalPolicy": "",
"tasks": ["getKeyDID", "failingTask", "exampleTask"]
}
],
"name": "failTestListAsync"
}
]
\ No newline at end of file
[
{
"_id": {"$oid": "63fa2f16b70ed89144e3710e"},
"cacheNamespace": "",
"cacheScope": "",
"finalPolicy": "",
"method": "GET",
"name": "exampleTask",
"requestPolicy": "",
"responsePolicy": "",
"url": "https://jsonplaceholder.typicode.com/todos/1"
},
{
"_id": {"$oid": "63fa2f16b70ed89144e3710f"},
"cacheNamespace": "",
"cacheScope": "",
"finalPolicy": "",
"method": "GET",
"name": "exampleTaskPolicy",
"requestPolicy": "example/example/1.0",
"responsePolicy": "",
"url": ""
},
{
"_id": {"$oid": "63fa2f16b70ed89144e37110"},
"cacheNamespace": "",
"cacheScope": "",
"finalPolicy": "",
"method": "GET",
"name": "exampleTask2",
"requestPolicy": "",
"responsePolicy": "",
"url": "https://jsonplaceholder.typicode.com/todos/1"
},
{
"_id": {"$oid": "64649b40c16883754e8aff44"},
"method": "GET",
"name": "didResolve",
"requestPolicy": "policies/example/didResolve/1.0"
},
{
"_id": {"$oid": "6465d77a4db48957264a74f5"},
"method": "GET",
"name": "getKeyDID",
"requestPolicy": "policies/example/getKeyDID/1.0"
},
{
"_id": {"$oid": "6465e8aa4db48957264a74fb"},
"method": "GET",
"name": "failingTask",
"requestPolicy": "exmaple"
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment