-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #887 from OneCommunityGlobal/Ivy-InformationContro…
…ller-getInformation-test Ivy-InformationController-Unit Test-Catch Err
- Loading branch information
Showing
7 changed files
with
595 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Add Information | ||
|
||
> ## Positive case | ||
1. ✅ Returns 201 if adding new information successfullyn and no cache. | ||
2. ✅ Returns if adding new information successfully and hascache. | ||
|
||
> ## Negative case | ||
1. ✅ Returns error 500 if if there are no information in the database and any error occurs when finding the infoName. | ||
2. ✅ Returns error 400 if if there are duplicate infoName in the database. | ||
3. ✅ Returns error 400 if if there are issues when saving new informations. | ||
4. ✅ Returns error 400 if if there are errors when saving the new information. | ||
|
||
> ## Edge case |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Delete Information | ||
|
||
> ## Positive case | ||
1. ✅ Returns 200 if deleting informations successfull and no cache. | ||
2. ✅ Returns if deleting informations successfully and has cache. | ||
|
||
> ## Negative case | ||
1. ✅ Returns error 400 if if there is any error when finding the information by information id. | ||
|
||
> ## Edge case |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Get Information | ||
|
||
> ## Positive case | ||
1. ✅ Returns 200 if the informations key exists in NodeCache. | ||
2. ✅ Returns 200 if there are information in the database. | ||
|
||
> ## Negative case | ||
1. ✅ Returns error 404 if if there are no information in the database and any error occurs when finding the information. | ||
|
||
> ## Edge case |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Update Information | ||
|
||
> ## Positive case | ||
1. ✅ Returns 200 if updating informations successfully when no cache. | ||
2. ✅ Returns if updating informations successfully when hascache. | ||
|
||
> ## Negative case | ||
1. ✅ Returns error 400 if if there is any error when finding the information by information id. | ||
|
||
> ## Edge case |
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
Oops, something went wrong.