-
Notifications
You must be signed in to change notification settings - Fork 19
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 #14 from project-sunbird/vinaya-ft
Issue #SB-3647 feat: Added negative test scenarios for create issuer API
- Loading branch information
Showing
17 changed files
with
225 additions
and
41 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
4 changes: 4 additions & 0 deletions
4
...esources/templates/badge/issuer/create/createIssuerFailureWithInvalidEmail/request.params
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,4 @@ | ||
name=swarn | ||
description=something | ||
url=http://www.example.com | ||
email=abc |
14 changes: 14 additions & 0 deletions
14
...resources/templates/badge/issuer/create/createIssuerFailureWithInvalidEmail/response.json
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,14 @@ | ||
{ | ||
"id": "api.issuer.create", | ||
"ver": "v1", | ||
"ts": "@ignore@", | ||
"params": { | ||
"resmsgid": null, | ||
"msgid": "@ignore@", | ||
"err": "EMAIL_FORMAT_ERROR", | ||
"status": "EMAIL_FORMAT_ERROR", | ||
"errmsg": "Email is invalid." | ||
}, | ||
"responseCode": "CLIENT_ERROR", | ||
"result": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
.../resources/templates/badge/issuer/create/createIssuerFailureWithInvalidUrl/request.params
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,4 @@ | ||
name=swarn | ||
description=something | ||
url=abc | ||
[email protected] |
14 changes: 14 additions & 0 deletions
14
...t/resources/templates/badge/issuer/create/createIssuerFailureWithInvalidUrl/response.json
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,14 @@ | ||
{ | ||
"id": "api.issuer.create", | ||
"ver": "v1", | ||
"ts": "@ignore@", | ||
"params": { | ||
"resmsgid": null, | ||
"msgid": "@ignore@", | ||
"err": "URL_FORMAT_ERROR", | ||
"status": "URL_FORMAT_ERROR", | ||
"errmsg": "URL is invalid." | ||
}, | ||
"responseCode": "CLIENT_ERROR", | ||
"result": {} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ources/templates/badge/issuer/create/createIssuerFailureWithoutDescription/request.params
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,3 @@ | ||
name=swarn | ||
url=http://www.example.com | ||
[email protected] |
14 changes: 14 additions & 0 deletions
14
...sources/templates/badge/issuer/create/createIssuerFailureWithoutDescription/response.json
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,14 @@ | ||
{ | ||
"id": "api.issuer.create", | ||
"ver": "v1", | ||
"ts": "@ignore@", | ||
"params": { | ||
"resmsgid": null, | ||
"msgid": "@ignore@", | ||
"err": "MANDATORY_PARAMETER_MISSING", | ||
"status": "MANDATORY_PARAMETER_MISSING", | ||
"errmsg": "Mandatory parameter description is missing." | ||
}, | ||
"responseCode": "CLIENT_ERROR", | ||
"result": {} | ||
} |
3 changes: 3 additions & 0 deletions
3
...st/resources/templates/badge/issuer/create/createIssuerFailureWithoutEmail/request.params
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,3 @@ | ||
name=swarn | ||
description=something | ||
url=http://www.example.com |
14 changes: 14 additions & 0 deletions
14
...est/resources/templates/badge/issuer/create/createIssuerFailureWithoutEmail/response.json
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,14 @@ | ||
{ | ||
"id": "api.issuer.create", | ||
"ver": "v1", | ||
"ts": "@ignore@", | ||
"params": { | ||
"resmsgid": null, | ||
"msgid": "@ignore@", | ||
"err": "MANDATORY_PARAMETER_MISSING", | ||
"status": "MANDATORY_PARAMETER_MISSING", | ||
"errmsg": "Mandatory parameter email is missing." | ||
}, | ||
"responseCode": "CLIENT_ERROR", | ||
"result": {} | ||
} |
3 changes: 3 additions & 0 deletions
3
...est/resources/templates/badge/issuer/create/createIssuerFailureWithoutName/request.params
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,3 @@ | ||
description=something | ||
url=http://www.example.com | ||
[email protected] |
14 changes: 14 additions & 0 deletions
14
...test/resources/templates/badge/issuer/create/createIssuerFailureWithoutName/response.json
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,14 @@ | ||
{ | ||
"id": "api.issuer.create", | ||
"ver": "v1", | ||
"ts": "@ignore@", | ||
"params": { | ||
"resmsgid": null, | ||
"msgid": "@ignore@", | ||
"err": "MANDATORY_PARAMETER_MISSING", | ||
"status": "MANDATORY_PARAMETER_MISSING", | ||
"errmsg": "Mandatory parameter name is missing." | ||
}, | ||
"responseCode": "CLIENT_ERROR", | ||
"result": {} | ||
} |
3 changes: 3 additions & 0 deletions
3
...test/resources/templates/badge/issuer/create/createIssuerFailureWithoutUrl/request.params
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,3 @@ | ||
name=swarn | ||
description=something | ||
[email protected] |
14 changes: 14 additions & 0 deletions
14
.../test/resources/templates/badge/issuer/create/createIssuerFailureWithoutUrl/response.json
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,14 @@ | ||
{ | ||
"id": "api.issuer.create", | ||
"ver": "v1", | ||
"ts": "@ignore@", | ||
"params": { | ||
"resmsgid": null, | ||
"msgid": "@ignore@", | ||
"err": "MANDATORY_PARAMETER_MISSING", | ||
"status": "MANDATORY_PARAMETER_MISSING", | ||
"errmsg": "Mandatory parameter url is missing." | ||
}, | ||
"responseCode": "CLIENT_ERROR", | ||
"result": {} | ||
} |
File renamed without changes
File renamed without changes.
File renamed without changes.