Add MongoDB storage library and update acceptance tests with deterministic stubs
- Created StellaOps.Notify.Storage.Mongo project with initial configuration. - Added expected output files for acceptance tests (at1.txt to at10.txt). - Added fixture input files for acceptance tests (at1 to at10). - Created input and signature files for test cases fc1 to fc5.
This commit is contained in:
1
tests/fixtures/sca/catalogue/fc1/input.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc1/input.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
input stub for fc1
|
||||
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"payloadType": "application/json",
|
||||
"payload": "<base64-encoded expected.json>",
|
||||
"payload": "ewogICJpZCI6ICJmYzEtY3JlZGVudGlhbC1sZWFrIiwKICAic2Nhbm5lciI6ICJncnlwZSIsCiAgImZlZWQiOiAib2ZmbGluZS1jYWNoZS0yMDI1LTExLTMwIiwKICAiZXhwZWN0ZWRfZmluZGluZ3MiOiBbCiAgICB7InB1cmwiOiAicGtnOmRvY2tlci9leGFtcGxlQDEuMC4wIiwgImN2ZSI6ICJDVkUtMjAyNC05OTk5IiwgInN0YXR1cyI6ICJwcmVzZW50In0KICBdCn0K",
|
||||
"signatures": [
|
||||
{"keyid": "stub-key-id", "sig": ""}
|
||||
{
|
||||
"keyid": "stub-key-id",
|
||||
"sig": "stub-signature"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1
tests/fixtures/sca/catalogue/fc1/signature.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc1/signature.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
stub-signature
|
||||
1
tests/fixtures/sca/catalogue/fc2/input.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc2/input.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
input stub for fc2
|
||||
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"payloadType": "application/json",
|
||||
"payload": "<base64-encoded expected.json>",
|
||||
"payload": "ewogICJpZCI6ICJmYzItdHJpdnktb2ZmbGluZS1zY2hlbWEiLAogICJzY2FubmVyIjogInRyaXZ5IiwKICAiZmVlZCI6ICJvZmZsaW5lLWNhY2hlLTIwMjUtMTEtMzAiLAogICJleHBlY3RlZF9lcnJvcnMiOiBbCiAgICB7ImNvZGUiOiAiU0NIRU1BX01JU01BVENIIiwgIm1lc3NhZ2UiOiAib2ZmbGluZSBEQiBzY2hlbWEgbWlzbWF0Y2gifQogIF0KfQo=",
|
||||
"signatures": [
|
||||
{"keyid": "stub-key-id", "sig": ""}
|
||||
{
|
||||
"keyid": "stub-key-id",
|
||||
"sig": "stub-signature"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1
tests/fixtures/sca/catalogue/fc2/signature.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc2/signature.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
stub-signature
|
||||
1
tests/fixtures/sca/catalogue/fc3/input.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc3/input.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
input stub for fc3
|
||||
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"payloadType": "application/json",
|
||||
"payload": "<base64-encoded expected.json>",
|
||||
"payload": "ewogICJpZCI6ICJmYzMtc2JvbS1wYXJpdHktZHJpZnQiLAogICJzY2FubmVyIjogInN5ZnQiLAogICJmZWVkIjogIm9mZmxpbmUtY2FjaGUtMjAyNS0xMS0zMCIsCiAgImV4cGVjdGVkX2ZpbmRpbmdzIjogWwogICAgeyJwdXJsIjogInBrZzpkb2NrZXIvZXhhbXBsZUAxLjAuMCIsICJpc3N1ZSI6ICJzYm9tX3Bhcml0eV9kcmlmdCJ9CiAgXQp9Cg==",
|
||||
"signatures": [
|
||||
{"keyid": "stub-key-id", "sig": ""}
|
||||
{
|
||||
"keyid": "stub-key-id",
|
||||
"sig": "stub-signature"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1
tests/fixtures/sca/catalogue/fc3/signature.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc3/signature.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
stub-signature
|
||||
1
tests/fixtures/sca/catalogue/fc4/input.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc4/input.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
input stub for fc4
|
||||
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"payloadType": "application/json",
|
||||
"payload": "<base64-encoded expected.json>",
|
||||
"payload": "ewogICJpZCI6ICJmYzQtZ3J5cGUtdmVyc2lvbi1kaXZlcmdlbmNlIiwKICAic2Nhbm5lciI6ICJncnlwZSIsCiAgImZlZWQiOiAib2ZmbGluZS1jYWNoZS0yMDI1LTExLTMwIiwKICAiZXhwZWN0ZWRfd2FybmluZ3MiOiBbCiAgICB7ImNvZGUiOiAiVkVSU0lPTl9ESVZFUkdFTkNFIiwgIm1lc3NhZ2UiOiAic2Nhbm5lciB2ZXJzaW9uIGRyaWZ0IGRldGVjdGVkIn0KICBdCn0K",
|
||||
"signatures": [
|
||||
{"keyid": "stub-key-id", "sig": ""}
|
||||
{
|
||||
"keyid": "stub-key-id",
|
||||
"sig": "stub-signature"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1
tests/fixtures/sca/catalogue/fc4/signature.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc4/signature.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
stub-signature
|
||||
1
tests/fixtures/sca/catalogue/fc5/input.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc5/input.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
input stub for fc5
|
||||
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"payloadType": "application/json",
|
||||
"payload": "<base64-encoded expected.json>",
|
||||
"payload": "ewogICJpZCI6ICJmYzUtaW5jb25zaXN0ZW50LWRldGVjdGlvbiIsCiAgInNjYW5uZXIiOiAiZ3J5cGUiLAogICJmZWVkIjogIm9mZmxpbmUtY2FjaGUtMjAyNS0xMS0zMCIsCiAgImV4cGVjdGVkX2ZpbmRpbmdzIjogWwogICAgeyJwdXJsIjogInBrZzpkb2NrZXIvZXhhbXBsZUAxLjAuMCIsICJpc3N1ZSI6ICJpbmNvbnNpc3RlbnRfZGV0ZWN0aW9uIn0KICBdCn0K",
|
||||
"signatures": [
|
||||
{"keyid": "stub-key-id", "sig": ""}
|
||||
{
|
||||
"keyid": "stub-key-id",
|
||||
"sig": "stub-signature"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1
tests/fixtures/sca/catalogue/fc5/signature.txt
vendored
Normal file
1
tests/fixtures/sca/catalogue/fc5/signature.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
stub-signature
|
||||
Reference in New Issue
Block a user