The interface itself doesn't present precondition that should be tested in isolation. I will skip this for now
Integration testing
The IConnectionHandler will be mocked, for these tests. The objective is to test the interaction between Service and IConnectionHandler, with Service being
[ ] Sync/StorageProviderSyncTask
[ ] Sync/DeleteObject
[ ] getFile
[ ] AcceptObject
E2E (local)
[ ] content scenario run with STORAGE_PROVIDER_ENABLED=true and wrong AWS credential should panic and shut down Colossus immediately (to avoid lost objects errors)
[ ] content scenario run with localstack and STORAGE_PROVIDER_ENABLED=true and correct setting should provide a successful scenario run
Unit testing
The interface itself doesn't present precondition that should be tested in isolation. I will skip this for now
Integration testing
The
IConnectionHandler
will be mocked, for these tests. The objective is to test the interaction betweenService
andIConnectionHandler
, withService
beingSync/StorageProviderSyncTask
Sync/DeleteObject
getFile
AcceptObject
E2E (local)
STORAGE_PROVIDER_ENABLED=true
and wrong AWS credential should panic and shut down Colossus immediately (to avoid lost objects errors)STORAGE_PROVIDER_ENABLED=true
and correct setting should provide a successful scenario run