Skip to content
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

Open
wants to merge 1 commit into
base: add_store/user_store.go_testcases
Choose a base branch
from

Conversation

Kshitij-Katiyar
Copy link
Contributor

Summary

Add store/subscription store.go testcases

@Kshitij-Katiyar Kshitij-Katiyar added the 2: Dev Review Requires review by a core committer label Nov 18, 2024
@Kshitij-Katiyar Kshitij-Katiyar self-assigned this Nov 18, 2024
@Kshitij-Katiyar Kshitij-Katiyar changed the title Add store/subscription store.go testcasesz Add store/subscription store.go testcases Nov 18, 2024
},
},
{
name: "Successful Load",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: "Successful Load",
name: "Subscription successfully loaded",

},
},
{
name: "Successful Delete",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants