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

[#12048] Migrate tests for GetAccountsAction.java #13214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mingyang143
Copy link
Contributor

Part of #12048

Outline of Solution
Change GetAccountsActionTest.java to ensure compatibility with the PostgreSQL database following the database migration.

@mingyang143 mingyang143 force-pushed the branch-migrate-tests-week4-1 branch from 0ecedd6 to d61759d Compare February 8, 2025 05:01
Copy link
Contributor

@dishenggg dishenggg left a comment

Choose a reason for hiding this comment

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

Similar to #13212, lets add test cases for invalid params, and access control tests.

Comment on lines +36 to +37
Account accountStub = typicalAccount;
Account anotherAccountStub = new Account(accountStub.getGoogleId(), accountStub.getEmail(), accountStub.getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

This creates 2 accounts with the same googleId which should not happen in the real world, although this wouldnt affect the execution of the test case lets change the anotherAccountStub to have different attributes to better reflect actual data.

@dishenggg dishenggg added the s.Ongoing The PR is being worked on by the author(s) label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s.Ongoing The PR is being worked on by the author(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants