forked from edulinq/autograder-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made the table formatting function more general.
- Loading branch information
Showing
6 changed files
with
107 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package main | ||
|
||
const EXPECTED_SERVER_USER_LIST_TABLE = `email name role type courses | ||
[email protected] course-admin user server {"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"admin"},"course101":{"id":"course101","name":"Course 101","role":"admin"}} | ||
[email protected] course-grader user server {"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"grader"},"course101":{"id":"course101","name":"Course 101","role":"grader"}} | ||
[email protected] course-other user server {"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"other"},"course101":{"id":"course101","name":"Course 101","role":"other"}} | ||
[email protected] course-owner user server {"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"owner"},"course101":{"id":"course101","name":"Course 101","role":"owner"}} | ||
[email protected] course-student user server {"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"student"},"course101":{"id":"course101","name":"Course 101","role":"student"}} | ||
root root root server {} | ||
[email protected] server-admin admin server {} | ||
[email protected] server-creator creator server {} | ||
[email protected] server-owner owner server {} | ||
[email protected] server-user user server {} | ||
const EXPECTED_SERVER_USER_LIST_TABLE = `courses email name role type | ||
{"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"admin"},"course101":{"id":"course101","name":"Course 101","role":"admin"}} [email protected] course-admin user server | ||
{"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"grader"},"course101":{"id":"course101","name":"Course 101","role":"grader"}} [email protected] course-grader user server | ||
{"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"other"},"course101":{"id":"course101","name":"Course 101","role":"other"}} [email protected] course-other user server | ||
{"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"owner"},"course101":{"id":"course101","name":"Course 101","role":"owner"}} [email protected] course-owner user server | ||
{"course-languages":{"id":"course-languages","name":"Course Using Different Languages.","role":"student"},"course101":{"id":"course101","name":"Course 101","role":"student"}} [email protected] course-student user server | ||
{} root root root server | ||
{} [email protected] server-admin admin server | ||
{} [email protected] server-creator creator server | ||
{} [email protected] server-owner owner server | ||
{} [email protected] server-user user server | ||
` | ||
|
||
const EXPECTED_COURSE_USER_LIST_TABLE = `email lms-id name role type | ||
|
@@ -20,3 +20,7 @@ [email protected] [email protected] course-other oth | |
[email protected] [email protected] course-owner owner course | ||
[email protected] [email protected] course-student student course | ||
` | ||
|
||
const EXPECTED_COURSE_ASSIGNMENTS_LIST_TABLE = `id name | ||
hw0 Homework 0 | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters