diff --git a/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock b/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock new file mode 100644 index 0000000000000000000000000000000000000000..c9fc134fcfed04ba23364be09a048c875b29d788 Binary files /dev/null and b/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock differ diff --git a/.gradle/7.2/dependencies-accessors/gc.properties b/.gradle/7.2/dependencies-accessors/gc.properties new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.gradle/7.2/executionHistory/executionHistory.bin b/.gradle/7.2/executionHistory/executionHistory.bin new file mode 100644 index 0000000000000000000000000000000000000000..ebc05cc4e4964e6392a391014695a713c34295f2 Binary files /dev/null and b/.gradle/7.2/executionHistory/executionHistory.bin differ diff --git a/.gradle/7.2/executionHistory/executionHistory.lock b/.gradle/7.2/executionHistory/executionHistory.lock new file mode 100644 index 0000000000000000000000000000000000000000..e02a883c6471ff303de9e176829cbf3d62c95a57 Binary files /dev/null and b/.gradle/7.2/executionHistory/executionHistory.lock differ diff --git a/.gradle/7.2/fileChanges/last-build.bin b/.gradle/7.2/fileChanges/last-build.bin new file mode 100644 index 0000000000000000000000000000000000000000..f76dd238ade08917e6712764a16a22005a50573d Binary files /dev/null and b/.gradle/7.2/fileChanges/last-build.bin differ diff --git a/.gradle/7.2/fileHashes/fileHashes.bin b/.gradle/7.2/fileHashes/fileHashes.bin new file mode 100644 index 0000000000000000000000000000000000000000..65088ec38b6a5ef93240c5dbf5e7dbc9bd9da9ea Binary files /dev/null and b/.gradle/7.2/fileHashes/fileHashes.bin differ diff --git a/.gradle/7.2/fileHashes/fileHashes.lock b/.gradle/7.2/fileHashes/fileHashes.lock new file mode 100644 index 0000000000000000000000000000000000000000..f97b6e831cbda05ef0e9e85c25edc8b3eb1d446b Binary files /dev/null and b/.gradle/7.2/fileHashes/fileHashes.lock differ diff --git a/.gradle/7.2/fileHashes/resourceHashesCache.bin b/.gradle/7.2/fileHashes/resourceHashesCache.bin new file mode 100644 index 0000000000000000000000000000000000000000..5f4406aa220ac6b9f4b26f62c300422fdffb32e5 Binary files /dev/null and b/.gradle/7.2/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/7.2/gc.properties b/.gradle/7.2/gc.properties new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000000000000000000000000000000000000..979491c99c793d91d80b769cd92b980e32e75fa4 Binary files /dev/null and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000000000000000000000000000000000000..9b688e0f40eb5d4d21a3279d983b86881a0a3fc7 --- /dev/null +++ b/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Tue Jun 07 10:24:41 EEST 2022 +gradle.version=7.2 diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000000000000000000000000000000000000..6366911318727030b457bb9a4ac27ec2488190aa Binary files /dev/null and b/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/.gradle/checksums/checksums.lock b/.gradle/checksums/checksums.lock new file mode 100644 index 0000000000000000000000000000000000000000..9cd320edbf58b774229cb7ed70286cce01db5782 Binary files /dev/null and b/.gradle/checksums/checksums.lock differ diff --git a/.gradle/checksums/md5-checksums.bin b/.gradle/checksums/md5-checksums.bin new file mode 100644 index 0000000000000000000000000000000000000000..e949f9ddd38f1ddb139910c2ed2ce750c2334caf Binary files /dev/null and b/.gradle/checksums/md5-checksums.bin differ diff --git a/.gradle/checksums/sha1-checksums.bin b/.gradle/checksums/sha1-checksums.bin new file mode 100644 index 0000000000000000000000000000000000000000..a3626fc11fe3ef53047817610bb62a788f415ee2 Binary files /dev/null and b/.gradle/checksums/sha1-checksums.bin differ diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000000000000000000000000000000000000..399f9c6ba089b45769230be8c803ef75ace1836d --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +api_framework_java \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000000000000000000000000000000000000..b589d56e9f285d8cfdc6c270853a5d439021a278 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="CompilerConfiguration"> + <bytecodeTargetLevel target="17" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000000000000000000000000000000000000..20db128abe51d28eda879dae9187407864a7f3d8 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="GradleSettings"> + <option name="linkedExternalProjectsSettings"> + <GradleProjectSettings> + <option name="distributionType" value="DEFAULT_WRAPPED" /> + <option name="externalProjectPath" value="$PROJECT_DIR$" /> + <option name="gradleHome" value="$PROJECT_DIR$/../.sdkman/candidates/gradle/current" /> + <option name="modules"> + <set> + <option value="$PROJECT_DIR$" /> + </set> + </option> + </GradleProjectSettings> + </option> + </component> +</project> \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000000000000000000000000000000000000..477208ed603db64c384c8ad4c6109ab0888769c9 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="RemoteRepositoriesConfiguration"> + <remote-repository> + <option name="id" value="central" /> + <option name="name" value="Maven Central repository" /> + <option name="url" value="https://repo1.maven.org/maven2" /> + </remote-repository> + <remote-repository> + <option name="id" value="jboss.community" /> + <option name="name" value="JBoss Community repository" /> + <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> + </remote-repository> + <remote-repository> + <option name="id" value="MavenRepo" /> + <option name="name" value="MavenRepo" /> + <option name="url" value="https://repo.maven.apache.org/maven2/" /> + </remote-repository> + <remote-repository> + <option name="id" value="Gradle Central Plugin Repository" /> + <option name="name" value="Gradle Central Plugin Repository" /> + <option name="url" value="https://plugins.gradle.org/m2" /> + </remote-repository> + <remote-repository> + <option name="id" value="MavenLocal" /> + <option name="name" value="MavenLocal" /> + <option name="url" value="file:$MAVEN_REPOSITORY$/" /> + </remote-repository> + </component> +</project> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..5a50b6cd2367c1c41c234c75219794e9ef43e0dc --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,5 @@ +<?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 diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?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 diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000000000000000000000000000000000000..b52e17950318bc0177e802e0d9564750fce7f8d7 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,206 @@ +<?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="@ocm,not @wip" -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 diff --git a/build/classes/java/test/api/test/rest/ocm/attestation/AttestationStepDefinitions.class b/build/classes/java/test/api/test/rest/ocm/attestation/AttestationStepDefinitions.class new file mode 100644 index 0000000000000000000000000000000000000000..5ae723156c1f005acfe4b822f81a6f9364bd6a14 Binary files /dev/null and b/build/classes/java/test/api/test/rest/ocm/attestation/AttestationStepDefinitions.class differ diff --git a/build/classes/java/test/api/test/rest/ocm/connection/ConnectionStepDefinitions.class b/build/classes/java/test/api/test/rest/ocm/connection/ConnectionStepDefinitions.class new file mode 100644 index 0000000000000000000000000000000000000000..f381db335decd658b2dc25fcc8633a3e54264e6a Binary files /dev/null and b/build/classes/java/test/api/test/rest/ocm/connection/ConnectionStepDefinitions.class differ diff --git a/build/classes/java/test/api/test/rest/ocm/proof/ProofStepDefinitions.class b/build/classes/java/test/api/test/rest/ocm/proof/ProofStepDefinitions.class new file mode 100644 index 0000000000000000000000000000000000000000..5827b7c2adc1c8872361208094850ca1fa78af02 Binary files /dev/null and b/build/classes/java/test/api/test/rest/ocm/proof/ProofStepDefinitions.class differ diff --git a/build/resources/main/REST/schemas/Connection_GetConnections_schema.json b/build/resources/main/REST/schemas/Connection_GetConnections_schema.json new file mode 100644 index 0000000000000000000000000000000000000000..7dcb25054db4ed023c45517be5bdbadf27ab8854 --- /dev/null +++ b/build/resources/main/REST/schemas/Connection_GetConnections_schema.json @@ -0,0 +1,643 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "http://example.com/example.json", + "type": "object", + "default": {}, + "title": "Root Schema", + "required": [ + "statusCode", + "message", + "data" + ], + "properties": { + "statusCode": { + "type": "integer", + "default": 0, + "title": "The statusCode Schema", + "examples": [ + 200 + ] + }, + "message": { + "type": "string", + "default": "", + "title": "The message Schema", + "examples": [ + "Connections fetch successfully" + ] + }, + "data": { + "type": "object", + "default": {}, + "title": "The data Schema", + "required": [ + "count", + "records" + ], + "properties": { + "count": { + "type": "integer", + "default": 0, + "title": "The count Schema", + "examples": [ + 109 + ] + }, + "records": { + "type": "array", + "default": [], + "title": "The records Schema", + "items": { + "type": "object", + "title": "A Schema", + "required": [ + "id", + "connectionId", + "status", + "participantDid", + "theirDid", + "theirLabel", + "createdDate", + "updatedDate", + "isActive" + ], + "properties": { + "id": { + "type": "string", + "title": "The id Schema", + "examples": [ + "02f41110-18b7-4d1f-89d4-b418cf2d603a", + "049ec6ed-8645-465b-8f3a-fdd438aed36b", + "092b1789-2522-44e1-9de7-de00c8e4e601", + "0af9b87d-50ad-4faa-ad97-4ba1ea74af73", + "0b1eb233-0fdc-43ba-887e-01ca49f0984a", + "0b369941-5648-4475-aff3-4b12f6d8f3c2", + "0e6c6705-9b8f-4cdb-a5ea-ab7651512e6a", + "0ea21690-9127-47cf-aad6-5c55721dbae2", + "12870002-9220-4e3b-810f-369ef4351e51", + "162e4a15-1690-47f6-b627-1d3f5386220a" + ] + }, + "connectionId": { + "type": "string", + "title": "The connectionId Schema", + "examples": [ + "24402e32-234b-453f-a4cf-9f3e94ed85ab", + "fd96855b-c979-4125-95ba-d2535e63dfe6", + "719ddbe9-7dce-43df-b4be-4714bcca20a7", + "2b092454-05e6-4687-85e7-61c9ec4be97c", + "1279a5c1-c7f1-4abe-bece-816f5e710050", + "48afe258-dc0a-4c8b-a0f1-4b346e20f13c", + "e0eb278f-3283-419c-95ae-85ed0b4007de", + "9050c647-2931-4fdb-8f65-007c79f0bd33", + "c559ed17-cbce-4992-8d36-4ffb3550988b", + "1eb8faf6-aee8-4b99-9486-79ed0a4c4362" + ] + }, + "status": { + "type": "string", + "title": "The status Schema", + "examples": [ + "complete", + "invited", + "responded", + "trusted" + ] + }, + "participantDid": { + "type": "string", + "title": "The participantDid Schema", + "examples": [ + "BbiM3ypCFV49iqwVKnQ3Pt", + "Jv5JtLcLuEeByKazGBtfSC", + "9DJSEsZpu6Neh2zypBGJoA", + "2j7hMxDhLwR6ya8Ptz5ewv", + "4WZPvgYQoiiyKEwePV2th1", + "NdDAdo5Kg2RvKCNZp62ehS", + "P7jc1nckvYDu4aVxGQeS1z", + "TaojhXfMbbKgoiE8FjMDUG", + "AeB43tLJgwCLPR3CsjwcSU", + "XAND24ceWj37bDc4yxxe2Q" + ] + }, + "theirDid": { + "type": "string", + "title": "The theirDid Schema", + "examples": [ + "6XYGkoJanFdNfQCF7yy8rx", + "", + "SMrr5oVvxW1xWCfetQdYUn", + "NEfdsLk7xnxCui4RbNJj5S", + "JmQBgTUpfu8A7egsv1ib4s" + ] + }, + "theirLabel": { + "type": "string", + "title": "The theirLabel Schema", + "examples": [ + "emilie@vomoto.com", + "", + "rangoon@vomoto.com", + "alena@vomoto.com", + "sam" + ] + }, + "createdDate": { + "type": "string", + "title": "The createdDate Schema", + "examples": [ + "2022-06-09T14:53:40.457Z", + "2022-06-08T13:26:16.708Z", + "2022-06-08T14:40:13.868Z", + "2022-06-06T12:09:07.844Z", + "2022-06-07T12:39:18.101Z", + "2022-06-08T14:14:37.972Z", + "2022-06-09T13:44:50.029Z", + "2022-06-14T10:35:42.300Z", + "2022-06-06T11:42:52.186Z", + "2022-06-06T13:05:53.559Z" + ] + }, + "updatedDate": { + "type": "string", + "title": "The updatedDate Schema", + "examples": [ + "2022-06-09T14:54:40.301Z", + "2022-06-08T13:26:16.708Z", + "2022-06-08T14:40:23.967Z", + "2022-06-06T12:09:07.844Z", + "2022-06-07T12:39:18.101Z", + "2022-06-08T14:14:37.972Z", + "2022-06-09T13:45:01.246Z", + "2022-06-14T10:43:59.067Z", + "2022-06-06T11:42:52.186Z", + "2022-06-06T13:05:53.559Z" + ] + }, + "isActive": { + "type": "boolean", + "title": "The isActive Schema", + "examples": [ + false, + true + ] + } + }, + "examples": [{ + "id": "02f41110-18b7-4d1f-89d4-b418cf2d603a", + "connectionId": "24402e32-234b-453f-a4cf-9f3e94ed85ab", + "status": "complete", + "participantDid": "BbiM3ypCFV49iqwVKnQ3Pt", + "theirDid": "6XYGkoJanFdNfQCF7yy8rx", + "theirLabel": "emilie@vomoto.com", + "createdDate": "2022-06-09T14:53:40.457Z", + "updatedDate": "2022-06-09T14:54:40.301Z", + "isActive": false + }, + { + "id": "049ec6ed-8645-465b-8f3a-fdd438aed36b", + "connectionId": "fd96855b-c979-4125-95ba-d2535e63dfe6", + "status": "invited", + "participantDid": "Jv5JtLcLuEeByKazGBtfSC", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T13:26:16.708Z", + "updatedDate": "2022-06-08T13:26:16.708Z", + "isActive": false + }, + { + "id": "092b1789-2522-44e1-9de7-de00c8e4e601", + "connectionId": "719ddbe9-7dce-43df-b4be-4714bcca20a7", + "status": "complete", + "participantDid": "9DJSEsZpu6Neh2zypBGJoA", + "theirDid": "SMrr5oVvxW1xWCfetQdYUn", + "theirLabel": "rangoon@vomoto.com", + "createdDate": "2022-06-08T14:40:13.868Z", + "updatedDate": "2022-06-08T14:40:23.967Z", + "isActive": false + }, + { + "id": "0af9b87d-50ad-4faa-ad97-4ba1ea74af73", + "connectionId": "2b092454-05e6-4687-85e7-61c9ec4be97c", + "status": "invited", + "participantDid": "2j7hMxDhLwR6ya8Ptz5ewv", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T12:09:07.844Z", + "updatedDate": "2022-06-06T12:09:07.844Z", + "isActive": false + }, + { + "id": "0b1eb233-0fdc-43ba-887e-01ca49f0984a", + "connectionId": "1279a5c1-c7f1-4abe-bece-816f5e710050", + "status": "invited", + "participantDid": "4WZPvgYQoiiyKEwePV2th1", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-07T12:39:18.101Z", + "updatedDate": "2022-06-07T12:39:18.101Z", + "isActive": false + }, + { + "id": "0b369941-5648-4475-aff3-4b12f6d8f3c2", + "connectionId": "48afe258-dc0a-4c8b-a0f1-4b346e20f13c", + "status": "invited", + "participantDid": "NdDAdo5Kg2RvKCNZp62ehS", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T14:14:37.972Z", + "updatedDate": "2022-06-08T14:14:37.972Z", + "isActive": false + }, + { + "id": "0e6c6705-9b8f-4cdb-a5ea-ab7651512e6a", + "connectionId": "e0eb278f-3283-419c-95ae-85ed0b4007de", + "status": "responded", + "participantDid": "P7jc1nckvYDu4aVxGQeS1z", + "theirDid": "NEfdsLk7xnxCui4RbNJj5S", + "theirLabel": "alena@vomoto.com", + "createdDate": "2022-06-09T13:44:50.029Z", + "updatedDate": "2022-06-09T13:45:01.246Z", + "isActive": false + }, + { + "id": "0ea21690-9127-47cf-aad6-5c55721dbae2", + "connectionId": "9050c647-2931-4fdb-8f65-007c79f0bd33", + "status": "trusted", + "participantDid": "TaojhXfMbbKgoiE8FjMDUG", + "theirDid": "JmQBgTUpfu8A7egsv1ib4s", + "theirLabel": "sam", + "createdDate": "2022-06-14T10:35:42.300Z", + "updatedDate": "2022-06-14T10:43:59.067Z", + "isActive": true + }, + { + "id": "12870002-9220-4e3b-810f-369ef4351e51", + "connectionId": "c559ed17-cbce-4992-8d36-4ffb3550988b", + "status": "invited", + "participantDid": "AeB43tLJgwCLPR3CsjwcSU", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T11:42:52.186Z", + "updatedDate": "2022-06-06T11:42:52.186Z", + "isActive": false + }, + { + "id": "162e4a15-1690-47f6-b627-1d3f5386220a", + "connectionId": "1eb8faf6-aee8-4b99-9486-79ed0a4c4362", + "status": "invited", + "participantDid": "XAND24ceWj37bDc4yxxe2Q", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T13:05:53.559Z", + "updatedDate": "2022-06-06T13:05:53.559Z", + "isActive": false + }] + }, + "examples": [ + [{ + "id": "02f41110-18b7-4d1f-89d4-b418cf2d603a", + "connectionId": "24402e32-234b-453f-a4cf-9f3e94ed85ab", + "status": "complete", + "participantDid": "BbiM3ypCFV49iqwVKnQ3Pt", + "theirDid": "6XYGkoJanFdNfQCF7yy8rx", + "theirLabel": "emilie@vomoto.com", + "createdDate": "2022-06-09T14:53:40.457Z", + "updatedDate": "2022-06-09T14:54:40.301Z", + "isActive": false + }, + { + "id": "049ec6ed-8645-465b-8f3a-fdd438aed36b", + "connectionId": "fd96855b-c979-4125-95ba-d2535e63dfe6", + "status": "invited", + "participantDid": "Jv5JtLcLuEeByKazGBtfSC", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T13:26:16.708Z", + "updatedDate": "2022-06-08T13:26:16.708Z", + "isActive": false + }, + { + "id": "092b1789-2522-44e1-9de7-de00c8e4e601", + "connectionId": "719ddbe9-7dce-43df-b4be-4714bcca20a7", + "status": "complete", + "participantDid": "9DJSEsZpu6Neh2zypBGJoA", + "theirDid": "SMrr5oVvxW1xWCfetQdYUn", + "theirLabel": "rangoon@vomoto.com", + "createdDate": "2022-06-08T14:40:13.868Z", + "updatedDate": "2022-06-08T14:40:23.967Z", + "isActive": false + }, + { + "id": "0af9b87d-50ad-4faa-ad97-4ba1ea74af73", + "connectionId": "2b092454-05e6-4687-85e7-61c9ec4be97c", + "status": "invited", + "participantDid": "2j7hMxDhLwR6ya8Ptz5ewv", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T12:09:07.844Z", + "updatedDate": "2022-06-06T12:09:07.844Z", + "isActive": false + }, + { + "id": "0b1eb233-0fdc-43ba-887e-01ca49f0984a", + "connectionId": "1279a5c1-c7f1-4abe-bece-816f5e710050", + "status": "invited", + "participantDid": "4WZPvgYQoiiyKEwePV2th1", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-07T12:39:18.101Z", + "updatedDate": "2022-06-07T12:39:18.101Z", + "isActive": false + }, + { + "id": "0b369941-5648-4475-aff3-4b12f6d8f3c2", + "connectionId": "48afe258-dc0a-4c8b-a0f1-4b346e20f13c", + "status": "invited", + "participantDid": "NdDAdo5Kg2RvKCNZp62ehS", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T14:14:37.972Z", + "updatedDate": "2022-06-08T14:14:37.972Z", + "isActive": false + }, + { + "id": "0e6c6705-9b8f-4cdb-a5ea-ab7651512e6a", + "connectionId": "e0eb278f-3283-419c-95ae-85ed0b4007de", + "status": "responded", + "participantDid": "P7jc1nckvYDu4aVxGQeS1z", + "theirDid": "NEfdsLk7xnxCui4RbNJj5S", + "theirLabel": "alena@vomoto.com", + "createdDate": "2022-06-09T13:44:50.029Z", + "updatedDate": "2022-06-09T13:45:01.246Z", + "isActive": false + }, + { + "id": "0ea21690-9127-47cf-aad6-5c55721dbae2", + "connectionId": "9050c647-2931-4fdb-8f65-007c79f0bd33", + "status": "trusted", + "participantDid": "TaojhXfMbbKgoiE8FjMDUG", + "theirDid": "JmQBgTUpfu8A7egsv1ib4s", + "theirLabel": "sam", + "createdDate": "2022-06-14T10:35:42.300Z", + "updatedDate": "2022-06-14T10:43:59.067Z", + "isActive": true + }, + { + "id": "12870002-9220-4e3b-810f-369ef4351e51", + "connectionId": "c559ed17-cbce-4992-8d36-4ffb3550988b", + "status": "invited", + "participantDid": "AeB43tLJgwCLPR3CsjwcSU", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T11:42:52.186Z", + "updatedDate": "2022-06-06T11:42:52.186Z", + "isActive": false + }, + { + "id": "162e4a15-1690-47f6-b627-1d3f5386220a", + "connectionId": "1eb8faf6-aee8-4b99-9486-79ed0a4c4362", + "status": "invited", + "participantDid": "XAND24ceWj37bDc4yxxe2Q", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T13:05:53.559Z", + "updatedDate": "2022-06-06T13:05:53.559Z", + "isActive": false + }] + ] + } + }, + "examples": [{ + "count": 109, + "records": [{ + "id": "02f41110-18b7-4d1f-89d4-b418cf2d603a", + "connectionId": "24402e32-234b-453f-a4cf-9f3e94ed85ab", + "status": "complete", + "participantDid": "BbiM3ypCFV49iqwVKnQ3Pt", + "theirDid": "6XYGkoJanFdNfQCF7yy8rx", + "theirLabel": "emilie@vomoto.com", + "createdDate": "2022-06-09T14:53:40.457Z", + "updatedDate": "2022-06-09T14:54:40.301Z", + "isActive": false + }, + { + "id": "049ec6ed-8645-465b-8f3a-fdd438aed36b", + "connectionId": "fd96855b-c979-4125-95ba-d2535e63dfe6", + "status": "invited", + "participantDid": "Jv5JtLcLuEeByKazGBtfSC", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T13:26:16.708Z", + "updatedDate": "2022-06-08T13:26:16.708Z", + "isActive": false + }, + { + "id": "092b1789-2522-44e1-9de7-de00c8e4e601", + "connectionId": "719ddbe9-7dce-43df-b4be-4714bcca20a7", + "status": "complete", + "participantDid": "9DJSEsZpu6Neh2zypBGJoA", + "theirDid": "SMrr5oVvxW1xWCfetQdYUn", + "theirLabel": "rangoon@vomoto.com", + "createdDate": "2022-06-08T14:40:13.868Z", + "updatedDate": "2022-06-08T14:40:23.967Z", + "isActive": false + }, + { + "id": "0af9b87d-50ad-4faa-ad97-4ba1ea74af73", + "connectionId": "2b092454-05e6-4687-85e7-61c9ec4be97c", + "status": "invited", + "participantDid": "2j7hMxDhLwR6ya8Ptz5ewv", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T12:09:07.844Z", + "updatedDate": "2022-06-06T12:09:07.844Z", + "isActive": false + }, + { + "id": "0b1eb233-0fdc-43ba-887e-01ca49f0984a", + "connectionId": "1279a5c1-c7f1-4abe-bece-816f5e710050", + "status": "invited", + "participantDid": "4WZPvgYQoiiyKEwePV2th1", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-07T12:39:18.101Z", + "updatedDate": "2022-06-07T12:39:18.101Z", + "isActive": false + }, + { + "id": "0b369941-5648-4475-aff3-4b12f6d8f3c2", + "connectionId": "48afe258-dc0a-4c8b-a0f1-4b346e20f13c", + "status": "invited", + "participantDid": "NdDAdo5Kg2RvKCNZp62ehS", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T14:14:37.972Z", + "updatedDate": "2022-06-08T14:14:37.972Z", + "isActive": false + }, + { + "id": "0e6c6705-9b8f-4cdb-a5ea-ab7651512e6a", + "connectionId": "e0eb278f-3283-419c-95ae-85ed0b4007de", + "status": "responded", + "participantDid": "P7jc1nckvYDu4aVxGQeS1z", + "theirDid": "NEfdsLk7xnxCui4RbNJj5S", + "theirLabel": "alena@vomoto.com", + "createdDate": "2022-06-09T13:44:50.029Z", + "updatedDate": "2022-06-09T13:45:01.246Z", + "isActive": false + }, + { + "id": "0ea21690-9127-47cf-aad6-5c55721dbae2", + "connectionId": "9050c647-2931-4fdb-8f65-007c79f0bd33", + "status": "trusted", + "participantDid": "TaojhXfMbbKgoiE8FjMDUG", + "theirDid": "JmQBgTUpfu8A7egsv1ib4s", + "theirLabel": "sam", + "createdDate": "2022-06-14T10:35:42.300Z", + "updatedDate": "2022-06-14T10:43:59.067Z", + "isActive": true + }, + { + "id": "12870002-9220-4e3b-810f-369ef4351e51", + "connectionId": "c559ed17-cbce-4992-8d36-4ffb3550988b", + "status": "invited", + "participantDid": "AeB43tLJgwCLPR3CsjwcSU", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T11:42:52.186Z", + "updatedDate": "2022-06-06T11:42:52.186Z", + "isActive": false + }, + { + "id": "162e4a15-1690-47f6-b627-1d3f5386220a", + "connectionId": "1eb8faf6-aee8-4b99-9486-79ed0a4c4362", + "status": "invited", + "participantDid": "XAND24ceWj37bDc4yxxe2Q", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T13:05:53.559Z", + "updatedDate": "2022-06-06T13:05:53.559Z", + "isActive": false + }] + }] + } + }, + "examples": [{ + "statusCode": 200, + "message": "Connections fetch successfully", + "data": { + "count": 109, + "records": [{ + "id": "02f41110-18b7-4d1f-89d4-b418cf2d603a", + "connectionId": "24402e32-234b-453f-a4cf-9f3e94ed85ab", + "status": "complete", + "participantDid": "BbiM3ypCFV49iqwVKnQ3Pt", + "theirDid": "6XYGkoJanFdNfQCF7yy8rx", + "theirLabel": "emilie@vomoto.com", + "createdDate": "2022-06-09T14:53:40.457Z", + "updatedDate": "2022-06-09T14:54:40.301Z", + "isActive": false + }, + { + "id": "049ec6ed-8645-465b-8f3a-fdd438aed36b", + "connectionId": "fd96855b-c979-4125-95ba-d2535e63dfe6", + "status": "invited", + "participantDid": "Jv5JtLcLuEeByKazGBtfSC", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T13:26:16.708Z", + "updatedDate": "2022-06-08T13:26:16.708Z", + "isActive": false + }, + { + "id": "092b1789-2522-44e1-9de7-de00c8e4e601", + "connectionId": "719ddbe9-7dce-43df-b4be-4714bcca20a7", + "status": "complete", + "participantDid": "9DJSEsZpu6Neh2zypBGJoA", + "theirDid": "SMrr5oVvxW1xWCfetQdYUn", + "theirLabel": "rangoon@vomoto.com", + "createdDate": "2022-06-08T14:40:13.868Z", + "updatedDate": "2022-06-08T14:40:23.967Z", + "isActive": false + }, + { + "id": "0af9b87d-50ad-4faa-ad97-4ba1ea74af73", + "connectionId": "2b092454-05e6-4687-85e7-61c9ec4be97c", + "status": "invited", + "participantDid": "2j7hMxDhLwR6ya8Ptz5ewv", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T12:09:07.844Z", + "updatedDate": "2022-06-06T12:09:07.844Z", + "isActive": false + }, + { + "id": "0b1eb233-0fdc-43ba-887e-01ca49f0984a", + "connectionId": "1279a5c1-c7f1-4abe-bece-816f5e710050", + "status": "invited", + "participantDid": "4WZPvgYQoiiyKEwePV2th1", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-07T12:39:18.101Z", + "updatedDate": "2022-06-07T12:39:18.101Z", + "isActive": false + }, + { + "id": "0b369941-5648-4475-aff3-4b12f6d8f3c2", + "connectionId": "48afe258-dc0a-4c8b-a0f1-4b346e20f13c", + "status": "invited", + "participantDid": "NdDAdo5Kg2RvKCNZp62ehS", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-08T14:14:37.972Z", + "updatedDate": "2022-06-08T14:14:37.972Z", + "isActive": false + }, + { + "id": "0e6c6705-9b8f-4cdb-a5ea-ab7651512e6a", + "connectionId": "e0eb278f-3283-419c-95ae-85ed0b4007de", + "status": "responded", + "participantDid": "P7jc1nckvYDu4aVxGQeS1z", + "theirDid": "NEfdsLk7xnxCui4RbNJj5S", + "theirLabel": "alena@vomoto.com", + "createdDate": "2022-06-09T13:44:50.029Z", + "updatedDate": "2022-06-09T13:45:01.246Z", + "isActive": false + }, + { + "id": "0ea21690-9127-47cf-aad6-5c55721dbae2", + "connectionId": "9050c647-2931-4fdb-8f65-007c79f0bd33", + "status": "trusted", + "participantDid": "TaojhXfMbbKgoiE8FjMDUG", + "theirDid": "JmQBgTUpfu8A7egsv1ib4s", + "theirLabel": "sam", + "createdDate": "2022-06-14T10:35:42.300Z", + "updatedDate": "2022-06-14T10:43:59.067Z", + "isActive": true + }, + { + "id": "12870002-9220-4e3b-810f-369ef4351e51", + "connectionId": "c559ed17-cbce-4992-8d36-4ffb3550988b", + "status": "invited", + "participantDid": "AeB43tLJgwCLPR3CsjwcSU", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T11:42:52.186Z", + "updatedDate": "2022-06-06T11:42:52.186Z", + "isActive": false + }, + { + "id": "162e4a15-1690-47f6-b627-1d3f5386220a", + "connectionId": "1eb8faf6-aee8-4b99-9486-79ed0a4c4362", + "status": "invited", + "participantDid": "XAND24ceWj37bDc4yxxe2Q", + "theirDid": "", + "theirLabel": "", + "createdDate": "2022-06-06T13:05:53.559Z", + "updatedDate": "2022-06-06T13:05:53.559Z", + "isActive": false + }] + } + }] +} \ No newline at end of file diff --git a/build/resources/main/REST/schemas/Connection_POST_invitationURL.json b/build/resources/main/REST/schemas/Connection_POST_invitationURL.json new file mode 100644 index 0000000000000000000000000000000000000000..e4d0fc9185b2916b4760aeb4cccf154d2bc693fc --- /dev/null +++ b/build/resources/main/REST/schemas/Connection_POST_invitationURL.json @@ -0,0 +1,261 @@ +{ + "$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 diff --git a/build/resources/test/features/ocm/attestation/v1/health/GET.feature b/build/resources/test/features/ocm/attestation/v1/health/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..8ca80b2dd3a4324b7221740f3d4e149f51a5770e --- /dev/null +++ b/build/resources/test/features/ocm/attestation/v1/health/GET.feature @@ -0,0 +1,32 @@ +#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 diff --git a/build/resources/test/features/ocm/connection/v1/connections/GET.feature b/build/resources/test/features/ocm/connection/v1/connections/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..98d96c986a327275d5ae8b552c1baa41ad57aa29 --- /dev/null +++ b/build/resources/test/features/ocm/connection/v1/connections/GET.feature @@ -0,0 +1,47 @@ +#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 diff --git a/build/resources/test/features/ocm/connection/v1/connections/{connectionId}/GET.feature b/build/resources/test/features/ocm/connection/v1/connections/{connectionId}/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..57bdac5a83a55fdbdc04982bbe3740b2e18dd960 --- /dev/null +++ b/build/resources/test/features/ocm/connection/v1/connections/{connectionId}/GET.feature @@ -0,0 +1,34 @@ +#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 diff --git a/build/resources/test/features/ocm/connection/v1/health/GET.feature b/build/resources/test/features/ocm/connection/v1/health/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..e3fb166e738df512a56f0883f535c616a8a81a71 --- /dev/null +++ b/build/resources/test/features/ocm/connection/v1/health/GET.feature @@ -0,0 +1,32 @@ +#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 diff --git a/build/resources/test/features/ocm/connection/v1/invitation-url/POST.feature b/build/resources/test/features/ocm/connection/v1/invitation-url/POST.feature new file mode 100644 index 0000000000000000000000000000000000000000..aa01740d00153dbc307c3561cbc374edb236682a --- /dev/null +++ b/build/resources/test/features/ocm/connection/v1/invitation-url/POST.feature @@ -0,0 +1,64 @@ +#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 diff --git a/build/resources/test/features/ocm/proof/v1/health/GET.feature b/build/resources/test/features/ocm/proof/v1/health/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..f49884e3012a1cfda6759ae4047a29a43fc975ac --- /dev/null +++ b/build/resources/test/features/ocm/proof/v1/health/GET.feature @@ -0,0 +1,32 @@ +#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