feat(testing): add loopback plugin support for overriding the error state with SBC State
This commit is contained in:
1 parent
9bc5e492f6
commit
130010a2ca
3 files changed
+136
-11
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user