Skip to content

Commit

Permalink
test: updates fixed test scenario
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <[email protected]>
  • Loading branch information
amagyar-iohk committed Sep 26, 2024
1 parent f1aef3b commit b1379ca
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Feature: Manage OID4VCI credential configuration
When Issuer deletes "StudentProfile" credential configuration
Then Issuer cannot see the "StudentProfile" configuration on IssuerMetadata endpoint

@test
Scenario Outline: Create configuration with <description> expect <httpStatus> code
When Issuer creates a new credential configuration request
And Issuer uses <issuerId> issuer id for credential configuration
Expand All @@ -24,15 +25,15 @@ Feature: Manage OID4VCI credential configuration
And Issuer sends the create a credential configuration request
Then Issuer should see that create credential configuration has failed with '<httpStatus>' status code and '<errorDetail>' detail
Examples:
| issuerId | configurationId | format | schemaId | httpStatus | errorDetail | description |
| wrong | StudentProfile | jwt_vc_json | STUDENT_SCHEMA | 500 | | wrong issuer id |
| existing | null | jwt_vc_json | STUDENT_SCHEMA | 400 | configurationId | null configuration id |
| existing | StudentProfile | null | STUDENT_SCHEMA | 400 | format | null format |
| existing | StudentProfile | wrong-format | STUDENT_SCHEMA | 400 | format | wrong format |
| existing | StudentProfile | jwt_vc_json | null | 400 | schemaId | null schema |
| existing | StudentProfile | jwt_vc_json | malformed-schema | 502 | | malformed schema |
| existing | StudentProfile | jwt_vc_json | STUDENT_SCHEMA | 201 | | wrong issuer id |
| existing | StudentProfile | jwt_vc_json | STUDENT_SCHEMA | 500 | | wrong issuer id |
| issuerId | configurationId | format | schemaId | httpStatus | errorDetail | description |
| wrong | StudentProfile | jwt_vc_json | STUDENT_SCHEMA | 404 | There is no credential issue | wrong issuer id |
| existing | null | jwt_vc_json | STUDENT_SCHEMA | 400 | configurationId | null configuration id |
| existing | StudentProfile | null | STUDENT_SCHEMA | 400 | format | null format |
| existing | StudentProfile | wrong-format | STUDENT_SCHEMA | 400 | format | wrong format |
| existing | StudentProfile | jwt_vc_json | null | 400 | schemaId | null schema |
| existing | StudentProfile | jwt_vc_json | malformed-schema | 502 | | malformed schema |
| existing | StudentProfile | jwt_vc_json | STUDENT_SCHEMA | 201 | | wrong issuer id |
| existing | StudentProfile | jwt_vc_json | STUDENT_SCHEMA | 500 | | wrong issuer id |

Scenario: Delete non existent credential configuration
When Issuer deletes a non existent "NonExistentProfile" credential configuration
Expand Down

0 comments on commit b1379ca

Please sign in to comment.