added
This commit is contained in:
commit
8313c5c6b5
84 files changed
+4337
No files matched your search
@@ -0,0 +1,31 @@
|
||||
"""Record caller-supplied sample evidence for an isolated calendar/meeting test."""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
from scheduling_core.ledger import Ledger
|
||||
|
||||
|
||||
def main() -> int:
|
||||
database = os.environ.get("SCHEDULING_TEST_DATABASE", "")
|
||||
event_id = os.environ.get("SCHEDULING_TEST_CALENDAR_EVENT_ID", "")
|
||||
meeting_id = os.environ.get("SCHEDULING_TEST_MEETING_ID", "")
|
||||
message_id = os.environ.get("SCHEDULING_TEST_MESSAGE_ID", "")
|
||||
if not all((database, event_id, meeting_id, message_id)):
|
||||
print("FAIL isolated database and sample provider IDs are required")
|
||||
return 1
|
||||
Ledger(Path(database)).record_supervised_test_evidence(
|
||||
"authorized-supervised-calendar-invite-delivery-v1",
|
||||
{
|
||||
"calendar_event_id": event_id,
|
||||
"meeting_id": meeting_id,
|
||||
"provider_message_id": message_id,
|
||||
"confirmation": "caller-confirmed-test-only",
|
||||
},
|
||||
)
|
||||
print("recorded_nonproduction_supervised_evidence")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in new issue
Block a user