Skip to content
Snippets Groups Projects
sendPrincipalCredentialPresentationRequest.feature 1.76 KiB
Feature: I am able to issue credential to the PCM user.
         To make subscription service connection trusted of an organization.

Scenario: Send principal credential presentation request
    Given PCM user should hold credentials in there wallet.
    And   PCM user connection must be in complete state with verifer.
    When  OCM verifer orgnization sends a proof presentation request with following fields ( schemaId, 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 'trusted' state.
    And   PCM user get the principal credential.

# Scenario: Send principal credential presentation request
#     Given invalid connection id is passed.
#     Then  should return the 404 execption.

# Scenario: Send principal credential presentation request
#     Given I am not passing a connection id.
#     Then  should return the Required following attributes ( presentation_id ) with status code 400.

# Scenario: Send principal credential presentation request
#     Given I have passed a connection id and credential type.
#     When  passed connection id is valid.
#     And   passed credential type is valid.
#     Then  the get principal credentials details from the attestation service.  
#     And   the proof presentation request sent to the holder with provided attributes. 

# Scenario: Send principal credential presentation request
#     Given I have passed a connection id and credential type.
#     When  passed connection id is valid.
#     And   passed credential type is invalid.
#     Then  should not received principal credentials details from the attestation service.  
#     And   should return the 404 execption.