-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add store/subscription store.go testcases #433
base: add_store/user_store.go_testcases
Are you sure you want to change the base?
Add store/subscription store.go testcases #433
Conversation
}, | ||
}, | ||
{ | ||
name: "Successful Load", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "Successful Load", | |
name: "Subscription successfully loaded", |
}, | ||
}, | ||
{ | ||
name: "Successful Delete", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "Successful Delete", | |
name: "Subscription successfully deleted", |
{ | ||
name: "Successful Load", | ||
setup: func(mockAPI *testutil.MockPluginAPI) { | ||
mockAPI.On("KVGet", "sub_0c47c5b7e2a88ec9256c8ac0e71b0f6e").Return([]byte(`{"PluginVersion":"1.0","Remote":{"ID":"mockRemoteUserID","CreatorID":"mockCreatorID"}}`), nil).Times(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the IDs from existing constants
Summary
Add store/subscription store.go testcases