Skip to content
Snippets Groups Projects
Commit 31b15600 authored by Rosen Georgiev's avatar Rosen Georgiev
Browse files

added gitingore

parent e1617a88
No related branches found
No related tags found
1 merge request!11sync
Showing
with 1362 additions and 0 deletions
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="temurin-17" project-jdk-type="JavaSDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="206fc785-5381-4d74-a39d-1e1be995631a" name="Changes" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ExternalProjectsData">
<projectState path="$PROJECT_DIR$">
<ProjectState />
</projectState>
</component>
<component name="ExternalProjectsManager">
<system id="GRADLE">
<state>
<task path="$PROJECT_DIR$">
<activation />
</task>
<projects_view>
<tree_state>
<expand>
<path>
<item name="" type="6a2764b6:ExternalProjectsStructure$RootNode" />
<item name="api_framework_java" type="f1a62948:ProjectNode" />
</path>
<path>
<item name="" type="6a2764b6:ExternalProjectsStructure$RootNode" />
<item name="api_framework_java" type="f1a62948:ProjectNode" />
<item name="Run Configurations" type="7b0102dc:RunConfigurationsNode" />
</path>
</expand>
<select />
</tree_state>
</projects_view>
</state>
</system>
</component>
<component name="Git.Settings">
<option name="RECENT_BRANCH_BY_REPOSITORY">
<map>
<entry key="$PROJECT_DIR$" value="HealthChecks" />
</map>
</option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectId" id="2AEtXquqObENGFrHSC3f71KlenV" />
<component name="ProjectViewState">
<option name="autoscrollFromSource" value="true" />
<option name="autoscrollToSource" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.15" />
<property name="project.structure.side.proportion" value="0.5906433" />
<property name="settings.editor.selected.configurable" value="configurable.group.editor" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src/test/resources/features/ocm/connection/v1/connections/{connectionId}" />
<recent name="$PROJECT_DIR$/src/test/resources/features/ocm/connection/v1/connections" />
<recent name="$PROJECT_DIR$/src/test/resources/features/ocm/proof/v1" />
<recent name="$PROJECT_DIR$/src/test/resources/features/ocm/attestation/v1/health" />
<recent name="$PROJECT_DIR$/src/test/resources/features/ocm/connection/v1/health" />
</key>
<key name="CopyClassDialog.RECENTS_KEY">
<recent name="api.test.rest.ocm.proof" />
<recent name="api.test.rest.ocm.attestation" />
<recent name="api.test.rest.ocm.connection" />
</key>
</component>
<component name="RunManager">
<configuration default="true" type="Application" factoryName="Application">
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="ocm_testing_integration [regressionSuite]" type="GradleRunConfiguration" factoryName="Gradle" nameIsGenerated="true">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="-PbaseUrl=https://gaiax.vereign.com -Dcucumber.tags=&quot;@ocm,not @wip&quot; -Dcourgette.threads=10 -Dcourgette.runLevel=Scenario -Dcourgette.rerunFailedScenarios=false -Dcourgette.rerunAttempts=1" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="regressionSuite" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<option name="TEST_OBJECT" value="class" />
<option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="JetRunConfigurationType">
<module name="ocm_testing_integration" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="KotlinStandaloneScriptRunConfigurationType">
<module name="ocm_testing_integration" />
<option name="filePath" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="TestNG">
<option name="TEST_OBJECT" value="CLASS" />
<option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
<properties />
<listeners />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="206fc785-5381-4d74-a39d-1e1be995631a" name="Changes" comment="" />
<created>1654586615631</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1654586615631</updated>
</task>
<task id="LOCAL-00001" summary="Health checks for OCM">
<created>1654612964219</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1654612964219</updated>
</task>
<task id="LOCAL-00002" summary="Health checks for OCM">
<created>1655301806262</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1655301806262</updated>
</task>
<task id="LOCAL-00003" summary="initial tests for connection manager">
<created>1655474122139</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1655474122139</updated>
</task>
<task id="LOCAL-00004" summary="added gitingore">
<created>1655474510891</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1655474510891</updated>
</task>
<task id="LOCAL-00005" summary="added gitingore">
<created>1655474681519</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1655474681519</updated>
</task>
<option name="localTasksCounter" value="6" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="Health checks for OCM" />
<MESSAGE value="initial tests for connection manager" />
<MESSAGE value="added gitingore" />
<option name="LAST_COMMIT_MESSAGE" value="added gitingore" />
</component>
</project>
\ No newline at end of file
File added
File added
File added
This diff is collapsed.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"message": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"invitationUrl": {
"type": "string"
},
"invitation": {
"type": "object",
"properties": {
"@type": {
"type": "string"
},
"@id": {
"type": "string"
},
"label": {
"type": "string"
},
"recipientKeys": {
"type": "array",
"items": [
{
"type": "string"
}
]
},
"serviceEndpoint": {
"type": "string"
},
"routingKeys": {
"type": "array",
"items": {}
}
},
"required": [
"@type",
"@id",
"label",
"recipientKeys",
"serviceEndpoint",
"routingKeys"
]
},
"connection": {
"type": "object",
"properties": {
"_tags": {
"type": "object"
},
"metadata": {
"type": "object"
},
"id": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"did": {
"type": "string"
},
"didDoc": {
"type": "object",
"properties": {
"@context": {
"type": "string"
},
"publicKey": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"controller": {
"type": "string"
},
"type": {
"type": "string"
},
"publicKeyBase58": {
"type": "string"
}
},
"required": [
"id",
"controller",
"type",
"publicKeyBase58"
]
}
]
},
"service": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"serviceEndpoint": {
"type": "string"
},
"type": {
"type": "string"
},
"priority": {
"type": "integer"
},
"recipientKeys": {
"type": "array",
"items": [
{
"type": "string"
}
]
},
"routingKeys": {
"type": "array",
"items": {}
}
},
"required": [
"id",
"serviceEndpoint",
"type",
"priority",
"recipientKeys",
"routingKeys"
]
}
]
},
"authentication": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"publicKey": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"publicKey",
"type"
]
}
]
},
"id": {
"type": "string"
}
},
"required": [
"@context",
"publicKey",
"service",
"authentication",
"id"
]
},
"verkey": {
"type": "string"
},
"state": {
"type": "string"
},
"role": {
"type": "string"
},
"alias": {
"type": "string"
},
"invitation": {
"type": "object",
"properties": {
"@type": {
"type": "string"
},
"@id": {
"type": "string"
},
"label": {
"type": "string"
},
"recipientKeys": {
"type": "array",
"items": [
{
"type": "string"
}
]
},
"serviceEndpoint": {
"type": "string"
},
"routingKeys": {
"type": "array",
"items": {}
}
},
"required": [
"@type",
"@id",
"label",
"recipientKeys",
"serviceEndpoint",
"routingKeys"
]
},
"multiUseInvitation": {
"type": "boolean"
}
},
"required": [
"_tags",
"metadata",
"id",
"createdAt",
"did",
"didDoc",
"verkey",
"state",
"role",
"alias",
"invitation",
"multiUseInvitation"
]
}
},
"required": [
"invitationUrl",
"invitation",
"connection"
]
}
},
"required": [
"statusCode",
"message",
"data"
]
}
\ No newline at end of file
#Copyright (c) 2018 Vereign AG [https://www.vereign.com]
#
#This is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#http://localhost/ocm/attestation/v1/health
#Author: Rosen Georgiev rosen.georgiev@vereign.com
@rest @all @ocm @attestation
Feature: API - OCM - attestation - v1 - health GET
Attestation manager health check
Background:
Given we are testing the OCM Api
@health
Scenario: OCM - Attestation - Health check - Positive
Given we call the health check for attestation manager via OCM api
Then the field {statusCode} contains the value {200}
And the status code should be {200}
And the field {message} is present and not empty
And I clear the request body
\ No newline at end of file
#Copyright (c) 2018 Vereign AG [https://www.vereign.com]
#
#This is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#http://localhost/ocm/connection/v1/connections
#Author: Rosen Georgiev rosen.georgiev@vereign.com
@rest @all @ocm @connection
Feature: API - OCM - connection - v1 - connections GET
This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.
Background:
Given we are testing the OCM Api
@connections
Scenario: OCM - GET all connections - Positive
Given an administrator fetches all the connections via OCM api
Then the field {statusCode} contains the value {200}
And the response is valid according to the {Connection_GetConnections_schema.json} REST schema
Then the field {message} contains the value {Connections fetch successfully}
@connections
Scenario: OCM - GET all connections with pagination - Positive
Given an administrator fetches all the connections with pageSize {5} and page {1} via OCM api
Then the field {statusCode} contains the value {200}
And the response is valid according to the {Connection_GetConnections_schema.json} REST schema
Then the field {message} contains the value {Connections fetch successfully}
And the field {$.data.records} contains {5} elements
@connections @negative
Scenario: OCM - GET all connections with pagination out of bounds - negative
Given an administrator fetches all the connections with pageSize {9999} and page {9999} via OCM api
Then the field {statusCode} contains the value {200}
And the response is valid according to the {Connection_GetConnections_schema.json} REST schema
Then the field {message} contains the value {Connections fetch successfully}
And the field {$.data.records} contains {0} elements
\ No newline at end of file
#Copyright (c) 2018 Vereign AG [https://www.vereign.com]
#
#This is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#http://localhost/ocm/connection/v1/connections/{connectionId}
#Author: Rosen Georgiev rosen.georgiev@vereign.com
@rest @all @ocm @connection
Feature: API - OCM - connection - v1 - connections - connectionId GET
This request is used to fetch connection information for the connection id provided in URL.
It also provides state of the connection established.
Background:
Given we are testing the OCM Api
@connections @negative
Scenario Outline: OCM - Try to get connection by providing invalid connectionID - <connId> - Negative
Given an administrator fetches connection with connectionId {<connId>}
Then the field {statusCode} contains the value {404}
Then the field {message} contains the value {No Data found}
Examples:
| connId |
| dasdasdas |
\ No newline at end of file
#Copyright (c) 2018 Vereign AG [https://www.vereign.com]
#
#This is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#http://localhost/ocm/connection/v1/health
#Author: Rosen Georgiev rosen.georgiev@vereign.com
@rest @all @ocm @connection
Feature: API - OCM - connection - v1 - health GET
Connection manager health check
Background:
Given we are testing the OCM Api
@health
Scenario: OCM - Connection - Health check - Positive
Given we call the health check for connection manager via OCM api
Then the field {statusCode} contains the value {200}
And the status code should be {200}
And the field {message} is present and not empty
And I clear the request body
\ No newline at end of file
#Copyright (c) 2018 Vereign AG [https://www.vereign.com]
#
#This is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#http://localhost/ocm/connection/v1/invitation-url
#Author: Rosen Georgiev rosen.georgiev@vereign.com
@rest @all @ocm
Feature: API - OCM - connection - v1 - invitation-url POST
It is used to create the connection invitation URL to establish the peer to peer connection,
between two aeries agents or the participant user and the principal user.
Background:
Given we are testing the OCM Api
@connection
Scenario Outline: OCM - Creating a new process connection with alias <alias>- Positive
#Create a new member process connection
Given an administrator generates a QR code by creating a connection with alias {<alias>} via OCM api
Then the field {statusCode} contains the value {200}
And the status code should be {201}
And the response is valid according to the {Connection_POST_invitationURL.json} REST schema
Then the field {message} contains the value {Connection created successfully}
And the field {$..state} contains the value {invited}
And the field {$..role} contains the value {inviter}
And the field {$..alias} contains the value {<alias>}
Examples:
| alias |
| member |
| subscriber |
@connection @negative
Scenario Outline: OCM - Trying to create a new member process connection with invalid alias <alias> - Negative
#Create a new member process connection
Given an administrator generates a QR code by creating a connection with alias {<alias>} via OCM api
Then the field {statusCode} contains the value {400}
And the status code should be {400}
Then the field {message} contains the value {Alias must be provided}
And I clear the request body
Examples:
| alias |
| dsadasd |
| |
@connection @negative
Scenario: OCM - Trying to create a new member process connection without alies - Negative
#Create a new member process connection
Given an administrator generates a QR code by creating a connection via OCM api
Then the field {statusCode} contains the value {400}
And the status code should be {400}
Then the field {message} contains the value {Alias must be provided}
And I clear the request body
\ No newline at end of file
#Copyright (c) 2018 Vereign AG [https://www.vereign.com]
#
#This is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#http://localhost/ocm/proof/v1/health
#Author: Rosen Georgiev rosen.georgiev@vereign.com
@rest @all @ocm @proof
Feature: API - OCM - proof - v1 - health GET
proof manager health check
Background:
Given we are testing the OCM Api
@health
Scenario: OCM - Proof - Health check - Positive
Given we call the health check for proof manager via OCM api
Then the field {statusCode} contains the value {200}
And the status code should be {200}
And the field {message} is present and not empty
And I clear the request body
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment