Skip to content
Snippets Groups Projects
sendPresentationRequest.feature 2.18 KiB
As a OCM Admin 
    I want to verify credentials.

Scenario: OCM admin verify credentials
    Given PCM user should hold credentials in there wallet.
    And   PCM user connection must be in trusted state with verifer.
    When  OCM verifer orgnization sends a proof presentation request with following fields ( connectionId, schemaId or credentialDefId, attributes ) to PCM user.
    And   PCM user share the attributes from requested credentials to OCM verifer.
    And   OCM verifer verify the presentation acknowledgement.    
    Then  Presentation request should be in 'verified' state.

Scenario: OCM admin verify credentials
    Given PCM user should hold credentials in there wallet.
    When  OCM admin send a credential request to PCM user.
    And   PCM user decline the credential request witch will requested from OCM admin.   

Scenario: OCM admin verify credentials
    Given PCM user should hold credentials in there wallet.
    When  OCM admin have not passed all required parameters to proof request. 
    Then  should return the presentation request required following fields ( connectionId, attributes, schemaId or credentialDefId ).

# Scenario: Send Presentation Request
#     Given I have passed credential_def_id.
#     When  I pass invalid credential_def_id.
#     Then  should return the 400 status code.

# Scenario: Send Presentation Request
#     Given I have passed connectionId.
#     When  I pass invalid connectionId.
#     Then  should return the 400 status code.

# Scenario: Send Presentation Request
#     Given I have passed attributes.
#     When  I pass invalid attributes.
#     Then  should return the 400 status code.

# Scenario: Send Presentation Request
#     Given I have passed connectionId, attributes and credential_def_id.
#     When  I pass valid attributes.
#     And   I pass valid credential_def_id.
#     And   I pass invalid connectionId.
#     Then  should return the 400 status code.

# Scenario: Send Presentation Request
#     Given I have passed connectionId, attributes and credential_def_id.
#     When  I pass valid attributes.
#     And   I pass invalid credential_def_id.
#     And   I pass valid connectionId.
#     Then  should return the 400 status code.