Skip to content

Add test coverage for PRIVATE_KEY_JWT sink credential and 422 PRIVATE_KEY_JWT_NOT_CONFIGURED #75

Description

@hdamker

Problem description
PR #74 (closing #70) added credentialType: PRIVATE_KEY_JWT documentation and the 422 PRIVATE_KEY_JWT_NOT_CONFIGURED error response, but code/Test_definitions/predictive-connectivity-data.feature has no test coverage for either:

  • PRIVATE_KEY_JWT only appears in a comment above scenario 400.07_invalid_sink_credential (line 315); no scenario sets $.sinkCredential.credentialType to PRIVATE_KEY_JWT.
  • The 422 scenario block ends at 422.06_unsupported_service_level (line 629); there is no scenario for PRIVATE_KEY_JWT_NOT_CONFIGURED.

Expected behavior
Add:

  1. A positive/negative case exercising PRIVATE_KEY_JWT as credentialType (e.g. extend the 400.07 outline or add a dedicated scenario).
  2. A 422 PRIVATE_KEY_JWT_NOT_CONFIGURED scenario, adapted from the Commonalities canonical template.

Alternative solution
None

Additional context
Canonical scenario to adapt: Commonalities artifacts/testing/event-subscription-template.feature#L449-L459, scenario @{xxx}_subscriptions_61_creation_with_private_jwt_key_not_configured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions