-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 GetSessionResultsActionTest #13216
[#12048] Migrate tests for GetSessionResultsActionTest #13216
Conversation
47b048c
to
199f09c
Compare
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
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.
Thanks for the PR!, some small changes and most of them are just changing to getTypicalXXX
which should help to simply the code since we need a lot of different objects for this test and
I think we should add 2 more access control cases:
- Logged in as instructor with PREVIEWAS, can access
- Logged in as student with PREVIEWAS, cannot access
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
@mingyang143 any updates on the comments above? |
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.
Great work just some small nits and we are good to merge!
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/sqlui/webapi/GetSessionResultsActionTest.java
Outdated
Show resolved
Hide resolved
Hi @dishenggg , I updated the changes requested. |
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.
LGTM, Thanks for the work!
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.
lgtm! thanks for migrating this monster test
Part of #12048
Outline of Solution
Change GetSessionResultsActionTest.java to ensure compatibility with the PostgreSQL database following the database migration.