Skip to content
Snippets Groups Projects
Commit fe6a8fd8 authored by Sagar Khole's avatar Sagar Khole
Browse files

BDD review

parent fb66c1ba
No related branches found
No related tags found
2 merge requests!8Develop,!3BDD: Feature/connection
As a PCM user,
I want to register with an organization
So that I can leverage GAIA-X ecosystem
Scenario: I want to become a member of an organization (a GAIA-X Participant)
Given PCM Application should be configured on the user device.
And OCM admin generates QR code ( with parameter alias set to 'member') and sends to PCM register email address.
When PCM Application scans the provided QR code.
Then Pairwise DID and ver key is exchanged between the agents.
And the Connection is established between the PCM aries agent and organization aries agent.
And connection state moves to complete state.
And Principal membership credentials are issued.
Scenario: I want to subscribe to a service of an organization (a GAIA-X Participant)
Given PCM User should be member of an organization.
And OCM admin/portal generates QR code ( with parameter alias set to 'subscriber') and email/display on portal.
When PCM Application scans the provided QR code.
Then Pairwise DID and ver key is exchanged between the agents.
And the Connection is established between PCM aries agent and organization aries agent.
And connection state moves to complete state.
And Principal membership verification to make connection trusted.
And OCM admin issues the verifiable credential over a trusted connection.
Scheduler is running on Background to delete Non-trusted and Non-complete connections.
Scenario: Delete a Non-complete connection.
When connection does not goes in complete state within 30 minutes
Then connection will get deleted from database.
Scenario: Delete a Non-trusted connection.
When connection does not goes in trusted state within 30 minutes
Then connection will get deleted from database.
Feature: Get Connection API
Return the list of connections or single conneection created on OCM environment
Get Connection details
Return the list of connections or single connection created on the OCM environment
Scenario: Provide validated page and pageSize.
When passed valid page.
And passed valid pageSize.
Then should get connection list.
Scenario: Connection details by ID.
When passed valid connection ID.
Then returns connection details.
Scenario: Provide validated page and pageSize.
When passed valid page.
And passed valid pageSize.
Then should get http status 404.
Scenario: Connection details.
When passed valid pageSize and Number of records.
Then returns a list of connection details.
Scenario: Provide invalid page and pageSize
When passed invalid page.
And passed invalid pageSize.
Then should return no data available with status code 404(Not Found).
Scenario: Connection details with status.
When passed valid pageSize and Number of records.
And status
Then returns a list of connection details with provided status.
Scenario: Connection details by ID.
When passed valid connection ID.
Then returns connection details.
Scenario: Not Provide Connction ID or participant DID
When not provid connection ID
Then should return message "connection ID / participant DID must be provided" with status code 400.
//Need to discuess with suneet (participant DID) .
\ No newline at end of file
Feature: Create connection invitation URL
Scenario: Create connection invitation URL
Given I have create connection invitation URL as member
When I have pass Alis as "member"
Then the Connection Invitation URL should be created.
And if I accepts the connection it should go in complete state.
Scenario: Create connection invitation URL
Given I have create connection invitation URL as subscriber
When I have pass Alis as "subscriber"
Then the Connection Invitation URL should be created.
And if I accepts the connection it should go in complete state.
Scenario: Create connection invitation URL.
Given I have create connection invitation URL
When I have not pass alis as a member.
When I have not pass alis as a subscriber.
And the Connection Invitation URL should be created.
And If I accepts the connection it should go in complete state.
But connection will never goes in trusted state.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment