-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update search document and create-core script * update it * modify relevant classes to use id instead of (email, institute) * remove duplicate method * fix it tests * fix failing tests * remove unnecessary comment
- Loading branch information
1 parent
7ec74c7
commit 0b07036
Showing
6 changed files
with
39 additions
and
11 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
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 |
---|---|---|
|
@@ -89,6 +89,16 @@ public void allTests() throws Exception { | |
results = accountRequestsDb.searchAccountRequestsInWholeSystem("\"TEAMMATES Test Institute 2\""); | ||
verifySearchResults(results, unregisteredInstructor2); | ||
|
||
______TS("success: search for account requests; account requests should be searchable by their comments"); | ||
|
||
results = accountRequestsDb.searchAccountRequestsInWholeSystem("Comments for account request from instructor2"); | ||
verifySearchResults(results, ins2General); | ||
|
||
______TS("success: search for account requests; account requests should be searchable by their status"); | ||
|
||
results = accountRequestsDb.searchAccountRequestsInWholeSystem("registered"); | ||
verifySearchResults(results, ins2General); | ||
|
||
______TS("success: search for account requests; unregistered account requests should be searchable"); | ||
|
||
results = accountRequestsDb.searchAccountRequestsInWholeSystem("\"[email protected]\""); | ||
|
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 |
---|---|---|
|
@@ -80,7 +80,9 @@ | |
"name": "Instructor 2", | ||
"email": "[email protected]", | ||
"institute": "TEAMMATES Test Institute 1", | ||
"registeredAt": "2015-02-14T00:00:00Z" | ||
"registeredAt": "2015-02-14T00:00:00Z", | ||
"comments": "Comments for account request from instructor2", | ||
"status": "REGISTERED" | ||
}, | ||
"instructor3": { | ||
"name": "Instructor 3 of CourseNoRegister", | ||
|
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