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/acceptance/packs/guardrails/expected/at1.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at1.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at1 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at10.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at10.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at10 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at2.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at2.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at2 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at3.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at3.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at3 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at4.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at4.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at4 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at5.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at5.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at5 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at6.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at6.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at6 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at7.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at7.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at7 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at8.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at8.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at8 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/expected/at9.txt
Normal file
1
tests/acceptance/packs/guardrails/expected/at9.txt
Normal file
@@ -0,0 +1 @@
|
||||
expected at9 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at1/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at1/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at1 deterministic stub
|
||||
@@ -0,0 +1 @@
|
||||
fixture at10 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at2/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at2/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at2 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at3/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at3/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at3 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at4/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at4/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at4 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at5/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at5/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at5 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at6/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at6/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at6 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at7/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at7/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at7 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at8/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at8/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at8 deterministic stub
|
||||
1
tests/acceptance/packs/guardrails/fixtures/at9/input.txt
Normal file
1
tests/acceptance/packs/guardrails/fixtures/at9/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture at9 deterministic stub
|
||||
@@ -2,6 +2,9 @@
|
||||
"payloadType": "application/json",
|
||||
"payload": "ewogICJwYWNrX2lkIjogImF0LWd1YXJkcmFpbHMiLAogICJ2ZXJzaW9uIjogIjAuMS4wLXN0dWIiLAogICJpbnB1dHNfbG9jayI6ICJ0ZXN0cy9hY2NlcHRhbmNlL3BhY2tzL2d1YXJkcmFpbHMvaW5wdXRzLmxvY2siLAogICJzaWduZXJzIjogWyJzdHViLWtleS1pZCJdLAogICJmaXh0dXJlcyI6IFsKICAgIHsiaWQiOiAiQVQxLWFkbWlzc2lvbiIsICJleHBlY3RlZCI6ICJleHBlY3RlZC9hdDEuanNvbiIsICJhcnRpZmFjdCI6ICJmaXh0dXJlcy9hdDEifSwKICAgIHsiaWQiOiAiQVQyLXZleCIsICJleHBlY3RlZCI6ICJleHBlY3RlZC9hdDIuanNvbiIsICJhcnRpZmFjdCI6ICJmaXh0dXJlcy9hdDIifSwKICAgIHsiaWQiOiAiQVQzLWF1dGh6IiwgImV4cGVjdGVkIjogImV4cGVjdGVkL2F0My5qc29uIiwgImFydGlmYWN0IjogImZpeHR1cmVzL2F0MyJ9LAogICAgeyJpZCI6ICJBVDQtcmVwbGF5LXBhcml0eSIsICJleHBlY3RlZCI6ICJleHBlY3RlZC9hdDQuanNvbiIsICJhcnRpZmFjdCI6ICJmaXh0dXJlcy9hdDQifSwKICAgIHsiaWQiOiAiQVQ1LXBvbGljeS1kc3NlLW5lZ2F0aXZlIiwgImV4cGVjdGVkIjogImV4cGVjdGVkL2F0NS5qc29uIiwgImFydGlmYWN0IjogImZpeHR1cmVzL2F0NSJ9LAogICAgeyJpZCI6ICJBVDYtcGl0ci1yZWhlYXJzYWwiLCAiZXhwZWN0ZWQiOiAiZXhwZWN0ZWQvYXQ2Lmpzb24iLCAiYXJ0aWZhY3QiOiAiZml4dHVyZXMvYXQ2In0sCiAgICB7ImlkIjogIkFUNy1vZmZsaW5lLWd1YXJkcmFpbC1wYWNrIiwgImV4cGVjdGVkIjogImV4cGVjdGVkL2F0Ny5qc29uIiwgImFydGlmYWN0IjogImZpeHR1cmVzL2F0NyJ9LAogICAgeyJpZCI6ICJBVDgtZ2F0aW5nLXRocmVzaG9sZHMiLCAiZXhwZWN0ZWQiOiAiZXhwZWN0ZWQvYXQ4Lmpzb24iLCAiYXJ0aWZhY3QiOiAiZml4dHVyZXMvYXQ4In0sCiAgICB7ImlkIjogIkFUOS1yZXBvcnRpbmctc2xvIiwgImV4cGVjdGVkIjogImV4cGVjdGVkL2F0OS5qc29uIiwgImFydGlmYWN0IjogImZpeHR1cmVzL2F0OSJ9LAogICAgeyJpZCI6ICJBVDEwLXNjaGVtYS1zaWduaW5nIiwgImV4cGVjdGVkIjogImV4cGVjdGVkL2F0MTAuanNvbiIsICJhcnRpZmFjdCI6ICJmaXh0dXJlcy9hdDEwIn0KICBdCn0K",
|
||||
"signatures": [
|
||||
{"keyid": "stub-key-id", "sig": ""}
|
||||
{
|
||||
"keyid": "stub-key-id",
|
||||
"sig": "stub-signature"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
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