feat(testing): add loopback plugin support for overriding the error state with SBC State

This commit is contained in:
Elim Tsiagbey committed 2024-07-17 14:23:11 -04:00
1 parent 9bc5e492f6
commit 130010a2ca
3 files changed
+136 -11

No files matched your search

+7 -6
View File
@@ -47,12 +47,13 @@ const (
// PluginMockError is used to mock an error when interacting with an external object store.
type PluginMockError struct {
BucketName string
BucketPrefix string
ObjectKey string
ErrMsg string
ErrCode codes.Code
ErrMethod Method
BucketName string
BucketPrefix string
ObjectKey string
ErrMsg string
ErrCode codes.Code
ErrMethod Method
StorageBucketCredentialState *plgpb.StorageBucketCredentialState
}
// match compares the given values from the parameters to the values provided in the mocked error.