From b1379caf605540ca267c458d0683628eccb901e5 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Thu, 26 Sep 2024 09:06:34 -0300 Subject: [PATCH] test: updates fixed test scenario Signed-off-by: Allain Magyar --- .../oid4vci/manage_credential_config.feature | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/integration-tests/src/test/resources/features/oid4vci/manage_credential_config.feature b/tests/integration-tests/src/test/resources/features/oid4vci/manage_credential_config.feature index 47c7405f71..2d854c08f9 100644 --- a/tests/integration-tests/src/test/resources/features/oid4vci/manage_credential_config.feature +++ b/tests/integration-tests/src/test/resources/features/oid4vci/manage_credential_config.feature @@ -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 expect code When Issuer creates a new credential configuration request And Issuer uses issuer id for credential configuration @@ -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 '' status code and '' 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