-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
🎯 Objective
Verify the integrity of the pharmaceutical-supply-chain-tracker system, focusing on event logging, chain verification, and history querying flows to ensure transparent and reliable tracking of pharmaceutical supply chains.
🧪 Test Structure
pharmaceutical-supply-chain-tracker/src/tests/
├── tracker.rs // Tests for supply chain event logging
├── verification.rs // Tests for chain integrity and authenticity
├── history.rs // Tests for history retrieval and reporting
└── utils.rs // Test helpers and setup🗂 Requirements
-
Event Logging
- Test logging of supply chain events (e.g., manufacturing, shipment) for valid batches.
- Verify authorization of entities logging events.
-
Chain Verification
- Ensure accurate verification of supply chain integrity for batches.
- Validate event sequence and authenticity checks.
-
History Querying
- Test retrieval of complete event history for a batch.
- Verify accuracy of queried supply chain data.
-
Build and Test
- Tests must pass with
cargo test.
- Tests must pass with
🔍 Key Scenarios
- Event logging for non-existent batch.
- Unauthorized entity attempting to log an event.
- History querying with incomplete or tampered data.
- Duplicate event logging attempt for the same batch.
- Verification of a corrupted supply chain.
🔗 References
- Soroban Documentation - Testing Contracts
- Stellar Developers - Smart Contracts
- Rust Testing Guide
- GS1 Standards for Supply Chain
- DSCSA Compliance Guidelines
📝 Notes
- Cover edge cases like invalid event data or missing batch records.
- Ensure auditable test outcomes for supply chain transparency.
- Simulate high-volume event logging to test scalability.
- Validate integration with
vaccine-distribution-ledgerfor vaccine tracking. - Modularize tests to keep files concise and maintainable.
Metadata
Metadata
Assignees
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week