diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..2500a76464ed97f6685b9bfc5c4e8c8a066e3fe9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,69 @@ +.gradle +.idea +build +logs +.classpath +.project +bin +.settings +*.iml +local.properties +logs +QA.log +out +.DS_Store + +# Java +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +target/** + +# Test results +build/reports/ +build/test-results/ +build/tmp/ \ No newline at end of file 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/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..26d33521af10bcc7fd8cea344038eaaeb78d0ef5 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml 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/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000000000000000000000000000000000000..3c7c5977716ec881c158ca653e4a1e015f994f30 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Encoding"> + <file url="file://$PROJECT_DIR$/src/test/java/api/test/rest/ocm/connection/ConnectionStepDefinitions.java" charset="UTF-8" /> + </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/main/core/JsonUtils.class b/build/classes/java/main/core/JsonUtils.class index 2d80a4e8809c41e912a1a05b3e567cd53a1dd1e0..b8186e8b798488d3ee9b6be0d1a711059d33388b 100644 Binary files a/build/classes/java/main/core/JsonUtils.class and b/build/classes/java/main/core/JsonUtils.class differ diff --git a/build/classes/java/main/core/RestClient.class b/build/classes/java/main/core/RestClient.class index d79acb7aa6a68b1fad68c31b33aa2875a512b421..9ee4b8e848e1ab9d6ec8f1ec4b1ba1ecfa085762 100644 Binary files a/build/classes/java/main/core/RestClient.class and b/build/classes/java/main/core/RestClient.class differ diff --git a/build/classes/java/main/utils/JSONBuilder$1.class b/build/classes/java/main/utils/JSONBuilder$1.class index 78d66594a79bdd521ad616807258ee23f2265396..017db3dd2eef2c1076f76ad48b8aa6f056d72490 100644 Binary files a/build/classes/java/main/utils/JSONBuilder$1.class and b/build/classes/java/main/utils/JSONBuilder$1.class differ diff --git a/build/classes/java/main/utils/JSONBuilder$JsonItem.class b/build/classes/java/main/utils/JSONBuilder$JsonItem.class index 933d5c687787f1ffcff226e435004f32efd33a52..a30afb6268c11a56456524fb68f1d300aed6f278 100644 Binary files a/build/classes/java/main/utils/JSONBuilder$JsonItem.class and b/build/classes/java/main/utils/JSONBuilder$JsonItem.class differ diff --git a/build/classes/java/main/utils/JSONBuilder.class b/build/classes/java/main/utils/JSONBuilder.class index bca430d8297954dd24a28cfcf4622edcd7369cdc..23e4650a79abf220309f90b264c7246a9a0ac207 100644 Binary files a/build/classes/java/main/utils/JSONBuilder.class and b/build/classes/java/main/utils/JSONBuilder.class differ diff --git a/build/classes/java/test/api/test/rest/RestGeneralStepDefinitions.class b/build/classes/java/test/api/test/rest/RestGeneralStepDefinitions.class index 71ad2a27693a2f0dbb108269c5ee479bb07b86ec..b2ecad2d5c588eac70ed84f3c7418e7bbf8185fc 100644 Binary files a/build/classes/java/test/api/test/rest/RestGeneralStepDefinitions.class and b/build/classes/java/test/api/test/rest/RestGeneralStepDefinitions.class differ diff --git a/build/classes/java/test/api/test/rest/batch/BatchStepDefinitions.class b/build/classes/java/test/api/test/rest/batch/BatchStepDefinitions.class deleted file mode 100644 index 07a4fc891b14d203de1b9216d96e50ebc6a798fa..0000000000000000000000000000000000000000 Binary files a/build/classes/java/test/api/test/rest/batch/BatchStepDefinitions.class and /dev/null differ 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/reports/tests/regressionSuite/classes/RegressionTestSuite.html b/build/reports/tests/regressionSuite/classes/RegressionTestSuite.html deleted file mode 100644 index 4b16a365981218b38e716ecc3d5f9adfd0be71b7..0000000000000000000000000000000000000000 --- a/build/reports/tests/regressionSuite/classes/RegressionTestSuite.html +++ /dev/null @@ -1,121 +0,0 @@ -<!DOCTYPE html> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> -<meta http-equiv="x-ua-compatible" content="IE=edge"/> -<title>Test results - Class RegressionTestSuite</title> -<link href="../css/base-style.css" rel="stylesheet" type="text/css"/> -<link href="../css/style.css" rel="stylesheet" type="text/css"/> -<script src="../js/report.js" type="text/javascript"></script> -</head> -<body> -<div id="content"> -<h1>Class RegressionTestSuite</h1> -<div class="breadcrumbs"> -<a href="../index.html">all</a> > -<a href="../packages/default-package.html">default-package</a> > RegressionTestSuite</div> -<div id="summary"> -<table> -<tr> -<td> -<div class="summaryGroup"> -<table> -<tr> -<td> -<div class="infoBox" id="tests"> -<div class="counter">1</div> -<p>tests</p> -</div> -</td> -<td> -<div class="infoBox" id="failures"> -<div class="counter">1</div> -<p>failures</p> -</div> -</td> -<td> -<div class="infoBox" id="ignored"> -<div class="counter">0</div> -<p>ignored</p> -</div> -</td> -<td> -<div class="infoBox" id="duration"> -<div class="counter">0s</div> -<p>duration</p> -</div> -</td> -</tr> -</table> -</div> -</td> -<td> -<div class="infoBox failures" id="successRate"> -<div class="percent">0%</div> -<p>successful</p> -</div> -</td> -</tr> -</table> -</div> -<div id="tabs"> -<ul class="tabLinks"> -<li> -<a href="#tab0">Failed tests</a> -</li> -<li> -<a href="#tab1">Tests</a> -</li> -<li> -<a href="#tab2">Standard error</a> -</li> -</ul> -<div id="tab0" class="tab"> -<h2>Failed tests</h2> -<div class="test"> -<a name="initializationError"></a> -<h3 class="failures">initializationError</h3> -<span class="code"> -<pre>courgette.runtime.CourgetteTestFailureException: There were failing tests. Refer to the Courgette html report for more details. -</pre> -</span> -</div> -</div> -<div id="tab1" class="tab"> -<h2>Tests</h2> -<table> -<thead> -<tr> -<th>Test</th> -<th>Duration</th> -<th>Result</th> -</tr> -</thead> -<tr> -<td class="failures">initializationError</td> -<td class="failures">0s</td> -<td class="failures">failed</td> -</tr> -</table> -</div> -<div id="tab2" class="tab"> -<h2>Standard error</h2> -<span class="code"> -<pre>Apr 15, 2022 4:56:26 PM cucumber.runtime.filter.TagExpressionOld isOldTagExpression -WARNING: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber-JVM. Please use 'not @tag' instead. -</pre> -</span> -</div> -</div> -<div id="footer"> -<p> -<div> -<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines -<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> -</label> -</div>Generated by -<a href="http://www.gradle.org">Gradle 7.4.1</a> at Apr 15, 2022, 4:56:29 PM</p> -</div> -</div> -</body> -</html> diff --git a/build/reports/tests/regressionSuite/index.html b/build/reports/tests/regressionSuite/index.html index 691b144183e42ee604187c1b60c535a6c1770b5c..59971c9c36eb8e4305a5e9acb40306af3813c53b 100644 --- a/build/reports/tests/regressionSuite/index.html +++ b/build/reports/tests/regressionSuite/index.html @@ -20,13 +20,13 @@ <tr> <td> <div class="infoBox" id="tests"> -<div class="counter">1</div> +<div class="counter">0</div> <p>tests</p> </div> </td> <td> <div class="infoBox" id="failures"> -<div class="counter">1</div> +<div class="counter">0</div> <p>failures</p> </div> </td> @@ -38,7 +38,7 @@ </td> <td> <div class="infoBox" id="duration"> -<div class="counter">0s</div> +<div class="counter">-</div> <p>duration</p> </div> </td> @@ -47,8 +47,8 @@ </div> </td> <td> -<div class="infoBox failures" id="successRate"> -<div class="percent">0%</div> +<div class="infoBox success" id="successRate"> +<div class="percent">-</div> <p>successful</p> </div> </td> @@ -58,52 +58,10 @@ <div id="tabs"> <ul class="tabLinks"> <li> -<a href="#tab0">Failed tests</a> -</li> -<li> -<a href="#tab1">Packages</a> -</li> -<li> -<a href="#tab2">Classes</a> +<a href="#tab0">Classes</a> </li> </ul> <div id="tab0" class="tab"> -<h2>Failed tests</h2> -<ul class="linkList"> -<li> -<a href="classes/RegressionTestSuite.html">RegressionTestSuite</a>. -<a href="classes/RegressionTestSuite.html#initializationError">initializationError</a> -</li> -</ul> -</div> -<div id="tab1" class="tab"> -<h2>Packages</h2> -<table> -<thead> -<tr> -<th>Package</th> -<th>Tests</th> -<th>Failures</th> -<th>Ignored</th> -<th>Duration</th> -<th>Success rate</th> -</tr> -</thead> -<tbody> -<tr> -<td class="failures"> -<a href="packages/default-package.html">default-package</a> -</td> -<td>1</td> -<td>1</td> -<td>0</td> -<td>0s</td> -<td class="failures">0%</td> -</tr> -</tbody> -</table> -</div> -<div id="tab2" class="tab"> <h2>Classes</h2> <table> <thead> @@ -116,18 +74,7 @@ <th>Success rate</th> </tr> </thead> -<tbody> -<tr> -<td class="failures"> -<a href="classes/RegressionTestSuite.html">RegressionTestSuite</a> -</td> -<td>1</td> -<td>1</td> -<td>0</td> -<td>0s</td> -<td class="failures">0%</td> -</tr> -</tbody> +<tbody/> </table> </div> </div> @@ -138,7 +85,7 @@ <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> </label> </div>Generated by -<a href="http://www.gradle.org">Gradle 7.4.1</a> at Apr 15, 2022, 4:56:29 PM</p> +<a href="http://www.gradle.org">Gradle 7.2</a> at Jun 17, 2022, 5:00:16 PM</p> </div> </div> </body> diff --git a/build/reports/tests/regressionSuite/packages/default-package.html b/build/reports/tests/regressionSuite/packages/default-package.html deleted file mode 100644 index ea9bd064d9d5fbddd8e873ad2f8915b50878d85d..0000000000000000000000000000000000000000 --- a/build/reports/tests/regressionSuite/packages/default-package.html +++ /dev/null @@ -1,115 +0,0 @@ -<!DOCTYPE html> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> -<meta http-equiv="x-ua-compatible" content="IE=edge"/> -<title>Test results - Default package</title> -<link href="../css/base-style.css" rel="stylesheet" type="text/css"/> -<link href="../css/style.css" rel="stylesheet" type="text/css"/> -<script src="../js/report.js" type="text/javascript"></script> -</head> -<body> -<div id="content"> -<h1>Default package</h1> -<div class="breadcrumbs"> -<a href="../index.html">all</a> > default-package</div> -<div id="summary"> -<table> -<tr> -<td> -<div class="summaryGroup"> -<table> -<tr> -<td> -<div class="infoBox" id="tests"> -<div class="counter">1</div> -<p>tests</p> -</div> -</td> -<td> -<div class="infoBox" id="failures"> -<div class="counter">1</div> -<p>failures</p> -</div> -</td> -<td> -<div class="infoBox" id="ignored"> -<div class="counter">0</div> -<p>ignored</p> -</div> -</td> -<td> -<div class="infoBox" id="duration"> -<div class="counter">0s</div> -<p>duration</p> -</div> -</td> -</tr> -</table> -</div> -</td> -<td> -<div class="infoBox failures" id="successRate"> -<div class="percent">0%</div> -<p>successful</p> -</div> -</td> -</tr> -</table> -</div> -<div id="tabs"> -<ul class="tabLinks"> -<li> -<a href="#tab0">Failed tests</a> -</li> -<li> -<a href="#tab1">Classes</a> -</li> -</ul> -<div id="tab0" class="tab"> -<h2>Failed tests</h2> -<ul class="linkList"> -<li> -<a href="../classes/RegressionTestSuite.html">RegressionTestSuite</a>. -<a href="../classes/RegressionTestSuite.html#initializationError">initializationError</a> -</li> -</ul> -</div> -<div id="tab1" class="tab"> -<h2>Classes</h2> -<table> -<thread> -<tr> -<th>Class</th> -<th>Tests</th> -<th>Failures</th> -<th>Ignored</th> -<th>Duration</th> -<th>Success rate</th> -</tr> -</thread> -<tr> -<td class="failures"> -<a href="../classes/RegressionTestSuite.html">RegressionTestSuite</a> -</td> -<td>1</td> -<td>1</td> -<td>0</td> -<td>0s</td> -<td class="failures">0%</td> -</tr> -</table> -</div> -</div> -<div id="footer"> -<p> -<div> -<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines -<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> -</label> -</div>Generated by -<a href="http://www.gradle.org">Gradle 7.4.1</a> at Apr 15, 2022, 4:56:29 PM</p> -</div> -</div> -</body> -</html> diff --git a/build/resources/main/REST/schemas/Batch_GetStatuses_schema.json b/build/resources/main/REST/schemas/Batch_GetStatuses_schema.json deleted file mode 100644 index 09b1fbf854d8d3790b28c79c3fd2168db84ddef8..0000000000000000000000000000000000000000 --- a/build/resources/main/REST/schemas/Batch_GetStatuses_schema.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", - "properties": { - "status": { - "type": "string" - }, - "code": { - "type": "string" - }, - "data": { - "type": "array", - "items": [ - { - "type": "object", - "properties": { - "Status": { - "type": "string" - }, - "TransactionID": { - "type": "string" - }, - "BatchID": { - "type": "string" - } - }, - "required": [ - "Status", - "TransactionID", - "BatchID" - ] - }, - { - "type": "object", - "properties": { - "Status": { - "type": "string" - }, - "TransactionID": { - "type": "string" - }, - "BatchID": { - "type": "string" - } - }, - "required": [ - "Status", - "TransactionID", - "BatchID" - ] - } - ] - } - }, - "required": [ - "status", - "code", - "data" - ] -} \ No newline at end of file diff --git a/build/resources/main/REST/schemas/Batch_GetTotalCount_schema.json b/build/resources/main/REST/schemas/Batch_GetTotalCount_schema.json deleted file mode 100644 index b090c9e05ba3b7ee81b91ce391c8d8c52f58f257..0000000000000000000000000000000000000000 --- a/build/resources/main/REST/schemas/Batch_GetTotalCount_schema.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "required": [ - "status", - "code", - "data", - "counters" - ], - "properties": { - "status": { - "$id": "#root/status", - "title": "Status", - "type": "string", - "default": "", - "examples": [ - "OK" - ], - "pattern": "^.*$" - }, - "code": { - "$id": "#root/code", - "title": "Code", - "type": "string", - "default": "", - "examples": [ - "200" - ], - "pattern": "^.*$" - }, - "data": { - "$id": "#root/data", - "title": "Data", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "counters": { - "$id": "#root/counters", - "title": "Counters", - "type": "object", - "required": [ - "receivedStatus", - "storedStatus", - "anchoredStatus", - "anchoredBatches" - ], - "properties": { - "receivedStatus": { - "$id": "#root/counters/receivedStatus", - "title": "Receivedstatus", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "storedStatus": { - "$id": "#root/counters/storedStatus", - "title": "Storedstatus", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "anchoredStatus": { - "$id": "#root/counters/anchoredStatus", - "title": "Anchoredstatus", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "anchoredBatches": { - "$id": "#root/counters/anchoredBatches", - "title": "Anchoredbatches", - "type": "integer", - "examples": [ - 40 - ], - "default": 0 - } - } - } - - } -} 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/batch/api/getStatuses/POST.feature b/build/resources/test/features/batch/api/getStatuses/POST.feature deleted file mode 100644 index beff4258066ed6153cabd7c0870ea0aaae4b9090..0000000000000000000000000000000000000000 --- a/build/resources/test/features/batch/api/getStatuses/POST.feature +++ /dev/null @@ -1,91 +0,0 @@ -#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/api/getStatuses -#Author: Rosen Georgiev rosen.georgiev@vereign.com - -@rest @batch @all -Feature: API - getStatuses POST - Get the previously added Batches - - Background: - Given we are testing the VIAM Api - - @getStatuses @test - Scenario: Send a batch request and then fetch it with getStatuses - Positive -#Send Batch - Given I load the REST request {Batch.json} with profile {successful_batch} - Given I send a new random batch request via API - And the status code should be {200} -#Get Statuses - Then I wait for {60000} mseconds - Given I clear the request body - Then I call getStatuses with the current sealKey via API - And the status code should be {200} - And the field {$.status} has the value {OK} - And the field {$.code} has the value {200} - And the response is valid according to the {Batch_GetStatuses_schema.json} REST schema - And I assert that getStatus status is the same as the sendBatch value via API - - @getStatuses @negative - Scenario Outline: Try to call getStatuses with invalid request - <profile> - Negative -#Get Statuses - Given I clear the request body - Given I load the REST request {Batch.json} with profile {<profile>} - Then I call getStatuses request via API - And the status code should be {400} - And the field {$.message} has the value {<msg>} - Examples: - | profile | msg | - | getStatuses_missing_key | sealID (key) is missing | - | getStatuses_missing_value | sealID (key) is missing | - | getStatuses_empty | sealID (key) is missing | - - @sendbatch - Scenario: Send a batch requests with 2 objects and then get them - Positive -#Send Batch - Given I load the REST request {Batch.json} with profile {successful_batch} - Then I send a new random batch request with 2 objects via API - And the status code should be {200} - And the field {message} has the value {batch is queued} -#Get Statuses of seal key 1 - Then I wait for {60000} mseconds - Given I clear the request body - Then I call getStatuses with the current sealKey via API - And the status code should be {200} - And the response is valid according to the {Batch_GetStatuses_schema.json} REST schema - And I assert that getStatus status is the same as the sendBatch value via API -#Get Statuses of seal key 2 - Given I clear the request body - Then I call getStatuses with the current sealKey2 via API - And the status code should be {200} - And the response is valid according to the {Batch_GetStatuses_schema.json} REST schema - And I assert that getStatus status is the same as the sendBatch value via API - - @sendbatch - Scenario: Send 2 separate batch requests for the same key and then get them - Positive -#Send Batch - Given I load the REST request {Batch.json} with profile {successful_batch} - Given I send a new random batch request via API - And the status code should be {200} - Then I send a new batch request via API - And the status code should be {200} - And the field {message} has the value {batch is queued} -#Get Statuses - Then I wait for {120000} mseconds - Given I clear the request body - Then I call getStatuses with the current sealKey via API - And the status code should be {200} - And the field {$..Status} contains {2} elements \ No newline at end of file diff --git a/build/resources/test/features/batch/api/getTotalCount/POST.feature b/build/resources/test/features/batch/api/getTotalCount/POST.feature deleted file mode 100644 index adcef82bab203cf994fa7f1110c52aa6bfe622a7..0000000000000000000000000000000000000000 --- a/build/resources/test/features/batch/api/getTotalCount/POST.feature +++ /dev/null @@ -1,41 +0,0 @@ -#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/api/sendbatch -#Author: Georgi Michev georgi.michev@vereign.como - -@rest @batch @all -Feature: API - getTotalCount POST - Retrieve counters for processed seal statuses and batches - - Background: - Given we are testing the VIAM Api - - @getTotalCount - Scenario: Send request with empty body - Positive - #Send Request - Given I send a total count request via API - And the status code should be {200} - And the response is valid according to the {Batch_GetTotalCount_schema.json} REST schema - And the field {data} is present and not empty - And the field {data} is not equal to the value {0} - And the field {receivedStatus} is present and not empty - And the field {receivedStatus} is not equal to the value {0} - And the field {storedStatus} is present and not empty - And the field {storedStatus} is not equal to the value {0} - And the field {anchoredStatus} is present and not empty - And the field {anchoredStatus} is not equal to the value {0} - And the field {anchoredBatches} is present and not empty - And the field {anchoredBatches} is not equal to the value {0} diff --git a/build/resources/test/features/batch/api/sendBatch/POST.feature b/build/resources/test/features/batch/api/sendBatch/POST.feature deleted file mode 100644 index 005ee34866dd37d73ad61bfb7e784fbad880e48d..0000000000000000000000000000000000000000 --- a/build/resources/test/features/batch/api/sendBatch/POST.feature +++ /dev/null @@ -1,61 +0,0 @@ -#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/api/sendbatch -#Author: Rosen Georgiev rosen.georgiev@vereign.com - -@rest @batch @all -Feature: API - sendBatch POST - This all sends batch request - - Background: - Given we are testing the VIAM Api - - @sendbatch - Scenario: Send a new random batch - Positive -#Send Batch - Given I load the REST request {Batch.json} with profile {successful_batch} - Given I send a new random batch request via API - And the status code should be {200} - And the field {message} has the value {batch is queued} - - @sendbatch - Scenario: Send 2 batch requests for the same key - Positive -#Send Batch - Given I load the REST request {Batch.json} with profile {successful_batch} - Given I send a new random batch request via API - And the status code should be {200} - Then I send a new batch request via API - And the status code should be {200} - And the field {message} has the value {batch is queued} - - @sendbatch @negative - Scenario Outline: Try to send invalid batch requests for sendBatch - <profile> - Negative -#Send Batch - Given I load the REST request {Batch.json} with profile {<profile>} - Given I send a new batch request via API - And the status code should be {<code>} - And the field {message} has the value {<message>} - And the field {kind} has the value {<kind>} - And the field {id} is present and not empty - Examples: - | profile | message | code | kind | - | missing_batch | no status entries to process | 400 | 1 | - | empty_seal_key | invalid batch | 400 | 1 | - | empty_seal_value | invalid batch | 400 | 1 | - | missing_seal | no status entries to process | 400 | 1 | - | not_base64_value | invalid batch | 400 | 1 | - - 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/src/test/resources/features/policy/api/POST.feature b/build/resources/test/features/ocm/proof/v1/health/GET.feature similarity index 61% rename from src/test/resources/features/policy/api/POST.feature rename to build/resources/test/features/ocm/proof/v1/health/GET.feature index 98e2886bf309ffe589738165d03d484d7262c9e7..f49884e3012a1cfda6759ae4047a29a43fc975ac 100644 --- a/src/test/resources/features/policy/api/POST.feature +++ b/build/resources/test/features/ocm/proof/v1/health/GET.feature @@ -13,17 +13,20 @@ #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/policy +#http://localhost/ocm/proof/v1/health #Author: Rosen Georgiev rosen.georgiev@vereign.com -@rest @all -Feature: API - TSA - policy POST - Add a new policy +@rest @all @ocm @proof +Feature: API - OCM - proof - v1 - health GET + proof manager health check Background: - Given we are testing the TSA Policy Api + Given we are testing the OCM Api - @policy - Scenario: TSA - Adding a new Policy - Positive -#Send Batch - And I clear the request body \ No newline at end of file + @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 diff --git a/build/test-results/regressionSuite/TEST-RegressionTestSuite.xml b/build/test-results/regressionSuite/TEST-RegressionTestSuite.xml deleted file mode 100644 index 7e9a545814fe6347238902f179aac6079ff6cec0..0000000000000000000000000000000000000000 --- a/build/test-results/regressionSuite/TEST-RegressionTestSuite.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<testsuite name="RegressionTestSuite" tests="1" skipped="0" failures="1" errors="0" timestamp="2022-04-15T13:56:29" hostname="vereign-e4802" time="0.0"> - <properties/> - <testcase name="initializationError" classname="RegressionTestSuite" time="0.0"> - <failure message="courgette.runtime.CourgetteTestFailureException: There were failing tests. Refer to the Courgette html report for more details." type="courgette.runtime.CourgetteTestFailureException">courgette.runtime.CourgetteTestFailureException: There were failing tests. Refer to the Courgette html report for more details. -</failure> - </testcase> - <system-out><![CDATA[]]></system-out> - <system-err><![CDATA[Apr 15, 2022 4:56:26 PM cucumber.runtime.filter.TagExpressionOld isOldTagExpression -WARNING: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber-JVM. Please use 'not @tag' instead. -]]></system-err> -</testsuite> diff --git a/build/test-results/regressionSuite/binary/output.bin b/build/test-results/regressionSuite/binary/output.bin index 09e3e43ee7a826220b19284c137778d1d336c461..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 Binary files a/build/test-results/regressionSuite/binary/output.bin and b/build/test-results/regressionSuite/binary/output.bin differ diff --git a/build/test-results/regressionSuite/binary/output.bin.idx b/build/test-results/regressionSuite/binary/output.bin.idx index d3a9f0ebb31096fa1918e7fa1816b1d182294ea5..f76dd238ade08917e6712764a16a22005a50573d 100644 Binary files a/build/test-results/regressionSuite/binary/output.bin.idx and b/build/test-results/regressionSuite/binary/output.bin.idx differ diff --git a/build/test-results/regressionSuite/binary/results.bin b/build/test-results/regressionSuite/binary/results.bin index 18efae33ee1eb2b1d3375443203692d44d50623b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 Binary files a/build/test-results/regressionSuite/binary/results.bin and b/build/test-results/regressionSuite/binary/results.bin differ diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index 67ad37ba9a355ad3be4f95654913229e0a9d34cf..cb7a3c3500f9a5facd3e9b15293118b2766f96e0 100644 Binary files a/build/tmp/compileJava/previous-compilation-data.bin and b/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/build/tmp/compileTestJava/previous-compilation-data.bin b/build/tmp/compileTestJava/previous-compilation-data.bin index 8a2342dd1a90d2814f483e5f9a04bf11f141a2ca..21858cb514199a9749f9938935b64d0175e593b2 100644 Binary files a/build/tmp/compileTestJava/previous-compilation-data.bin and b/build/tmp/compileTestJava/previous-compilation-data.bin differ diff --git a/features/attestation-manager/credentialDef/createCredentialDef.feature b/features/attestation-manager/credentialDef/createCredentialDef.feature new file mode 100644 index 0000000000000000000000000000000000000000..9f8a9c08cf9d2a33bb46bf5de1a2801899ff32bc --- /dev/null +++ b/features/attestation-manager/credentialDef/createCredentialDef.feature @@ -0,0 +1,26 @@ +As an OCM user + I want to create a new Credential Definition + +Feature: Create a new Credential Definition + Create a new Credential Definition on Ledger and save details in DB + + Scenario: Provide valid and required Credential Definition Details + Given I have passed all required credential definition details. + # src\credentialDef\controller\controller.ts -> REST API with POST method -> credentialDef/ + When passed all valid credential definition details. + Then credential definition should be created on the Ledger with the given details. + And should return the newly created credential definition id. + And store the details in DB. + And I should get the HTTP status code 201 Created and the created Credential Definition Details. + + Scenario: Provide invalid schemaID, name, created_by, is_revokable or is_auto_issue + Given I have passed schemaID, name, created_by, is_revokable and is_auto_issue. + # src\credentialDef\controller\controller.ts -> REST API with POST method -> credentialDef/ + When passed invalid schemaID, name, created_by, is_revokable or is_auto_issue. + Then I should get HTTP status code 400 Bad Request. + + Scenario: Provide name and schemaID of the existing Credential Definition. + Given I have passed all required credential definition details. + # src\credentialDef\controller\controller.ts -> REST API with POST method -> credentialDef/ + When passed name and schemaID of the existing Credential Definition. + Then I should get HTTP status code 409 Conflict. \ No newline at end of file diff --git a/features/attestation-manager/credentialDef/findCredentialDef.feature b/features/attestation-manager/credentialDef/findCredentialDef.feature new file mode 100644 index 0000000000000000000000000000000000000000..5dac4c177e44347ff737f88bc84546f12c837f34 --- /dev/null +++ b/features/attestation-manager/credentialDef/findCredentialDef.feature @@ -0,0 +1,17 @@ +As an OCM user + I want to get all Credential Definitions by schema id + +Feature: Get All Credential Definitions by schema id + Get All Credential Definitions from the DB by given schema id + + Scenario: Provide valid schema id, page and page size. + Given I have passed the required schema id, page and page size. + # src\credentialDef\controller\controller.ts -> REST API with GET method -> credentialDef/ + When passed details are valid. + Then I should get the HTTP status code 200 Ok and list of Credential Definitions from the DB. + + Scenario: Provide invalid schema id. + Given I have passed the required schema id. + # src\credentialDef\controller\controller.ts -> REST API with GET method -> credentialDef/ + When passed schema id is invalid. + Then I should get the HTTP status code 404 NOT Found. \ No newline at end of file diff --git a/features/attestation-manager/credentialDef/findCredentialDefById.feature b/features/attestation-manager/credentialDef/findCredentialDefById.feature new file mode 100644 index 0000000000000000000000000000000000000000..270c148c1d1688976d0ddc708047e6f55f38a6d7 --- /dev/null +++ b/features/attestation-manager/credentialDef/findCredentialDefById.feature @@ -0,0 +1,17 @@ +As an OCM user + I want to find Credential Definition by id + +Feature: Get Credential Definition by Id + Get Credential Definition by the given cred_def_id + + Scenario: Provide valid cred_def_id. + Given I have passed the required cred_def_id. + # src\credentialDef\controller\controller.ts -> REST API with GET method -> credentialDef/:id + When passed cred_def_id is valid. + Then I should get the HTTP status code 200 Ok and Credential Definition from the DB. + + Scenario: Provide invalid cred_def_id. + Given I have passed the required cred_def_id. + # src\credentialDef\controller\controller.ts -> REST API with GET method -> credentialDef/:id + When passed cred_def_id is invalid. + Then I should get the HTTP status code 404 Not Found. diff --git a/features/attestation-manager/issue-credential/acceptOfferCredential.feature b/features/attestation-manager/issue-credential/acceptOfferCredential.feature new file mode 100644 index 0000000000000000000000000000000000000000..a30ce0d1b25e05da415e5b674c4a0da8832dab3a --- /dev/null +++ b/features/attestation-manager/issue-credential/acceptOfferCredential.feature @@ -0,0 +1,12 @@ +As an OCM user + I want to accept a credential offer + +Feature: Accept offer credential + Accept a credential offer + + Scenario: Provide valid and required credentialId + Given I have passed all required details. + # src\issue-credential\controller\controller.ts -> REST API with POST method -> accept-request/ + When passed all valid accept offer credential details. + Then credential offer should get accepted. + And I should get the HTTP status code 202 Accepted and the updated credential offer Details. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/createCredentialType.feature b/features/attestation-manager/issue-credential/createCredentialType.feature new file mode 100644 index 0000000000000000000000000000000000000000..2231f0a61297d3e62cb236295f2a823f90b72939 --- /dev/null +++ b/features/attestation-manager/issue-credential/createCredentialType.feature @@ -0,0 +1,18 @@ +As an OCM user + I want to create a new CredentialType + +Feature: Create a new CredentialType + Create a new CredentialType + + Scenario: Provide valid and required CredentialType Details + Given I have passed all required credentialType details. + # src\issue-credential\controller\controller.ts -> REST API with POST method -> credentialType/ + When passed all valid credentialType details. + Then credentialType should be created in DB. + And I should get the HTTP status code 201 Created and the created CredentialType Details. + + Scenario: Provide invalid schema_id or type + Given I have passed schema_id and type. + # src\issue-credential\controller\controller.ts -> REST API with POST method -> credentialType/ + When passed invalid schema_id or type. + Then I should get HTTP status code 400 Bad Request. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/createOfferCredential.feature b/features/attestation-manager/issue-credential/createOfferCredential.feature new file mode 100644 index 0000000000000000000000000000000000000000..4354f25da078637d7a71dc7a7900c0453066721c --- /dev/null +++ b/features/attestation-manager/issue-credential/createOfferCredential.feature @@ -0,0 +1,12 @@ +As an OCM user + I want to create credential offer + +Feature: Create offer credential + Create a credential offer + + Scenario: Provide valid and required connectionId, credentialDefinitionId, comment, preview and autoAcceptCredential + Given I have passed all required offer credential details. + # src\issue-credential\controller\controller.ts -> REST API with POST method -> create-offer-credential/ + When passed all valid offer credential details. + Then credential offer should be sent to the given connection. + And I should get the HTTP status code 201 Created and the created credential offer Details. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/getCredential.feature b/features/attestation-manager/issue-credential/getCredential.feature new file mode 100644 index 0000000000000000000000000000000000000000..9f503d9d267c96783a0a3ec374b1c84de39e1688 --- /dev/null +++ b/features/attestation-manager/issue-credential/getCredential.feature @@ -0,0 +1,16 @@ +As an OCM user + I want to get credentials + +Feature: Get credential + + Scenario: Provide valid credential_id + Given I have passed all required details. + # src\issue-credential\controller\controller.ts -> REST API with POST method -> credential/:id + When passed valid credential_id. + Then I should get the HTTP status code 200 Ok and the credential Details. + + Scenario: Provide invalid credential_id + Given I have passed all required details. + # src\issue-credential\controller\controller.ts -> REST API with POST method -> credential/:id + When passed invalid credential_id. + Then I should get the HTTP status code 404 Not Found. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/getCredentialsTypeDetails.feature b/features/attestation-manager/issue-credential/getCredentialsTypeDetails.feature new file mode 100644 index 0000000000000000000000000000000000000000..5c832c424e128b472331ab31e001f6acb4647efd --- /dev/null +++ b/features/attestation-manager/issue-credential/getCredentialsTypeDetails.feature @@ -0,0 +1,11 @@ +As an OCM user + I want to get the credentialType details of a given type + +Feature: Get CredentialType details + Get the details of credentialType of given type + + Scenario: Provide valid and required type + Given I have passed type. + # src\issue-credential\controller\controller.ts -> NATS call for topic 'ATTESTATION_MANAGER_SERVICE/getCredentialsTypeDetails' + When passed valid type. + Then I should get the details of the CredentialType. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/getIssuedCredentials.feature b/features/attestation-manager/issue-credential/getIssuedCredentials.feature new file mode 100644 index 0000000000000000000000000000000000000000..18e42601ef308ee5e21282f8521a69a746cd435f --- /dev/null +++ b/features/attestation-manager/issue-credential/getIssuedCredentials.feature @@ -0,0 +1,10 @@ +As an OCM user + I want to get the credentials issued to a given connection + +Feature: Get issued credentials of a given connection + + Scenario: Provide valid and required connection_id + Given I have passed connection_id. + # src\issue-credential\controller\controller.ts -> NATS call for topic 'ATTESTATION_MANAGER_SERVICE/getIssueCredentials' + When passed valid connection_id. + Then I should get the list of Credentials Issued. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/offerMemberShipCredentials.feature b/features/attestation-manager/issue-credential/offerMemberShipCredentials.feature new file mode 100644 index 0000000000000000000000000000000000000000..96a06ff401e9c10696f04eda14d8bf6d1a62f5dc --- /dev/null +++ b/features/attestation-manager/issue-credential/offerMemberShipCredentials.feature @@ -0,0 +1,12 @@ +As an OCM user + I want to offer MemberShip Credentials + +Feature: Offer Membership Credential + Offer a membership credential to User + + Scenario: Provide valid and required status, connectionId, theirLabel and participantDid + Given AFJ Agent NATS Publisher have passed all required offer membership credential details. + # src\issue-credential\controller\controller.ts -> NATS call for topic 'ATTESTATION_MANAGER_SERVICE/offerMemberShipCredentials' + When passed all valid offer membership credential details. + Then credential offer should be sent to the given connection. + And I should get the HTTP status code 201 Created and the created membership credential offer Details. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/updateSchemaIdByType.feature b/features/attestation-manager/issue-credential/updateSchemaIdByType.feature new file mode 100644 index 0000000000000000000000000000000000000000..8a5fa42e0a2c5a8c1f99812bfe8d522ffaa84a20 --- /dev/null +++ b/features/attestation-manager/issue-credential/updateSchemaIdByType.feature @@ -0,0 +1,12 @@ +As an OCM user + I want to update schema_id in credentialType of given type + +Feature: Update schema_id by type + update schema_id in credentialType for given type + + Scenario: Provide valid and required schema_id and type + Given I have passed all required details. + # src\issue-credential\controller\controller.ts -> REST API with POST method -> updateSchemaIdByType/ + When passed valid schema_id and type. + Then credentialType should be updated. + And I should get the HTTP status code 200 Ok and the updated credentialType Details. \ No newline at end of file diff --git a/features/attestation-manager/issue-credential/webHookCredentials.feature b/features/attestation-manager/issue-credential/webHookCredentials.feature new file mode 100644 index 0000000000000000000000000000000000000000..97102b2c6a639d1bd5ef73dcdae53f92071bb102 --- /dev/null +++ b/features/attestation-manager/issue-credential/webHookCredentials.feature @@ -0,0 +1,19 @@ +As an OCM user + I want to save the credential details from Webhook emitted by AFJ Agent + +Feature: Credentials Webhook + Credential Webhook Emitted by AFJ + + Scenario: A new Credential is offered + Given AFJ Agent have passed created credential details. + # src\issue-credential\controller\controller.ts -> NATS call for topic 'ATTESTATION_MANAGER_SERVICE/CredentialStateChanged' + When passed credential state is OFFER_SENT. + Then credential should be created in DB. + And I should get the HTTP status code 201 Created and the created credential Details. + + Scenario: A Credential's state is changed + Given AFJ have passed the updated credential details. + # src\issue-credential\controller\controller.ts -> NATS call for topic 'ATTESTATION_MANAGER_SERVICE/CredentialStateChanged' + When passed credential state is not OFFER_SENT. + Then credential state should be updated in DB. + And I should get the HTTP status code 202 Accepted and the updated credential Details. diff --git a/features/attestation-manager/schemas/createSchema.feature b/features/attestation-manager/schemas/createSchema.feature new file mode 100644 index 0000000000000000000000000000000000000000..c847dc7f26d3e91c135db8defd55016a738658a7 --- /dev/null +++ b/features/attestation-manager/schemas/createSchema.feature @@ -0,0 +1,26 @@ +As an OCM user + I want to create a new Schema + +Feature: Create a new Schema + Create a new Schema on Ledger and save details in DB + + Scenario: Provide valid and required Schema Details + Given I have passed all required schema details. + # src\schemas\controller\controller.ts -> REST API with POST method -> schemas/ + When passed all valid schema details. + Then schema should be created on the Ledger with the given details. + And should return the newly created Schema_ID. + And store the details in DB. + And I should get the HTTP status code 201 Created and the created Schema Details. + + Scenario: Provide invalid name, created_by, version or attributes + Given I have passed name, created_by, version and attributes. + # src\schemas\controller\controller.ts -> REST API with POST method -> schemas/ + When passed invalid name, created_by, version or attributes. + Then I should get the HTTP status code 400 Bad Request. + + Scenario: Provide name and version of the existing Schema. + Given I have passed all required schema details. + # src\schemas\controller\controller.ts -> REST API with POST method -> schemas/ + When passed name and version of the existing Schema. + Then I should get the HTTP status code 409 Conflict. \ No newline at end of file diff --git a/features/attestation-manager/schemas/findSchemaById.feature b/features/attestation-manager/schemas/findSchemaById.feature new file mode 100644 index 0000000000000000000000000000000000000000..51cdb9bfb072130eab6506d0baba2bb020945164 --- /dev/null +++ b/features/attestation-manager/schemas/findSchemaById.feature @@ -0,0 +1,17 @@ +As an OCM user + I want to get the Schema by id + +Feature: Get Schema by Id + Get Schema by the given schema id + + Scenario: Provide valid schema id. + Given I have passed the required schema id. + # src\schemas\controller\controller.ts -> REST API with GET method -> schemas/:id + When passed schema id is valid. + Then I should get the HTTP status code 200 Ok and Schema from the DB. + + Scenario: Provide invalid schema id. + Given I have passed the required schema id. + # src\schemas\controller\controller.ts -> REST API with GET method -> schemas/:id + When passed schema id is invalid. + Then I should get the HTTP status code 404 Not Found. diff --git a/features/attestation-manager/schemas/findSchemas.feature b/features/attestation-manager/schemas/findSchemas.feature new file mode 100644 index 0000000000000000000000000000000000000000..384c8c8eb6849bc37694162f8ac66f42bbe2d966 --- /dev/null +++ b/features/attestation-manager/schemas/findSchemas.feature @@ -0,0 +1,11 @@ +As an OCM user + I want to get list of all the Schemas + +Feature: Get All Schemas + Get All Schemas from the DB + + Scenario: Provide valid page and page size. + Given I have passed the required page and page size. + # src\schemas\controller\controller.ts -> REST API with GET method -> schemas/ + When passed details are valid. + Then I should get the HTTP status code 200 Ok and list of Schemas from the DB. \ No newline at end of file diff --git a/features/attestation-manager/schemas/getDidsForSchema.feature b/features/attestation-manager/schemas/getDidsForSchema.feature new file mode 100644 index 0000000000000000000000000000000000000000..55aebf611b763e2e1edc92fa298b625d270ac0de --- /dev/null +++ b/features/attestation-manager/schemas/getDidsForSchema.feature @@ -0,0 +1,17 @@ +As an OCM user + I want to get all principal DIDs for a given schema id + +Feature: Get all DIDs for Schema + Get all principal DIDs for a given schema id + + Scenario: Provide valid schema id. + Given I have passed the required schema id. + # src\schemas\controller\controller.ts -> REST API with GET method -> get-dids-for-schema/:id + When passed schema id is valid. + Then I should get the HTTP status code 200 Ok and Schema DIDs from the DB. + + Scenario: Provide invalid schema id. + Given I have passed the required schema id. + # src\schemas\controller\controller.ts -> REST API with GET method -> get-dids-for-schema/:id + When passed schema id is invalid. + Then I should get the HTTP status code 404 Not Found. \ No newline at end of file diff --git a/log/test.log b/log/test.log index b4a88f63d369ffcc3f077fd9ad40412d0e66879e..07f2bc09478c1bc3e283c511129345ce8a0640c8 100644 --- a/log/test.log +++ b/log/test.log @@ -22,3 +22,1307 @@ Scenario START: Send a batch request and then fetch it with getStatuses - Positi 2022-04-15 16:56:28 [main] INFO RestGeneralStepDefinitions:118 - SUCCESS - profile loaded. 2022-04-15 16:56:28 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] -------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 11:10:01 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-07 11:10:01 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 11:10:02 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 11:10:02 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 11:27:05 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-07 11:27:05 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 11:27:06 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 11:27:08 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 11:32:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-07 11:32:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 11:32:59 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 11:33:00 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 11:39:15 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-07 11:39:16 [main] INFO RestClient:216 - Setting default encoding to UTF8 +2022-06-07 11:39:16 [main] INFO RestClient:228 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 11:39:17 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 11:43:18 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 11:43:18 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 11:43:19 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 11:43:20 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 11:43:57 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 11:43:57 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 11:43:57 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 11:43:57 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 11:43:59 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 11:45:12 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 11:45:12 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 11:45:13 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 11:45:13 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 11:45:14 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:03:20 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:03:20 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:03:21 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:03:21 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:03:22 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:04:42 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:04:42 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:04:43 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:04:43 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:04:44 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:06:50 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:06:50 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:06:50 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:06:50 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:06:51 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:10:49 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:10:49 [main] INFO RestClient:216 - Setting default encoding to UTF8 +2022-06-07 12:10:49 [main] INFO RestClient:228 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:10:49 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:10:50 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:14:08 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:14:08 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:14:09 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:14:09 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:14:09 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:17:26 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:17:26 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:17:26 [main] INFO RestClient:227 - Setting baseURI to https://vereign.com/ocm +2022-06-07 12:17:26 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:17:27 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:18:11 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:18:11 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:18:12 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:18:12 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:18:13 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:21:00 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:21:00 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:21:00 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:21:00 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:21:01 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:23:17 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:23:17 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:23:18 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:23:18 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:23:18 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:23:55 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:23:55 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:23:55 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:23:55 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:23:56 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:25:51 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:25:51 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:25:51 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:25:51 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:25:52 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:29:32 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:29:32 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:29:33 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:29:33 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:29:34 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:30:53 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:30:53 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:30:53 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:30:53 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:30:54 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 12:31:28 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 12:31:28 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 12:31:29 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 12:31:29 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 12:31:30 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@1b7f06c7 +2022-06-07 12:31:30 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 14:42:23 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 14:42:23 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 14:42:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 14:42:23 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 14:42:25 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@19e21f89 +2022-06-07 14:42:25 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 14:43:31 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Health check - Positive +2022-06-07 14:43:31 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 14:43:32 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 14:43:32 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 14:43:33 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@19e21f89 +2022-06-07 14:43:33 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 15:06:05 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Attestation -Health check - Positive +2022-06-07 15:06:05 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 15:06:06 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 15:06:06 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /attestation/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 15:06:07 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@7e7743ec +2022-06-07 15:06:07 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 15:09:46 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Attestation - Health check - Positive +2022-06-07 15:09:46 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 15:09:47 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 15:09:47 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /attestation/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 15:09:48 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@59c500f7 +2022-06-07 15:09:49 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 15:10:13 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Proof - Health check - Positive +2022-06-07 15:10:13 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 15:10:14 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 15:10:14 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /proof/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-07 15:10:15 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@59c500f7 +2022-06-07 15:10:15 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 15:23:42 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-07 15:23:42 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 15:23:42 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 15:23:44 [main] INFO RestClient:161 - Received response core.Response@6f1c3f18 +2022-06-07 15:23:44 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 15:34:09 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-07 15:34:09 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 15:34:10 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 15:34:12 [main] INFO RestClient:161 - Received response core.Response@6367a688 +2022-06-07 15:34:12 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-07 15:35:41 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-07 15:35:41 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-07 15:35:42 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-07 15:35:43 [main] INFO RestClient:161 - Received response core.Response@7d0100ea +2022-06-07 15:35:43 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-09 11:49:55 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-09 11:49:55 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-09 11:49:56 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-09 11:49:58 [main] INFO RestClient:161 - Received response core.Response@6b321262 +2022-06-09 11:49:58 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 10:13:52 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Connection - Health check - Positive +2022-06-15 10:13:52 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-15 10:13:52 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 10:13:52 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 10:13:53 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 10:13:53 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 10:13:53 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 10:13:55 [main] INFO RestClient:161 - Received response core.Response@6b321262 +2022-06-15 10:13:55 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@59c500f7 +2022-06-15 10:13:55 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 10:13:55 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 10:17:56 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-15 10:17:56 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 10:17:57 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 10:17:58 [main] INFO RestClient:161 - Received response core.Response@6b321262 +2022-06-15 10:17:58 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 10:19:04 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-15 10:19:04 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 10:19:04 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 10:19:06 [main] INFO RestClient:161 - Received response core.Response@7d0100ea +2022-06-15 10:19:06 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 10:35:03 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections - Positive +2022-06-15 10:35:03 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 10:35:04 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 10:35:04 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 10:35:05 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@316cda31 +2022-06-15 10:35:05 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 10:44:46 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections - Positive +2022-06-15 10:44:46 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 10:44:47 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 10:44:47 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 10:44:48 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@316cda31 +2022-06-15 10:44:51 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:08:59 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:08:59 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:09:00 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:09:00 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [UNDEFINED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:32:32 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:32:32 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:32:33 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:32:33 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-15 11:32:34 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@4bb1b96b +2022-06-15 11:32:34 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:33:52 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:33:52 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:33:52 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:33:52 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-15 11:33:53 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@4bb1b96b +2022-06-15 11:33:54 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:34:38 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:34:38 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:34:39 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:34:39 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-15 11:34:40 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@4bb1b96b +2022-06-15 11:34:41 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:35:01 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:35:01 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:35:02 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:35:02 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-15 11:35:03 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@4bb1b96b +2022-06-15 11:35:03 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:36:37 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:36:37 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:36:37 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination out of bounds - negative +2022-06-15 11:36:37 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:36:38 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:36:38 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-15 11:36:38 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:36:38 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:9999 + page:9999 +Version: +-------------------------------------------------------------- +2022-06-15 11:36:40 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@4bb1b96b +2022-06-15 11:36:40 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@7a2fce12 +2022-06-15 11:36:41 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:36:41 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:40:43 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:40:43 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:40:43 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:40:43 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 11:40:44 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@6661d8c0 +2022-06-15 11:40:45 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:42:29 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:42:29 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:42:29 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:42:29 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 11:42:30 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@6661d8c0 +2022-06-15 11:42:31 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:43:45 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:43:45 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:43:45 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:43:45 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 11:43:47 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@6661d8c0 +2022-06-15 11:43:47 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 11:44:22 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 11:44:22 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 11:44:22 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 11:44:22 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-15 11:44:23 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@4bb1b96b +2022-06-15 11:44:24 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 13:22:29 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections - Positive +2022-06-15 13:22:29 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 13:22:29 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination out of bounds - negative +2022-06-15 13:22:29 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 13:22:29 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-15 13:22:29 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 13:22:30 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 13:22:30 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 13:22:30 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 13:22:30 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:9999 + page:9999 +Version: +-------------------------------------------------------------- +2022-06-15 13:22:30 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 13:22:30 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-15 13:22:32 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@6661d8c0 +2022-06-15 13:22:33 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@7a2fce12 +2022-06-15 13:22:33 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@4bb1b96b +2022-06-15 13:22:33 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 13:22:33 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 13:22:33 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 16:05:10 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Try to get connection by providing invalid connectionID - - Negative +2022-06-15 16:05:10 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 16:05:10 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 16:05:10 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections/ +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 16:05:11 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@41bfa9e9 +2022-06-15 16:05:12 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 16:11:32 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative +2022-06-15 16:11:32 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 16:11:33 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 16:11:33 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections/dasdasdas +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 16:11:34 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@721d5b74 +2022-06-15 16:11:34 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-15 16:12:40 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative +2022-06-15 16:12:40 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-15 16:12:41 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-15 16:12:41 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections/dasdasdas +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-15 16:12:42 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@721d5b74 +2022-06-15 16:12:42 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:13:41 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection - Positive +2022-06-16 10:13:41 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:13:42 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:13:45 [main] INFO RestClient:161 - Received response core.Response@5ba90d8a +2022-06-16 10:13:45 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:17:11 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection with alias subscriber- Positive +2022-06-16 10:17:11 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new member process connection with alias member- Positive +2022-06-16 10:17:11 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:17:11 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:17:12 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:17:12 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:17:13 [main] INFO RestClient:161 - Received response core.Response@35dece42 +2022-06-16 10:17:14 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:17:14 [main] INFO RestClient:161 - Received response core.Response@35dece42 +2022-06-16 10:17:14 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:40:53 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias dsadasd- Positive +2022-06-16 10:40:53 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:40:53 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias - Positive +2022-06-16 10:40:53 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:40:53 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:40:54 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:40:56 [main] INFO RestClient:161 - Received response core.Response@2282400e +2022-06-16 10:40:56 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:40:56 [main] INFO RestClient:161 - Received response core.Response@2282400e +2022-06-16 10:40:56 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:49:26 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias dsadasd- Positive +2022-06-16 10:49:26 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:49:27 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:49:28 [main] INFO RestClient:161 - Received response core.Response@2282400e +2022-06-16 10:49:28 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:50:01 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias - Positive +2022-06-16 10:50:01 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:50:02 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:50:03 [main] INFO RestClient:161 - Received response core.Response@2282400e +2022-06-16 10:50:03 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:53:54 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection without alies - Negative +2022-06-16 10:53:54 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:53:54 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative +2022-06-16 10:53:54 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:53:55 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:53:55 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:53:57 [main] INFO RestClient:161 - Received response core.Response@35bfa1bb +2022-06-16 10:53:57 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:53:57 [main] INFO RestClient:161 - Received response core.Response@bb25753 +2022-06-16 10:53:57 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:55:28 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias member- Positive +2022-06-16 10:55:28 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:55:29 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:55:30 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-16 10:55:30 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 10:59:53 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias member- Positive +2022-06-16 10:59:53 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 10:59:54 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 10:59:56 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-16 10:59:56 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [FAILED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 11:00:27 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias member- Positive +2022-06-16 11:00:27 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 11:00:28 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 11:00:30 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-16 11:00:30 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 11:04:02 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias subscriber- Positive +2022-06-16 11:04:02 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 11:04:03 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 11:04:04 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-16 11:04:04 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 11:07:17 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias member- Positive +2022-06-16 11:07:17 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 11:07:18 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 11:07:19 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-16 11:07:19 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 11:13:24 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias member- Positive +2022-06-16 11:13:24 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 11:13:24 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias subscriber- Positive +2022-06-16 11:13:24 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-16 11:13:25 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 11:13:25 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-16 11:13:26 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-16 11:13:26 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-16 11:13:27 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-16 11:13:27 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:18 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Connection - Health check - Positive +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination out of bounds - negative +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Proof - Health check - Positive +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias - Negative +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections - Positive +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection without alies - Negative +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:19 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Attestation - Health check - Positive +2022-06-17 16:51:19 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:22 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:22 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /attestation/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 16:51:22 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:22 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:22 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-17 16:51:22 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections/dasdasdas +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 16:51:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:23 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 16:51:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:23 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:9999 + page:9999 +Version: +-------------------------------------------------------------- +2022-06-17 16:51:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:23 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /proof/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 16:51:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:23 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 16:51:23 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:30 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@310b2b6f +2022-06-17 16:51:30 [main] INFO RestClient:161 - Received response core.Response@bb25753 +2022-06-17 16:51:30 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@7069f076 +2022-06-17 16:51:30 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@41bfa9e9 +2022-06-17 16:51:30 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@3421debd +2022-06-17 16:51:30 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:30 [main] INFO RestClient:161 - Received response core.Response@35bfa1bb +2022-06-17 16:51:30 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:31 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@6b5ab2f2 +2022-06-17 16:51:31 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:31 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@310b2b6f +2022-06-17 16:51:31 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@310b2b6f +2022-06-17 16:51:31 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:31 [main] INFO RestClient:161 - Received response core.Response@bb25753 +2022-06-17 16:51:31 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:31 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:31 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:32 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:32 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:32 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:33 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias subscriber- Positive +2022-06-17 16:51:33 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:34 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias member- Positive +2022-06-17 16:51:34 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:51:34 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:34 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 16:51:36 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-17 16:51:36 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-17 16:51:36 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:51:37 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 16:59:57 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination out of bounds - negative +2022-06-17 16:59:57 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:57 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias - Negative +2022-06-17 16:59:57 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:57 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative +2022-06-17 16:59:57 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Attestation - Health check - Positive +2022-06-17 16:59:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Connection - Health check - Positive +2022-06-17 16:59:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection without alies - Negative +2022-06-17 16:59:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections - Positive +2022-06-17 16:59:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Proof - Health check - Positive +2022-06-17 16:59:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative +2022-06-17 16:59:58 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - GET all connections with pagination - Positive +2022-06-17 16:59:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 16:59:58 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:9999 + page:9999 +Version: +-------------------------------------------------------------- +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /attestation/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections/dasdasdas +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 17:00:01 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /proof/v1/health +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 17:00:01 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: none +Version: +-------------------------------------------------------------- +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:01 [main] INFO RestClient:106 - Sending GET request ---- Request ---- +Method(verb): GET +Path: /connection/v1/connections +Headers: + X-Client-UserAgent:test framework +Body: + +Params: none +Path parameters:none +QueryParams: + pageSize:5 + page:1 +Version: +-------------------------------------------------------------- +2022-06-17 17:00:02 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:08 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@310b2b6f +2022-06-17 17:00:08 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:08 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@310b2b6f +2022-06-17 17:00:08 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@41bfa9e9 +2022-06-17 17:00:08 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@6b5ab2f2 +2022-06-17 17:00:08 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@3421debd +2022-06-17 17:00:08 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:08 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:08 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@310b2b6f +2022-06-17 17:00:08 [main] INFO RestClient:161 - Received response core.Response@bb25753 +2022-06-17 17:00:09 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:09 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:09 [main] INFO RestClient:119 - Received response io.restassured.internal.RestAssuredResponseImpl@7069f076 +2022-06-17 17:00:09 [main] INFO RestClient:161 - Received response core.Response@35bfa1bb +2022-06-17 17:00:09 [main] INFO RestClient:161 - Received response core.Response@bb25753 +2022-06-17 17:00:09 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:09 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:10 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:10 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:10 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:12 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias member- Positive +2022-06-17 17:00:12 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 17:00:12 [main] INFO GeneralStepDefinitions:108 - -------------------------------------------=================== * ===================------------------------------------------- +Scenario START: OCM - Creating a new process connection with alias subscriber- Positive +2022-06-17 17:00:12 [main] INFO RestClient:215 - Setting default encoding to UTF8 +2022-06-17 17:00:13 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:13 [main] INFO RestClient:227 - Setting baseURI to https://gaiax.vereign.com/ocm +2022-06-17 17:00:14 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-17 17:00:15 [main] INFO RestClient:161 - Received response core.Response@40c06358 +2022-06-17 17:00:15 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- +2022-06-17 17:00:15 [main] INFO GeneralStepDefinitions:125 - Scenario END. Status: [PASSED] +-------------------------------------------=================== * ===================------------------------------------------- diff --git a/reports/cucumber-report/cucumber.html/report.js b/reports/cucumber-report/cucumber.html/report.js index a9ccca866ced40fee71f36087c218f5596bb8b71..7ce5ff0d8cf8b404dbdd7e8387aff96534a6cec3 100644 --- a/reports/cucumber-report/cucumber.html/report.js +++ b/reports/cucumber-report/cucumber.html/report.js @@ -1,17 +1,1251 @@ -$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/batch/api/getStatuses/POST.feature"); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature"); formatter.feature({ - "name": "API - getStatuses POST", - "description": " Get the previously added Batches", + "name": "API - OCM - connection - v1 - invitation-url POST", + "description": " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", "keyword": "Feature", "tags": [ { "name": "@rest" }, { - "name": "@batch" + "name": "@all" + }, + { + "name": "@ocm" + } + ] +}); +formatter.scenarioOutline({ + "name": "OCM - Creating a new process connection with alias \u003calias\u003e- Positive", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@connection" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {\u003calias\u003e} via OCM api", + "keyword": "Given " +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.step({ + "name": "the status code should be {201}", + "keyword": "And " +}); +formatter.step({ + "name": "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "keyword": "And " +}); +formatter.step({ + "name": "the field {message} contains the value {Connection created successfully}", + "keyword": "Then " +}); +formatter.step({ + "name": "the field {$..state} contains the value {invited}", + "keyword": "And " +}); +formatter.step({ + "name": "the field {$..role} contains the value {inviter}", + "keyword": "And " +}); +formatter.step({ + "name": "the field {$..alias} contains the value {\u003calias\u003e}", + "keyword": "And " +}); +formatter.examples({ + "name": "", + "description": "", + "keyword": "Examples", + "rows": [ + { + "cells": [ + "alias" + ] + }, + { + "cells": [ + "member" + ] + }, + { + "cells": [ + "subscriber" + ] + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Creating a new process connection with alias member- Positive", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {member} via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {201}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "keyword": "And " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} contains the value {Connection created successfully}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {$..state} contains the value {invited}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {$..role} contains the value {inviter}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {$..alias} contains the value {member}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - invitation-url POST", + "description": " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + } + ] +}); +formatter.scenarioOutline({ + "name": "OCM - Trying to create a new member process connection with invalid alias \u003calias\u003e - Negative", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@connection" + }, + { + "name": "@negative" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {\u003calias\u003e} via OCM api", + "keyword": "Given " +}); +formatter.step({ + "name": "the field {statusCode} contains the value {400}", + "keyword": "Then " +}); +formatter.step({ + "name": "the status code should be {400}", + "keyword": "And " +}); +formatter.step({ + "name": "the field {message} contains the value {Alias must be provided}", + "keyword": "Then " +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.examples({ + "name": "", + "description": "", + "keyword": "Examples", + "rows": [ + { + "cells": [ + "alias" + ] + }, + { + "cells": [ + "dsadasd" + ] + }, + { + "cells": [ + "" + ] + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@negative" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {dsadasd} via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {400}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {400}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} contains the value {Alias must be provided}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.I_clear_the_request_body()" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - invitation-url POST", + "description": " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + } + ] +}); +formatter.scenarioOutline({ + "name": "OCM - Creating a new process connection with alias \u003calias\u003e- Positive", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@connection" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {\u003calias\u003e} via OCM api", + "keyword": "Given " +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.step({ + "name": "the status code should be {201}", + "keyword": "And " +}); +formatter.step({ + "name": "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "keyword": "And " +}); +formatter.step({ + "name": "the field {message} contains the value {Connection created successfully}", + "keyword": "Then " +}); +formatter.step({ + "name": "the field {$..state} contains the value {invited}", + "keyword": "And " +}); +formatter.step({ + "name": "the field {$..role} contains the value {inviter}", + "keyword": "And " +}); +formatter.step({ + "name": "the field {$..alias} contains the value {\u003calias\u003e}", + "keyword": "And " +}); +formatter.examples({ + "name": "", + "description": "", + "keyword": "Examples", + "rows": [ + { + "cells": [ + "alias" + ] + }, + { + "cells": [ + "member" + ] + }, + { + "cells": [ + "subscriber" + ] + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Creating a new process connection with alias subscriber- Positive", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {subscriber} via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {201}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "keyword": "And " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} contains the value {Connection created successfully}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {$..state} contains the value {invited}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {$..role} contains the value {inviter}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {$..alias} contains the value {subscriber}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - invitation-url POST", + "description": " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + } + ] +}); +formatter.scenarioOutline({ + "name": "OCM - Trying to create a new member process connection with invalid alias \u003calias\u003e - Negative", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@connection" + }, + { + "name": "@negative" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {\u003calias\u003e} via OCM api", + "keyword": "Given " +}); +formatter.step({ + "name": "the field {statusCode} contains the value {400}", + "keyword": "Then " +}); +formatter.step({ + "name": "the status code should be {400}", + "keyword": "And " +}); +formatter.step({ + "name": "the field {message} contains the value {Alias must be provided}", + "keyword": "Then " +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.examples({ + "name": "", + "description": "", + "keyword": "Examples", + "rows": [ + { + "cells": [ + "alias" + ] + }, + { + "cells": [ + "dsadasd" + ] + }, + { + "cells": [ + "" + ] + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Trying to create a new member process connection with invalid alias - Negative", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@negative" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection with alias {} via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {400}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {400}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} contains the value {Alias must be provided}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.I_clear_the_request_body()" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - invitation-url POST", + "description": " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Trying to create a new member process connection without alies - Negative", + "description": "", + "keyword": "Scenario", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@negative" + } + ] +}); +formatter.step({ + "name": "an administrator generates a QR code by creating a connection via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_via_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {400}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {400}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} contains the value {Alias must be provided}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.I_clear_the_request_body()" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/attestation/v1/health/GET.feature"); +formatter.feature({ + "name": "API - OCM - attestation - v1 - health GET", + "description": " Attestation manager health check", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@attestation" + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Attestation - Health check - Positive", + "description": "", + "keyword": "Scenario", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@attestation" + }, + { + "name": "@health" + } + ] +}); +formatter.step({ + "name": "we call the health check for attestation manager via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "AttestationStepDefinitions.we_call_the_health_check_for_attestation_manager_via_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {200}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} is present and not empty", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.I_clear_the_request_body()" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/proof/v1/health/GET.feature"); +formatter.feature({ + "name": "API - OCM - proof - v1 - health GET", + "description": " proof manager health check", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@proof" + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Proof - Health check - Positive", + "description": "", + "keyword": "Scenario", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@proof" + }, + { + "name": "@health" + } + ] +}); +formatter.step({ + "name": "we call the health check for proof manager via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ProofStepDefinitions.we_call_the_health_check_for_proof_manager_via_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {200}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} is present and not empty", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.I_clear_the_request_body()" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/health/GET.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - health GET", + "description": " Connection manager health check", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - Connection - Health check - Positive", + "description": "", + "keyword": "Scenario", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@health" + } + ] +}); +formatter.step({ + "name": "we call the health check for connection manager via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.we_call_the_health_check_for_connection_manager_via_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the status code should be {200}", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_status_code_should_be(int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} is present and not empty", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "I clear the request body", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.I_clear_the_request_body()" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/connections/%7BconnectionId%7D/GET.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - connections - connectionId GET", + "description": " This request is used to fetch connection information for the connection id provided in URL.\n It also provides state of the connection established.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + } + ] +}); +formatter.scenarioOutline({ + "name": "OCM - Try to get connection by providing invalid connectionID - \u003cconnId\u003e - Negative", + "description": "", + "keyword": "Scenario Outline", + "tags": [ + { + "name": "@connections" }, { - "name": "@all" + "name": "@negative" + } + ] +}); +formatter.step({ + "name": "an administrator fetches connection with connectionId {\u003cconnId\u003e}", + "keyword": "Given " +}); +formatter.step({ + "name": "the field {statusCode} contains the value {404}", + "keyword": "Then " +}); +formatter.step({ + "name": "the field {message} contains the value {No Data found}", + "keyword": "Then " +}); +formatter.examples({ + "name": "", + "description": "", + "keyword": "Examples", + "rows": [ + { + "cells": [ + "connId" + ] + }, + { + "cells": [ + "dasdasdas" + ] } ] }); @@ -24,147 +1258,404 @@ formatter.before({ "status": "passed" }); formatter.step({ - "name": "we are testing the VIAM Api", + "name": "we are testing the OCM Api", "keyword": "Given " }); formatter.match({ - "location": "RestGeneralStepDefinitions.we_are_testing_the_VIAM_api()" + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" }); formatter.result({ "status": "passed" }); formatter.scenario({ - "name": "Send a batch request and then fetch it with getStatuses - Positive", + "name": "OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative", "description": "", - "keyword": "Scenario", + "keyword": "Scenario Outline", "tags": [ { "name": "@rest" }, { - "name": "@batch" + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@connections" + }, + { + "name": "@negative" + } + ] +}); +formatter.step({ + "name": "an administrator fetches connection with connectionId {dasdasdas}", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_via_OCM_api(String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {404}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {message} contains the value {No Data found}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/connections/GET.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - connections GET", + "description": " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" }, { "name": "@all" }, { - "name": "@getStatuses" + "name": "@ocm" }, { - "name": "@test" + "name": "@connection" } ] }); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); formatter.step({ - "name": "I load the REST request {Batch.json} with profile {successful_batch}", + "name": "we are testing the OCM Api", "keyword": "Given " }); formatter.match({ - "location": "RestGeneralStepDefinitions.I_load_the_REST_request__with_profile_(String,String)" + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" }); formatter.result({ "status": "passed" }); +formatter.scenario({ + "name": "OCM - GET all connections with pagination out of bounds - negative", + "description": "", + "keyword": "Scenario", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@connections" + }, + { + "name": "@negative" + } + ] +}); formatter.step({ - "name": "I send a new random batch request via API", + "name": "an administrator fetches all the connections with pageSize {9999} and page {9999} via OCM api", "keyword": "Given " }); formatter.match({ - "location": "BatchStepDefinitions.I_send_a_new_random_batch_request_via_API()" + "location": "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_with_pageSize_and_page_via_OCM_api(String,String)" }); formatter.result({ - "error_message": "java.net.UnknownHostException: batch-service.rse-test.k8s.vereign.com: Name or service not known\n\tat java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)\n\tat java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933)\n\tat java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519)\n\tat java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)\n\tat java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509)\n\tat java.base/java.net.InetAddress.getAllByName(InetAddress.java:1367)\n\tat java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301)\n\tat org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:263)\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)\n\tat org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)\n\tat org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605)\n\tat org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440)\n\tat org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)\n\tat org.apache.http.client.HttpClient$execute$0.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2088)\n\tat io.restassured.internal.http.HTTPBuilder.post(HTTPBuilder.java:350)\n\tat io.restassured.internal.http.HTTPBuilder$post$2.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1194)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166)\n\tat io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30)\n\tat io.restassured.filter.Filter$filter$0.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.log.RequestLoggingFilter.filter(RequestLoggingFilter.java:146)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:157)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.FilterContext$next.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1686)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203)\n\tat io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1692)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203)\n\tat io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:180)\n\tat io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)\n\tat core.RestClient.post(RestClient.java:156)\n\tat api.test.rest.batch.BatchStepDefinitions.I_send_a_new_batch_request_via_API(BatchStepDefinitions.java:55)\n\tat api.test.rest.batch.BatchStepDefinitions.I_send_a_new_random_batch_request_via_API(BatchStepDefinitions.java:120)\n\tat ✽.I send a new random batch request via API(file:src/test/resources/features/batch/api/getStatuses/POST.feature:30)\n", - "status": "failed" + "status": "passed" }); formatter.step({ - "name": "the status code should be {200}", + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", "keyword": "And " }); formatter.match({ - "location": "GeneralStepDefinitions.the_status_code_should_be(int)" + "location": "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "I wait for {60000} mseconds", + "name": "the field {message} contains the value {Connections fetch successfully}", "keyword": "Then " }); formatter.match({ - "location": "GeneralStepDefinitions.I_wait_for_mseconds(int)" + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "I clear the request body", + "name": "the field {$.data.records} contains {0} elements", + "keyword": "And " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_elements(String,int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/connections/GET.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - connections GET", + "description": " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", "keyword": "Given " }); formatter.match({ - "location": "GeneralStepDefinitions.I_clear_the_request_body()" + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - GET all connections with pagination - Positive", + "description": "", + "keyword": "Scenario", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@connections" + } + ] +}); +formatter.step({ + "name": "an administrator fetches all the connections with pageSize {5} and page {1} via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_with_pageSize_and_page_via_OCM_api(String,String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "I call getStatuses with the current sealKey via API", + "name": "the field {statusCode} contains the value {200}", "keyword": "Then " }); formatter.match({ - "location": "BatchStepDefinitions.I_call_getStatuses_with_the_current_sealKey_via_API(String)" + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "the status code should be {200}", + "name": "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", "keyword": "And " }); formatter.match({ - "location": "GeneralStepDefinitions.the_status_code_should_be(int)" + "location": "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "the field {$.status} has the value {OK}", - "keyword": "And " + "name": "the field {message} contains the value {Connections fetch successfully}", + "keyword": "Then " }); formatter.match({ - "location": "GeneralStepDefinitions.the_field_has_the_value_(String,String)" + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "the field {$.code} has the value {200}", + "name": "the field {$.data.records} contains {5} elements", "keyword": "And " }); formatter.match({ - "location": "GeneralStepDefinitions.the_field_has_the_value_(String,String)" + "location": "GeneralStepDefinitions.the_field_contains_elements(String,int)" +}); +formatter.result({ + "status": "passed" +}); +formatter.after({ + "status": "passed" +}); +}); +$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/features/ocm/connection/v1/connections/GET.feature"); +formatter.feature({ + "name": "API - OCM - connection - v1 - connections GET", + "description": " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "keyword": "Feature", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + } + ] +}); +formatter.background({ + "name": "", + "description": "", + "keyword": "Background" +}); +formatter.before({ + "status": "passed" +}); +formatter.step({ + "name": "we are testing the OCM Api", + "keyword": "Given " +}); +formatter.match({ + "location": "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.scenario({ + "name": "OCM - GET all connections - Positive", + "description": "", + "keyword": "Scenario", + "tags": [ + { + "name": "@rest" + }, + { + "name": "@all" + }, + { + "name": "@ocm" + }, + { + "name": "@connection" + }, + { + "name": "@connections" + } + ] +}); +formatter.step({ + "name": "an administrator fetches all the connections via OCM api", + "keyword": "Given " +}); +formatter.match({ + "location": "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_via_OCM_api()" +}); +formatter.result({ + "status": "passed" +}); +formatter.step({ + "name": "the field {statusCode} contains the value {200}", + "keyword": "Then " +}); +formatter.match({ + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "the response is valid according to the {Batch_GetStatuses_schema.json} REST schema", + "name": "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", "keyword": "And " }); formatter.match({ "location": "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.step({ - "name": "I assert that getStatus status is the same as the sendBatch value via API", - "keyword": "And " + "name": "the field {message} contains the value {Connections fetch successfully}", + "keyword": "Then " }); formatter.match({ - "location": "BatchStepDefinitions.I_assert_that_getStatus_status_is_the_same_as_the_sendBatch_value_via_API()" + "location": "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }); formatter.result({ - "status": "skipped" + "status": "passed" }); formatter.after({ "status": "passed" diff --git a/reports/cucumber-report/cucumber.json b/reports/cucumber-report/cucumber.json index 134e5500ef3b07d65cd29792effb7e73b921fb47..a6f7286370f3c199cf2d731229d604f307c4d58b 100644 --- a/reports/cucumber-report/cucumber.json +++ b/reports/cucumber-report/cucumber.json @@ -1,4 +1,1562 @@ [ { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 751632952, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T14:00:11.677Z", + "before" : [ { + "result" : { + "duration" : 638774050, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 41, + "name" : "OCM - Creating a new process connection with alias member- Positive", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---creating-a-new-process-connection-with-alias-<alias>--positive;;2", + "after" : [ { + "result" : { + "duration" : 1203084, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 1876304116, + "status" : "passed" + }, + "line" : 31, + "name" : "an administrator generates a QR code by creating a connection with alias {member} via OCM api", + "match" : { + "arguments" : [ { + "val" : "member", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 46725649, + "status" : "passed" + }, + "line" : 32, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 159731, + "status" : "passed" + }, + "line" : 33, + "name" : "the status code should be {201}", + "match" : { + "arguments" : [ { + "val" : "201", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 397009841, + "status" : "passed" + }, + "line" : 34, + "name" : "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "match" : { + "arguments" : [ { + "val" : "Connection_POST_invitationURL.json", + "offset" : 40 + } ], + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 431821, + "status" : "passed" + }, + "line" : 35, + "name" : "the field {message} contains the value {Connection created successfully}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connection created successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 1911683, + "status" : "passed" + }, + "line" : 36, + "name" : "the field {$..state} contains the value {invited}", + "match" : { + "arguments" : [ { + "val" : "$..state", + "offset" : 11 + }, { + "val" : "invited", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 608999, + "status" : "passed" + }, + "line" : 37, + "name" : "the field {$..role} contains the value {inviter}", + "match" : { + "arguments" : [ { + "val" : "$..role", + "offset" : 11 + }, { + "val" : "inviter", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 564553, + "status" : "passed" + }, + "line" : 38, + "name" : "the field {$..alias} contains the value {member}", + "match" : { + "arguments" : [ { + "val" : "$..alias", + "offset" : 11 + }, { + "val" : "member", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3836891461, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.739Z", + "before" : [ { + "result" : { + "duration" : 2822369102, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 54, + "name" : "OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---trying-to-create-a-new-member-process-connection-with-invalid-alias-<alias>---negative;;2", + "after" : [ { + "result" : { + "duration" : 885096, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 6894076521, + "status" : "passed" + }, + "line" : 47, + "name" : "an administrator generates a QR code by creating a connection with alias {dsadasd} via OCM api", + "match" : { + "arguments" : [ { + "val" : "dsadasd", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 178052459, + "status" : "passed" + }, + "line" : 48, + "name" : "the field {statusCode} contains the value {400}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "400", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 158425, + "status" : "passed" + }, + "line" : 49, + "name" : "the status code should be {400}", + "match" : { + "arguments" : [ { + "val" : "400", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 242798, + "status" : "passed" + }, + "line" : 50, + "name" : "the field {message} contains the value {Alias must be provided}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Alias must be provided", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 46249, + "status" : "passed" + }, + "line" : 51, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 795176724, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T14:00:11.655Z", + "before" : [ { + "result" : { + "duration" : 685027247, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 42, + "name" : "OCM - Creating a new process connection with alias subscriber- Positive", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---creating-a-new-process-connection-with-alias-<alias>--positive;;3", + "after" : [ { + "result" : { + "duration" : 996490, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 1910812301, + "status" : "passed" + }, + "line" : 31, + "name" : "an administrator generates a QR code by creating a connection with alias {subscriber} via OCM api", + "match" : { + "arguments" : [ { + "val" : "subscriber", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 35234747, + "status" : "passed" + }, + "line" : 32, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 106129, + "status" : "passed" + }, + "line" : 33, + "name" : "the status code should be {201}", + "match" : { + "arguments" : [ { + "val" : "201", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 391012930, + "status" : "passed" + }, + "line" : 34, + "name" : "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "match" : { + "arguments" : [ { + "val" : "Connection_POST_invitationURL.json", + "offset" : 40 + } ], + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 463729, + "status" : "passed" + }, + "line" : 35, + "name" : "the field {message} contains the value {Connection created successfully}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connection created successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 3986024, + "status" : "passed" + }, + "line" : 36, + "name" : "the field {$..state} contains the value {invited}", + "match" : { + "arguments" : [ { + "val" : "$..state", + "offset" : 11 + }, { + "val" : "invited", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 2900990, + "status" : "passed" + }, + "line" : 37, + "name" : "the field {$..role} contains the value {inviter}", + "match" : { + "arguments" : [ { + "val" : "$..role", + "offset" : 11 + }, { + "val" : "inviter", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 647760, + "status" : "passed" + }, + "line" : 38, + "name" : "the field {$..alias} contains the value {subscriber}", + "match" : { + "arguments" : [ { + "val" : "$..alias", + "offset" : 11 + }, { + "val" : "subscriber", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3843509925, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.224Z", + "before" : [ { + "result" : { + "duration" : 2670289329, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 55, + "name" : "OCM - Trying to create a new member process connection with invalid alias - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---trying-to-create-a-new-member-process-connection-with-invalid-alias-<alias>---negative;;3", + "after" : [ { + "result" : { + "duration" : 23928420, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 7223932600, + "status" : "passed" + }, + "line" : 47, + "name" : "an administrator generates a QR code by creating a connection with alias {} via OCM api", + "match" : { + "arguments" : [ { + "val" : "", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 164388832, + "status" : "passed" + }, + "line" : 48, + "name" : "the field {statusCode} contains the value {400}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "400", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 156019, + "status" : "passed" + }, + "line" : 49, + "name" : "the status code should be {400}", + "match" : { + "arguments" : [ { + "val" : "400", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 241684, + "status" : "passed" + }, + "line" : 50, + "name" : "the field {message} contains the value {Alias must be provided}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Alias must be provided", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 47094, + "status" : "passed" + }, + "line" : 51, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3583360893, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.229Z", + "before" : [ { + "result" : { + "duration" : 3125543942, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 58, + "name" : "OCM - Trying to create a new member process connection without alies - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---trying-to-create-a-new-member-process-connection-without-alies---negative", + "after" : [ { + "result" : { + "duration" : 5826750, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 7241161222, + "status" : "passed" + }, + "line" : 60, + "name" : "an administrator generates a QR code by creating a connection via OCM api", + "match" : { + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 185347931, + "status" : "passed" + }, + "line" : 61, + "name" : "the field {statusCode} contains the value {400}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "400", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 163752, + "status" : "passed" + }, + "line" : 62, + "name" : "the status code should be {400}", + "match" : { + "arguments" : [ { + "val" : "400", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 251050, + "status" : "passed" + }, + "line" : 63, + "name" : "the field {message} contains the value {Alias must be provided}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Alias must be provided", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 53120, + "status" : "passed" + }, + "line" : 64, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3371792322, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.103Z", + "before" : [ { + "result" : { + "duration" : 2951246668, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - Attestation - Health check - Positive", + "description" : "", + "id" : "api---ocm---attestation---v1---health-get;ocm---attestation---health-check---positive", + "after" : [ { + "result" : { + "duration" : 2414189, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 6823008593, + "status" : "passed" + }, + "line" : 28, + "name" : "we call the health check for attestation manager via OCM api", + "match" : { + "location" : "AttestationStepDefinitions.we_call_the_health_check_for_attestation_manager_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 143021558, + "status" : "passed" + }, + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 174895, + "status" : "passed" + }, + "line" : 30, + "name" : "the status code should be {200}", + "match" : { + "arguments" : [ { + "val" : "200", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 263973, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} is present and not empty", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + } ], + "location" : "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 45552, + "status" : "passed" + }, + "line" : 32, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@attestation" + }, { + "name" : "@health" + } ] + } ], + "name" : "API - OCM - attestation - v1 - health GET", + "description" : " Attestation manager health check", + "id" : "api---ocm---attestation---v1---health-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/attestation/v1/health/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@attestation", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3335610493, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.322Z", + "before" : [ { + "result" : { + "duration" : 3179736886, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - Proof - Health check - Positive", + "description" : "", + "id" : "api---ocm---proof---v1---health-get;ocm---proof---health-check---positive", + "after" : [ { + "result" : { + "duration" : 20516660, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 7042882899, + "status" : "passed" + }, + "line" : 28, + "name" : "we call the health check for proof manager via OCM api", + "match" : { + "location" : "ProofStepDefinitions.we_call_the_health_check_for_proof_manager_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 191791827, + "status" : "passed" + }, + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 148390, + "status" : "passed" + }, + "line" : 30, + "name" : "the status code should be {200}", + "match" : { + "arguments" : [ { + "val" : "200", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 242515, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} is present and not empty", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + } ], + "location" : "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 42071, + "status" : "passed" + }, + "line" : 32, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@proof" + }, { + "name" : "@health" + } ] + } ], + "name" : "API - OCM - proof - v1 - health GET", + "description" : " proof manager health check", + "id" : "api---ocm---proof---v1---health-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/proof/v1/health/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@proof", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3390634351, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.608Z", + "before" : [ { + "result" : { + "duration" : 2537666959, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - Connection - Health check - Positive", + "description" : "", + "id" : "api---ocm---connection---v1---health-get;ocm---connection---health-check---positive", + "after" : [ { + "result" : { + "duration" : 9604639, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 6956407765, + "status" : "passed" + }, + "line" : 28, + "name" : "we call the health check for connection manager via OCM api", + "match" : { + "location" : "ConnectionStepDefinitions.we_call_the_health_check_for_connection_manager_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 186833220, + "status" : "passed" + }, + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 152331, + "status" : "passed" + }, + "line" : 30, + "name" : "the status code should be {200}", + "match" : { + "arguments" : [ { + "val" : "200", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 241973, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} is present and not empty", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + } ], + "location" : "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 38299, + "status" : "passed" + }, + "line" : 32, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@health" + } ] + } ], + "name" : "API - OCM - connection - v1 - health GET", + "description" : " Connection manager health check", + "id" : "api---ocm---connection---v1---health-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/health/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 24, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3558408145, + "status" : "passed" + }, + "line" : 25, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:54.904Z", + "before" : [ { + "result" : { + "duration" : 3064929201, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 34, + "name" : "OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---connections---connectionid-get;ocm---try-to-get-connection-by-providing-invalid-connectionid---<connid>---negative;;2", + "after" : [ { + "result" : { + "duration" : 8951771, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 7122406244, + "status" : "passed" + }, + "line" : 29, + "name" : "an administrator fetches connection with connectionId {dasdasdas}", + "match" : { + "arguments" : [ { + "val" : "dasdasdas", + "offset" : 55 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 195809434, + "status" : "passed" + }, + "line" : 30, + "name" : "the field {statusCode} contains the value {404}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "404", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 281301, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} contains the value {No Data found}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "No Data found", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@connections" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - connections - connectionId GET", + "description" : " This request is used to fetch connection information for the connection id provided in URL.\n It also provides state of the connection established.", + "id" : "api---ocm---connection---v1---connections---connectionid-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/%7BconnectionId%7D/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { "line" : 20, "elements" : [ { "line" : 23, @@ -8,34 +1566,34 @@ "keyword" : "Background", "steps" : [ { "result" : { - "duration" : 450382148, + "duration" : 3540210953, "status" : "passed" }, "line" : 24, - "name" : "we are testing the VIAM Api", + "name" : "we are testing the OCM Api", "match" : { - "location" : "RestGeneralStepDefinitions.we_are_testing_the_VIAM_api()" + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" }, "keyword" : "Given " } ] }, { - "start_timestamp" : "2022-04-15T13:56:27.185Z", + "start_timestamp" : "2022-06-17T13:59:55.103Z", "before" : [ { "result" : { - "duration" : 382472202, + "duration" : 2764959645, "status" : "passed" }, "match" : { "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" } } ], - "line" : 27, - "name" : "Send a batch request and then fetch it with getStatuses - Positive", + "line" : 42, + "name" : "OCM - GET all connections with pagination out of bounds - negative", "description" : "", - "id" : "api---getstatuses-post;send-a-batch-request-and-then-fetch-it-with-getstatuses---positive", + "id" : "api---ocm---connection---v1---connections-get;ocm---get-all-connections-with-pagination-out-of-bounds---negative", "after" : [ { "result" : { - "duration" : 1088833, + "duration" : 1760813, "status" : "passed" }, "match" : { @@ -46,151 +1604,405 @@ "keyword" : "Scenario", "steps" : [ { "result" : { - "duration" : 152774022, + "duration" : 7105319891, "status" : "passed" }, - "line" : 29, - "name" : "I load the REST request {Batch.json} with profile {successful_batch}", + "line" : 43, + "name" : "an administrator fetches all the connections with pageSize {9999} and page {9999} via OCM api", "match" : { "arguments" : [ { - "val" : "Batch.json", - "offset" : 25 + "val" : "9999", + "offset" : 60 }, { - "val" : "successful_batch", - "offset" : 51 + "val" : "9999", + "offset" : 76 } ], - "location" : "RestGeneralStepDefinitions.I_load_the_REST_request__with_profile_(String,String)" + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_with_pageSize_and_page_via_OCM_api(String,String)" }, "keyword" : "Given " }, { "result" : { - "error_message" : "java.net.UnknownHostException: batch-service.rse-test.k8s.vereign.com: Name or service not known\n\tat java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)\n\tat java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933)\n\tat java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519)\n\tat java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)\n\tat java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509)\n\tat java.base/java.net.InetAddress.getAllByName(InetAddress.java:1367)\n\tat java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301)\n\tat org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:263)\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)\n\tat org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)\n\tat org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605)\n\tat org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440)\n\tat org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)\n\tat org.apache.http.client.HttpClient$execute$0.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2088)\n\tat io.restassured.internal.http.HTTPBuilder.post(HTTPBuilder.java:350)\n\tat io.restassured.internal.http.HTTPBuilder$post$2.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1194)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166)\n\tat io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30)\n\tat io.restassured.filter.Filter$filter$0.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.log.RequestLoggingFilter.filter(RequestLoggingFilter.java:146)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:157)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.FilterContext$next.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1686)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203)\n\tat io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1692)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203)\n\tat io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:180)\n\tat io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)\n\tat core.RestClient.post(RestClient.java:156)\n\tat api.test.rest.batch.BatchStepDefinitions.I_send_a_new_batch_request_via_API(BatchStepDefinitions.java:55)\n\tat api.test.rest.batch.BatchStepDefinitions.I_send_a_new_random_batch_request_via_API(BatchStepDefinitions.java:120)\n\tat ✽.I send a new random batch request via API(file:src/test/resources/features/batch/api/getStatuses/POST.feature:30)\n", - "duration" : 748752429, - "status" : "failed" + "duration" : 187442387, + "status" : "passed" }, - "line" : 30, - "name" : "I send a new random batch request via API", + "line" : 44, + "name" : "the field {statusCode} contains the value {200}", "match" : { - "location" : "BatchStepDefinitions.I_send_a_new_random_batch_request_via_API()" + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "Given " + "keyword" : "Then " }, { "result" : { - "duration" : 10717, - "status" : "skipped" + "duration" : 1566165302, + "status" : "passed" }, - "line" : 31, - "name" : "the status code should be {200}", + "line" : 45, + "name" : "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", "match" : { "arguments" : [ { - "val" : "200", - "offset" : 27 + "val" : "Connection_GetConnections_schema.json", + "offset" : 40 } ], - "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" }, "keyword" : "And " }, { "result" : { - "duration" : 4052, - "status" : "skipped" + "duration" : 271468, + "status" : "passed" }, - "line" : 33, - "name" : "I wait for {60000} mseconds", + "line" : 46, + "name" : "the field {message} contains the value {Connections fetch successfully}", "match" : { "arguments" : [ { - "val" : "60000", - "offset" : 12 + "val" : "message", + "offset" : 11 + }, { + "val" : "Connections fetch successfully", + "offset" : 40 } ], - "location" : "GeneralStepDefinitions.I_wait_for_mseconds(int)" + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, "keyword" : "Then " }, { "result" : { - "duration" : 3267, - "status" : "skipped" + "duration" : 11915606, + "status" : "passed" }, - "line" : 34, - "name" : "I clear the request body", + "line" : 47, + "name" : "the field {$.data.records} contains {0} elements", "match" : { - "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + "arguments" : [ { + "val" : "$.data.records", + "offset" : 11 + }, { + "val" : "0", + "offset" : 37 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_elements(String,int)" }, - "keyword" : "Given " + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@connections" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - connections GET", + "description" : " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "id" : "api---ocm---connection---v1---connections-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3378458397, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.720Z", + "before" : [ { + "result" : { + "duration" : 2848607237, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 34, + "name" : "OCM - GET all connections with pagination - Positive", + "description" : "", + "id" : "api---ocm---connection---v1---connections-get;ocm---get-all-connections-with-pagination---positive", + "after" : [ { + "result" : { + "duration" : 1238112, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { "result" : { - "duration" : 3147, - "status" : "skipped" + "duration" : 7209187377, + "status" : "passed" }, "line" : 35, - "name" : "I call getStatuses with the current sealKey via API", + "name" : "an administrator fetches all the connections with pageSize {5} and page {1} via OCM api", "match" : { "arguments" : [ { - "val" : "sealKey", - "offset" : 36 + "val" : "5", + "offset" : 60 + }, { + "val" : "1", + "offset" : 73 } ], - "location" : "BatchStepDefinitions.I_call_getStatuses_with_the_current_sealKey_via_API(String)" + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_with_pageSize_and_page_via_OCM_api(String,String)" }, - "keyword" : "Then " + "keyword" : "Given " }, { "result" : { - "duration" : 3149, - "status" : "skipped" + "duration" : 232274515, + "status" : "passed" }, "line" : 36, - "name" : "the status code should be {200}", + "name" : "the field {statusCode} contains the value {200}", "match" : { "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { "val" : "200", - "offset" : 27 + "offset" : 43 } ], - "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "And " + "keyword" : "Then " }, { "result" : { - "duration" : 3454, - "status" : "skipped" + "duration" : 1363592529, + "status" : "passed" }, "line" : 37, - "name" : "the field {$.status} has the value {OK}", + "name" : "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", + "match" : { + "arguments" : [ { + "val" : "Connection_GetConnections_schema.json", + "offset" : 40 + } ], + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 411075, + "status" : "passed" + }, + "line" : 38, + "name" : "the field {message} contains the value {Connections fetch successfully}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connections fetch successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 11045082, + "status" : "passed" + }, + "line" : 39, + "name" : "the field {$.data.records} contains {5} elements", "match" : { "arguments" : [ { - "val" : "$.status", + "val" : "$.data.records", "offset" : 11 }, { - "val" : "OK", - "offset" : 36 + "val" : "5", + "offset" : 37 } ], - "location" : "GeneralStepDefinitions.the_field_has_the_value_(String,String)" + "location" : "GeneralStepDefinitions.the_field_contains_elements(String,int)" }, "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@connections" + } ] + } ], + "name" : "API - OCM - connection - v1 - connections GET", + "description" : " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "id" : "api---ocm---connection---v1---connections-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3454270239, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.559Z", + "before" : [ { + "result" : { + "duration" : 2820806103, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - GET all connections - Positive", + "description" : "", + "id" : "api---ocm---connection---v1---connections-get;ocm---get-all-connections---positive", + "after" : [ { + "result" : { + "duration" : 905282, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 6824042426, + "status" : "passed" + }, + "line" : 28, + "name" : "an administrator fetches all the connections via OCM api", + "match" : { + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_via_OCM_api()" + }, + "keyword" : "Given " }, { "result" : { - "duration" : 3077, - "status" : "skipped" + "duration" : 218384760, + "status" : "passed" }, - "line" : 38, - "name" : "the field {$.code} has the value {200}", + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", "match" : { "arguments" : [ { - "val" : "$.code", + "val" : "statusCode", "offset" : 11 }, { "val" : "200", - "offset" : 34 + "offset" : 43 } ], - "location" : "GeneralStepDefinitions.the_field_has_the_value_(String,String)" + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "And " + "keyword" : "Then " }, { "result" : { - "duration" : 3092, - "status" : "skipped" + "duration" : 1528485130, + "status" : "passed" }, - "line" : 39, - "name" : "the response is valid according to the {Batch_GetStatuses_schema.json} REST schema", + "line" : 30, + "name" : "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", "match" : { "arguments" : [ { - "val" : "Batch_GetStatuses_schema.json", + "val" : "Connection_GetConnections_schema.json", "offset" : 40 } ], "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" @@ -198,33 +2010,40 @@ "keyword" : "And " }, { "result" : { - "duration" : 3267, - "status" : "skipped" + "duration" : 546622, + "status" : "passed" }, - "line" : 40, - "name" : "I assert that getStatus status is the same as the sendBatch value via API", + "line" : 31, + "name" : "the field {message} contains the value {Connections fetch successfully}", "match" : { - "location" : "BatchStepDefinitions.I_assert_that_getStatus_status_is_the_same_as_the_sendBatch_value_via_API()" + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connections fetch successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "And " + "keyword" : "Then " } ], "tags" : [ { "name" : "@rest" - }, { - "name" : "@batch" }, { "name" : "@all" }, { - "name" : "@getStatuses" + "name" : "@ocm" }, { - "name" : "@test" + "name" : "@connection" + }, { + "name" : "@connections" } ] } ], - "name" : "API - getStatuses POST", - "description" : " Get the previously added Batches", - "id" : "api---getstatuses-post", + "name" : "API - OCM - connection - v1 - connections GET", + "description" : " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "id" : "api---ocm---connection---v1---connections-get", "keyword" : "Feature", - "uri" : "file:src/test/resources/features/batch/api/getStatuses/POST.feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/GET.feature", "tags" : [ { "name" : "@rest", "type" : "Tag", @@ -233,18 +2052,25 @@ "column" : 1 } }, { - "name" : "@batch", + "name" : "@all", "type" : "Tag", "location" : { "line" : 19, "column" : 7 } }, { - "name" : "@all", + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", "type" : "Tag", "location" : { "line" : 19, - "column" : 14 + "column" : 17 } } ] } ] \ No newline at end of file diff --git a/reports/cucumber-report/cucumber.xml b/reports/cucumber-report/cucumber.xml index b774001f3fbb948d85103f028f677926f9cced1b..1a1a68619768ae94c8db2463df047e5deb068368 100644 --- a/reports/cucumber-report/cucumber.xml +++ b/reports/cucumber-report/cucumber.xml @@ -1,123 +1,150 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> -<testsuite failures="1" name="cucumber.runtime.formatter.JUnitFormatter" skipped="0" tests="1" time="1.73645"> +<testsuite failures="0" name="cucumber.runtime.formatter.JUnitFormatter" skipped="0" tests="12" time="148.600663"> -<testcase classname="API - getStatuses POST" name="Send a batch request and then fetch it with getStatuses - Positive" time="1.73645"> +<testcase classname="API - OCM - connection - v1 - invitation-url POST" name="OCM - Creating a new process connection with alias member- Positive" time="3.717259"> - <failure message="java.net.UnknownHostException: batch-service.rse-test.k8s.vereign.com: Name or service not known 	at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) 	at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933) 	at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519) 	at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852) 	at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509) 	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1367) 	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301) 	at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) 	at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:263) 	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162) 	at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326) 	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605) 	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440) 	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835) 	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) 	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) 	at org.apache.http.client.HttpClient$execute$0.call(Unknown Source) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) 	at io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2088) 	at io.restassured.internal.http.HTTPBuilder.post(HTTPBuilder.java:350) 	at io.restassured.internal.http.HTTPBuilder$post$2.call(Unknown Source) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) 	at io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1194) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.base/java.lang.reflect.Method.invoke(Method.java:568) 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) 	at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) 	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166) 	at io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30) 	at io.restassured.filter.Filter$filter$0.call(Unknown Source) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 	at io.restassured.filter.Filter$filter.call(Unknown Source) 	at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) 	at io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56) 	at io.restassured.filter.Filter$filter.call(Unknown Source) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 	at io.restassured.filter.Filter$filter.call(Unknown Source) 	at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) 	at io.restassured.filter.log.RequestLoggingFilter.filter(RequestLoggingFilter.java:146) 	at io.restassured.filter.Filter$filter.call(Unknown Source) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:157) 	at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) 	at io.restassured.filter.FilterContext$next.call(Unknown Source) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) 	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1686) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.base/java.lang.reflect.Method.invoke(Method.java:568) 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) 	at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) 	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) 	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203) 	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1692) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.base/java.lang.reflect.Method.invoke(Method.java:568) 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) 	at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) 	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) 	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203) 	at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:180) 	at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy) 	at core.RestClient.post(RestClient.java:156) 	at api.test.rest.batch.BatchStepDefinitions.I_send_a_new_batch_request_via_API(BatchStepDefinitions.java:55) 	at api.test.rest.batch.BatchStepDefinitions.I_send_a_new_random_batch_request_via_API(BatchStepDefinitions.java:120) 	at ✽.I send a new random batch request via API(file:src/test/resources/features/batch/api/getStatuses/POST.feature:30) "><![CDATA[Given we are testing the VIAM Api...........................................passed -Given I load the REST request {Batch.json} with profile {successful_batch}..passed -Given I send a new random batch request via API.............................failed -And the status code should be {200}.........................................skipped -Then I wait for {60000} mseconds............................................skipped -Given I clear the request body..............................................skipped -Then I call getStatuses with the current sealKey via API....................skipped -And the status code should be {200}.........................................skipped -And the field {$.status} has the value {OK}.................................skipped -And the field {$.code} has the value {200}..................................skipped -And the response is valid according to the {Batch_GetStatuses_schema.json} REST schema.skipped -And I assert that getStatus status is the same as the sendBatch value via API.skipped + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator generates a QR code by creating a connection with alias {member} via OCM api.passed +Then the field {statusCode} contains the value {200}........................passed +And the status code should be {201}.........................................passed +And the response is valid according to the {Connection_POST_invitationURL.json} REST schema.passed +Then the field {message} contains the value {Connection created successfully}.passed +And the field {$..state} contains the value {invited}.......................passed +And the field {$..role} contains the value {inviter}........................passed +And the field {$..alias} contains the value {member}........................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - invitation-url POST" name="OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative" time="13.737811"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator generates a QR code by creating a connection with alias {dsadasd} via OCM api.passed +Then the field {statusCode} contains the value {400}........................passed +And the status code should be {400}.........................................passed +Then the field {message} contains the value {Alias must be provided}........passed +And I clear the request body................................................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - invitation-url POST" name="OCM - Creating a new process connection with alias subscriber- Positive" time="3.827884"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator generates a QR code by creating a connection with alias {subscriber} via OCM api.passed +Then the field {statusCode} contains the value {200}........................passed +And the status code should be {201}.........................................passed +And the response is valid according to the {Connection_POST_invitationURL.json} REST schema.passed +Then the field {message} contains the value {Connection created successfully}.passed +And the field {$..state} contains the value {invited}.......................passed +And the field {$..role} contains the value {inviter}........................passed +And the field {$..alias} contains the value {subscriber}....................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - invitation-url POST" name="OCM - Trying to create a new member process connection with invalid alias - Negative" time="13.933239"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator generates a QR code by creating a connection with alias {} via OCM api.passed +Then the field {statusCode} contains the value {400}........................passed +And the status code should be {400}.........................................passed +Then the field {message} contains the value {Alias must be provided}........passed +And I clear the request body................................................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - invitation-url POST" name="OCM - Trying to create a new member process connection without alies - Negative" time="14.160183"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator generates a QR code by creating a connection via OCM api.passed +Then the field {statusCode} contains the value {400}........................passed +And the status code should be {400}.........................................passed +Then the field {message} contains the value {Alias must be provided}........passed +And I clear the request body................................................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - attestation - v1 - health GET" name="OCM - Attestation - Health check - Positive" time="13.295402"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given we call the health check for attestation manager via OCM api..........passed +Then the field {statusCode} contains the value {200}........................passed +And the status code should be {200}.........................................passed +And the field {message} is present and not empty............................passed +And I clear the request body................................................passed +]]></system-out> + +</testcase> -StackTrace: -java.net.UnknownHostException: batch-service.rse-test.k8s.vereign.com: Name or service not known - at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) - at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933) - at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519) - at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852) - at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509) - at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1367) - at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301) - at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) - at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:263) - at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162) - at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326) - at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605) - at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440) - at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835) - at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) - at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) - at org.apache.http.client.HttpClient$execute$0.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) - at io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2088) - at io.restassured.internal.http.HTTPBuilder.post(HTTPBuilder.java:350) - at io.restassured.internal.http.HTTPBuilder$post$2.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) - at io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1194) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) - at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) - at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166) - at io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30) - at io.restassured.filter.Filter$filter$0.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) - at io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) - at io.restassured.filter.log.RequestLoggingFilter.filter(RequestLoggingFilter.java:146) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:157) - at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) - at io.restassured.filter.FilterContext$next.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) - at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1686) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) - at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) - at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203) - at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1692) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) - at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) - at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203) - at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:180) - at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy) - at core.RestClient.post(RestClient.java:156) - at api.test.rest.batch.BatchStepDefinitions.I_send_a_new_batch_request_via_API(BatchStepDefinitions.java:55) - at api.test.rest.batch.BatchStepDefinitions.I_send_a_new_random_batch_request_via_API(BatchStepDefinitions.java:120) - at ✽.I send a new random batch request via API(file:src/test/resources/features/batch/api/getStatuses/POST.feature:30) -]]></failure> +<testcase classname="API - OCM - proof - v1 - health GET" name="OCM - Proof - Health check - Positive" time="13.77314"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given we call the health check for proof manager via OCM api................passed +Then the field {statusCode} contains the value {200}........................passed +And the status code should be {200}.........................................passed +And the field {message} is present and not empty............................passed +And I clear the request body................................................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - health GET" name="OCM - Connection - Health check - Positive" time="13.097658"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given we call the health check for connection manager via OCM api...........passed +Then the field {statusCode} contains the value {200}........................passed +And the status code should be {200}.........................................passed +And the field {message} is present and not empty............................passed +And I clear the request body................................................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - connections - connectionId GET" name="OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative" time="13.97381"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator fetches connection with connectionId {dasdasdas}.....passed +Then the field {statusCode} contains the value {404}........................passed +Then the field {message} contains the value {No Data found}.................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - connections GET" name="OCM - GET all connections with pagination out of bounds - negative" time="15.186279"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator fetches all the connections with pageSize {9999} and page {9999} via OCM api.passed +Then the field {statusCode} contains the value {200}........................passed +And the response is valid according to the {Connection_GetConnections_schema.json} REST schema.passed +Then the field {message} contains the value {Connections fetch successfully}.passed +And the field {$.data.records} contains {0} elements........................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - connections GET" name="OCM - GET all connections with pagination - Positive" time="15.048753"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator fetches all the connections with pageSize {5} and page {1} via OCM api.passed +Then the field {statusCode} contains the value {200}........................passed +And the response is valid according to the {Connection_GetConnections_schema.json} REST schema.passed +Then the field {message} contains the value {Connections fetch successfully}.passed +And the field {$.data.records} contains {5} elements........................passed +]]></system-out> + +</testcase> + +<testcase classname="API - OCM - connection - v1 - connections GET" name="OCM - GET all connections - Positive" time="14.849245"> + + <system-out><![CDATA[Given we are testing the OCM Api............................................passed +Given an administrator fetches all the connections via OCM api..............passed +Then the field {statusCode} contains the value {200}........................passed +And the response is valid according to the {Connection_GetConnections_schema.json} REST schema.passed +Then the field {message} contains the value {Connections fetch successfully}.passed +]]></system-out> </testcase> diff --git a/src/main/java/core/JsonUtils.java b/src/main/java/core/JsonUtils.java index ccbbd08330ffe29addff35b3be5f114cdd93f835..6cec420653fc98287c42adc09652d04cf3c14068 100644 --- a/src/main/java/core/JsonUtils.java +++ b/src/main/java/core/JsonUtils.java @@ -236,6 +236,14 @@ public class JsonUtils { return System.getProperty("baseUrl") + "/policy"; } + /** + * Get the url for "OCM" + * @return the uri + */ + public static String getOCM() { + return System.getProperty("baseUrl") + "/ocm"; + } + /** * UTF8 encodes a string * diff --git a/src/main/java/core/RestClient.java b/src/main/java/core/RestClient.java index c0f79cacd8d552ecf022fd5ab3bdc4095f5006bf..c6e93dab7516d08d406ea276c55c70e02a01e7fe 100644 --- a/src/main/java/core/RestClient.java +++ b/src/main/java/core/RestClient.java @@ -113,10 +113,10 @@ public class RestClient { .log().all() .get(request.getVersion() + request.getPath()) .then() - .log().all() + .log().all() .extract(); Response resp = new Response(response.statusCode(), response.body().asString(), response.headers()); - logger.info("Received response {}", resp); + logger.info("Received response {}", response); return resp; } diff --git a/src/main/java/utils/JSONBuilder.java b/src/main/java/utils/JSONBuilder.java index 036545c3feb0941380928bacd1bb2978dde7b1e8..b5d35ec3c0b1d4922c596f68cac1ce346cc1badc 100644 --- a/src/main/java/utils/JSONBuilder.java +++ b/src/main/java/utils/JSONBuilder.java @@ -14,7 +14,6 @@ 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/>. */ - package utils; import java.io.ByteArrayOutputStream; diff --git a/src/main/resources/REST/schemas/Batch_GetStatuses_schema.json b/src/main/resources/REST/schemas/Batch_GetStatuses_schema.json deleted file mode 100644 index 09b1fbf854d8d3790b28c79c3fd2168db84ddef8..0000000000000000000000000000000000000000 --- a/src/main/resources/REST/schemas/Batch_GetStatuses_schema.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", - "properties": { - "status": { - "type": "string" - }, - "code": { - "type": "string" - }, - "data": { - "type": "array", - "items": [ - { - "type": "object", - "properties": { - "Status": { - "type": "string" - }, - "TransactionID": { - "type": "string" - }, - "BatchID": { - "type": "string" - } - }, - "required": [ - "Status", - "TransactionID", - "BatchID" - ] - }, - { - "type": "object", - "properties": { - "Status": { - "type": "string" - }, - "TransactionID": { - "type": "string" - }, - "BatchID": { - "type": "string" - } - }, - "required": [ - "Status", - "TransactionID", - "BatchID" - ] - } - ] - } - }, - "required": [ - "status", - "code", - "data" - ] -} \ No newline at end of file diff --git a/src/main/resources/REST/schemas/Batch_GetTotalCount_schema.json b/src/main/resources/REST/schemas/Batch_GetTotalCount_schema.json deleted file mode 100644 index b090c9e05ba3b7ee81b91ce391c8d8c52f58f257..0000000000000000000000000000000000000000 --- a/src/main/resources/REST/schemas/Batch_GetTotalCount_schema.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "required": [ - "status", - "code", - "data", - "counters" - ], - "properties": { - "status": { - "$id": "#root/status", - "title": "Status", - "type": "string", - "default": "", - "examples": [ - "OK" - ], - "pattern": "^.*$" - }, - "code": { - "$id": "#root/code", - "title": "Code", - "type": "string", - "default": "", - "examples": [ - "200" - ], - "pattern": "^.*$" - }, - "data": { - "$id": "#root/data", - "title": "Data", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "counters": { - "$id": "#root/counters", - "title": "Counters", - "type": "object", - "required": [ - "receivedStatus", - "storedStatus", - "anchoredStatus", - "anchoredBatches" - ], - "properties": { - "receivedStatus": { - "$id": "#root/counters/receivedStatus", - "title": "Receivedstatus", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "storedStatus": { - "$id": "#root/counters/storedStatus", - "title": "Storedstatus", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "anchoredStatus": { - "$id": "#root/counters/anchoredStatus", - "title": "Anchoredstatus", - "type": "integer", - "examples": [ - 50 - ], - "default": 0 - }, - "anchoredBatches": { - "$id": "#root/counters/anchoredBatches", - "title": "Anchoredbatches", - "type": "integer", - "examples": [ - 40 - ], - "default": 0 - } - } - } - - } -} diff --git a/src/main/resources/REST/schemas/Connection_GetConnections_schema.json b/src/main/resources/REST/schemas/Connection_GetConnections_schema.json new file mode 100644 index 0000000000000000000000000000000000000000..7dcb25054db4ed023c45517be5bdbadf27ab8854 --- /dev/null +++ b/src/main/resources/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/src/main/resources/REST/schemas/Connection_POST_invitationURL.json b/src/main/resources/REST/schemas/Connection_POST_invitationURL.json new file mode 100644 index 0000000000000000000000000000000000000000..e4d0fc9185b2916b4760aeb4cccf154d2bc693fc --- /dev/null +++ b/src/main/resources/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/src/test/java/api/test/rest/RestGeneralStepDefinitions.java b/src/test/java/api/test/rest/RestGeneralStepDefinitions.java index 0f6ba368976a080161fa9db293d7a1bfce7ded40..ce8a38cd4e5f02d7191419d30da403864ee13fbc 100644 --- a/src/test/java/api/test/rest/RestGeneralStepDefinitions.java +++ b/src/test/java/api/test/rest/RestGeneralStepDefinitions.java @@ -62,6 +62,16 @@ public class RestGeneralStepDefinitions extends BaseStepDefinitions { currentRequest.setContentType("application/json"); } + @Given("^we are testing the OCM Api") + public void we_are_testing_the_OCM_api() throws Throwable { + RestClient.setDefaultEncoding("UTF8"); + RestClient.setBaseURI(JsonUtils.getOCM()); + RestClient.appendDefaultContentCharsetToContentTypeIfUndefined(false); + currentRequest.clear(); + currentRequest.getHeaders().put("X-Client-UserAgent", "test framework"); + currentRequest.setContentType("application/json"); + } + @Given("^I load the REST request \\{(.*)\\} with profile \\{(.*)\\}$") public void I_load_the_REST_request__with_profile_(String jsonName, String profileName) throws Throwable { logger.info("Loading REST json into current request body. Json file= [{}] , profile= [{}]", jsonName, profileName); diff --git a/src/test/java/api/test/rest/ocm/attestation/AttestationStepDefinitions.java b/src/test/java/api/test/rest/ocm/attestation/AttestationStepDefinitions.java new file mode 100644 index 0000000000000000000000000000000000000000..16caecd4fa3874c344e3b7739228bba01a96662f --- /dev/null +++ b/src/test/java/api/test/rest/ocm/attestation/AttestationStepDefinitions.java @@ -0,0 +1,54 @@ +/* +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/>. +*/ + +package api.test.rest.ocm.attestation; + +import api.test.core.BaseStepDefinitions; +import api.test.rest.RestSessionContainer; +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import core.DataContainer; +import core.Request; +import core.Response; +import core.RestClient; +import cucumber.api.java.en.Given; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +public class AttestationStepDefinitions extends BaseStepDefinitions { + private static final Logger logger = LogManager.getLogger(AttestationStepDefinitions.class.getSimpleName()); + RestSessionContainer restSessionContainer; + Request currentRequest; + + + public AttestationStepDefinitions(RestSessionContainer restSessionContainer, Request currentRequest, DataContainer dataContainer) { + super(dataContainer); + this.restSessionContainer = restSessionContainer; + this.currentRequest = currentRequest; + + } + + @Given("^we call the health check for attestation manager via OCM api") + public void we_call_the_health_check_for_attestation_manager_via_OCM_api() { + currentRequest.setPath("/attestation/v1/health"); + + Response response = RestClient.get(currentRequest); + addRequest(currentRequest); + addResponse(response); + } +} \ No newline at end of file diff --git a/src/test/java/api/test/rest/ocm/connection/ConnectionStepDefinitions.java b/src/test/java/api/test/rest/ocm/connection/ConnectionStepDefinitions.java new file mode 100644 index 0000000000000000000000000000000000000000..8965f36fe5479d1442b8d2c943c94b7c079fd52b --- /dev/null +++ b/src/test/java/api/test/rest/ocm/connection/ConnectionStepDefinitions.java @@ -0,0 +1,112 @@ +/* +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/>. +*/ + +package api.test.rest.ocm.connection; + +import api.test.core.BaseStepDefinitions; +import api.test.rest.RestSessionContainer; +import com.github.fge.jackson.JsonLoader; +import com.google.gson.*; +import com.jayway.jsonpath.Configuration; +import com.jayway.jsonpath.JsonPath; +import com.jayway.jsonpath.Option; +import com.jayway.jsonpath.ReadContext; +import core.*; +import cucumber.api.java.en.And; +import cucumber.api.java.en.Given; +import cucumber.api.java.en.Then; +import exceptions.RAFException; +import org.apache.commons.lang3.RandomStringUtils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import java.security.KeyPair; +import java.util.HashMap; +import java.util.Map; + +import static org.junit.Assert.assertEquals; +import static utils.RsaGenerator.encrypt; +import static utils.RsaGenerator.generateKeyPair; + +public class ConnectionStepDefinitions extends BaseStepDefinitions { + private static final Logger logger = LogManager.getLogger(ConnectionStepDefinitions.class.getSimpleName()); + RestSessionContainer restSessionContainer; + Request currentRequest; + + + public ConnectionStepDefinitions(RestSessionContainer restSessionContainer, Request currentRequest, DataContainer dataContainer) { + super(dataContainer); + this.restSessionContainer = restSessionContainer; + this.currentRequest = currentRequest; + + } + + @Given("^an administrator generates a QR code by creating a connection with alias \\{(.*?)\\} via OCM api") + public void an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String alias) throws Throwable { + HashMap<String, String> queryParams = new HashMap<>(); + queryParams.put("alias", alias); + currentRequest.setQueryParams(queryParams); + + an_administrator_generates_a_QR_code_by_creating_a_connection_via_OCM_api(); + } + + @Given("^an administrator generates a QR code by creating a connection via OCM api") + public void an_administrator_generates_a_QR_code_by_creating_a_connection_via_OCM_api() throws Throwable { + currentRequest.setPath("/connection/v1/invitation-url"); + + Response response = RestClient.post(currentRequest); + addRequest(currentRequest); + addResponse(response); + } + + @Given("^we call the health check for connection manager via OCM api") + public void we_call_the_health_check_for_connection_manager_via_OCM_api() { + currentRequest.setPath("/connection/v1/health"); + + Response response = RestClient.get(currentRequest); + addRequest(currentRequest); + addResponse(response); + } + + @Given("^an administrator fetches all the connections via OCM api") + public void an_administrator_fetches_all_the_connections_via_OCM_api() { + currentRequest.setPath("/connection/v1/connections"); + + Response response = RestClient.get(currentRequest); + addRequest(currentRequest); + addResponse(response); + } + + @Given("^an administrator fetches all the connections with pageSize \\{(.*?)\\} and page \\{(.*?)\\} via OCM api") + public void an_administrator_fetches_all_the_connections_with_pageSize_and_page_via_OCM_api(String pageSize,String page) { + HashMap<String, String> queryParams = new HashMap<>(); + queryParams.put("pageSize",pageSize); + queryParams.put("page",page); + currentRequest.setQueryParams(queryParams); + + an_administrator_fetches_all_the_connections_via_OCM_api(); + } + + @Given("^an administrator fetches connection with connectionId \\{(.*?)\\}") + public void an_administrator_fetches_all_the_connections_via_OCM_api(String connetionId) { + currentRequest.setPath("/connection/v1/connections/" + connetionId); + + Response response = RestClient.get(currentRequest); + addRequest(currentRequest); + addResponse(response); + } +} \ No newline at end of file diff --git a/src/test/java/api/test/rest/ocm/proof/ProofStepDefinitions.java b/src/test/java/api/test/rest/ocm/proof/ProofStepDefinitions.java new file mode 100644 index 0000000000000000000000000000000000000000..5fbe6835ea87c748ec83eac7592275f8e48c866e --- /dev/null +++ b/src/test/java/api/test/rest/ocm/proof/ProofStepDefinitions.java @@ -0,0 +1,51 @@ +/* +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/>. +*/ + +package api.test.rest.ocm.proof; + +import api.test.core.BaseStepDefinitions; +import api.test.rest.RestSessionContainer; +import core.DataContainer; +import core.Request; +import core.Response; +import core.RestClient; +import cucumber.api.java.en.Given; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +public class ProofStepDefinitions extends BaseStepDefinitions { + private static final Logger logger = LogManager.getLogger(ProofStepDefinitions.class.getSimpleName()); + RestSessionContainer restSessionContainer; + Request currentRequest; + + + public ProofStepDefinitions(RestSessionContainer restSessionContainer, Request currentRequest, DataContainer dataContainer) { + super(dataContainer); + this.restSessionContainer = restSessionContainer; + this.currentRequest = currentRequest; + + } + + @Given("^we call the health check for proof manager via OCM api") + public void we_call_the_health_check_for_proof_manager_via_OCM_api() { + currentRequest.setPath("/proof/v1/health"); + + Response response = RestClient.get(currentRequest); + addRequest(currentRequest); + addResponse(response); + } +} \ No newline at end of file diff --git a/src/test/resources/features/ocm/attestation/v1/health/GET.feature b/src/test/resources/features/ocm/attestation/v1/health/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..8ca80b2dd3a4324b7221740f3d4e149f51a5770e --- /dev/null +++ b/src/test/resources/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/src/test/resources/features/ocm/connection/v1/connections/GET.feature b/src/test/resources/features/ocm/connection/v1/connections/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..23240d9382943c4c6a7404fe19fa40a11bf7c699 --- /dev/null +++ b/src/test/resources/features/ocm/connection/v1/connections/GET.feature @@ -0,0 +1,48 @@ +#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/src/test/resources/features/ocm/connection/v1/connections/{connectionId}/GET.feature b/src/test/resources/features/ocm/connection/v1/connections/{connectionId}/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..57bdac5a83a55fdbdc04982bbe3740b2e18dd960 --- /dev/null +++ b/src/test/resources/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/src/test/resources/features/ocm/connection/v1/health/GET.feature b/src/test/resources/features/ocm/connection/v1/health/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..e3fb166e738df512a56f0883f535c616a8a81a71 --- /dev/null +++ b/src/test/resources/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/src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature b/src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature new file mode 100644 index 0000000000000000000000000000000000000000..39d27eda6fcd6cdbdb56819050a32502db2b2d4f --- /dev/null +++ b/src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature @@ -0,0 +1,62 @@ +#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} + 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} \ No newline at end of file diff --git a/src/test/resources/features/ocm/proof/v1/health/GET.feature b/src/test/resources/features/ocm/proof/v1/health/GET.feature new file mode 100644 index 0000000000000000000000000000000000000000..f49884e3012a1cfda6759ae4047a29a43fc975ac --- /dev/null +++ b/src/test/resources/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 diff --git a/target/courgette-report/data/report.json b/target/courgette-report/data/report.json index 134e5500ef3b07d65cd29792effb7e73b921fb47..a6f7286370f3c199cf2d731229d604f307c4d58b 100644 --- a/target/courgette-report/data/report.json +++ b/target/courgette-report/data/report.json @@ -1,4 +1,1562 @@ [ { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 751632952, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T14:00:11.677Z", + "before" : [ { + "result" : { + "duration" : 638774050, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 41, + "name" : "OCM - Creating a new process connection with alias member- Positive", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---creating-a-new-process-connection-with-alias-<alias>--positive;;2", + "after" : [ { + "result" : { + "duration" : 1203084, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 1876304116, + "status" : "passed" + }, + "line" : 31, + "name" : "an administrator generates a QR code by creating a connection with alias {member} via OCM api", + "match" : { + "arguments" : [ { + "val" : "member", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 46725649, + "status" : "passed" + }, + "line" : 32, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 159731, + "status" : "passed" + }, + "line" : 33, + "name" : "the status code should be {201}", + "match" : { + "arguments" : [ { + "val" : "201", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 397009841, + "status" : "passed" + }, + "line" : 34, + "name" : "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "match" : { + "arguments" : [ { + "val" : "Connection_POST_invitationURL.json", + "offset" : 40 + } ], + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 431821, + "status" : "passed" + }, + "line" : 35, + "name" : "the field {message} contains the value {Connection created successfully}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connection created successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 1911683, + "status" : "passed" + }, + "line" : 36, + "name" : "the field {$..state} contains the value {invited}", + "match" : { + "arguments" : [ { + "val" : "$..state", + "offset" : 11 + }, { + "val" : "invited", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 608999, + "status" : "passed" + }, + "line" : 37, + "name" : "the field {$..role} contains the value {inviter}", + "match" : { + "arguments" : [ { + "val" : "$..role", + "offset" : 11 + }, { + "val" : "inviter", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 564553, + "status" : "passed" + }, + "line" : 38, + "name" : "the field {$..alias} contains the value {member}", + "match" : { + "arguments" : [ { + "val" : "$..alias", + "offset" : 11 + }, { + "val" : "member", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3836891461, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.739Z", + "before" : [ { + "result" : { + "duration" : 2822369102, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 54, + "name" : "OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---trying-to-create-a-new-member-process-connection-with-invalid-alias-<alias>---negative;;2", + "after" : [ { + "result" : { + "duration" : 885096, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 6894076521, + "status" : "passed" + }, + "line" : 47, + "name" : "an administrator generates a QR code by creating a connection with alias {dsadasd} via OCM api", + "match" : { + "arguments" : [ { + "val" : "dsadasd", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 178052459, + "status" : "passed" + }, + "line" : 48, + "name" : "the field {statusCode} contains the value {400}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "400", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 158425, + "status" : "passed" + }, + "line" : 49, + "name" : "the status code should be {400}", + "match" : { + "arguments" : [ { + "val" : "400", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 242798, + "status" : "passed" + }, + "line" : 50, + "name" : "the field {message} contains the value {Alias must be provided}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Alias must be provided", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 46249, + "status" : "passed" + }, + "line" : 51, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 795176724, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T14:00:11.655Z", + "before" : [ { + "result" : { + "duration" : 685027247, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 42, + "name" : "OCM - Creating a new process connection with alias subscriber- Positive", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---creating-a-new-process-connection-with-alias-<alias>--positive;;3", + "after" : [ { + "result" : { + "duration" : 996490, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 1910812301, + "status" : "passed" + }, + "line" : 31, + "name" : "an administrator generates a QR code by creating a connection with alias {subscriber} via OCM api", + "match" : { + "arguments" : [ { + "val" : "subscriber", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 35234747, + "status" : "passed" + }, + "line" : 32, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 106129, + "status" : "passed" + }, + "line" : 33, + "name" : "the status code should be {201}", + "match" : { + "arguments" : [ { + "val" : "201", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 391012930, + "status" : "passed" + }, + "line" : 34, + "name" : "the response is valid according to the {Connection_POST_invitationURL.json} REST schema", + "match" : { + "arguments" : [ { + "val" : "Connection_POST_invitationURL.json", + "offset" : 40 + } ], + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 463729, + "status" : "passed" + }, + "line" : 35, + "name" : "the field {message} contains the value {Connection created successfully}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connection created successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 3986024, + "status" : "passed" + }, + "line" : 36, + "name" : "the field {$..state} contains the value {invited}", + "match" : { + "arguments" : [ { + "val" : "$..state", + "offset" : 11 + }, { + "val" : "invited", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 2900990, + "status" : "passed" + }, + "line" : 37, + "name" : "the field {$..role} contains the value {inviter}", + "match" : { + "arguments" : [ { + "val" : "$..role", + "offset" : 11 + }, { + "val" : "inviter", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 647760, + "status" : "passed" + }, + "line" : 38, + "name" : "the field {$..alias} contains the value {subscriber}", + "match" : { + "arguments" : [ { + "val" : "$..alias", + "offset" : 11 + }, { + "val" : "subscriber", + "offset" : 41 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3843509925, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.224Z", + "before" : [ { + "result" : { + "duration" : 2670289329, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 55, + "name" : "OCM - Trying to create a new member process connection with invalid alias - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---trying-to-create-a-new-member-process-connection-with-invalid-alias-<alias>---negative;;3", + "after" : [ { + "result" : { + "duration" : 23928420, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 7223932600, + "status" : "passed" + }, + "line" : 47, + "name" : "an administrator generates a QR code by creating a connection with alias {} via OCM api", + "match" : { + "arguments" : [ { + "val" : "", + "offset" : 74 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_with_alias_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 164388832, + "status" : "passed" + }, + "line" : 48, + "name" : "the field {statusCode} contains the value {400}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "400", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 156019, + "status" : "passed" + }, + "line" : 49, + "name" : "the status code should be {400}", + "match" : { + "arguments" : [ { + "val" : "400", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 241684, + "status" : "passed" + }, + "line" : 50, + "name" : "the field {message} contains the value {Alias must be provided}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Alias must be provided", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 47094, + "status" : "passed" + }, + "line" : 51, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 25, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3583360893, + "status" : "passed" + }, + "line" : 26, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.229Z", + "before" : [ { + "result" : { + "duration" : 3125543942, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 58, + "name" : "OCM - Trying to create a new member process connection without alies - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---invitation-url-post;ocm---trying-to-create-a-new-member-process-connection-without-alies---negative", + "after" : [ { + "result" : { + "duration" : 5826750, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 7241161222, + "status" : "passed" + }, + "line" : 60, + "name" : "an administrator generates a QR code by creating a connection via OCM api", + "match" : { + "location" : "ConnectionStepDefinitions.an_administrator_generates_a_QR_code_by_creating_a_connection_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 185347931, + "status" : "passed" + }, + "line" : 61, + "name" : "the field {statusCode} contains the value {400}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "400", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 163752, + "status" : "passed" + }, + "line" : 62, + "name" : "the status code should be {400}", + "match" : { + "arguments" : [ { + "val" : "400", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 251050, + "status" : "passed" + }, + "line" : 63, + "name" : "the field {message} contains the value {Alias must be provided}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Alias must be provided", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 53120, + "status" : "passed" + }, + "line" : 64, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - invitation-url POST", + "description" : " It is used to create the connection invitation URL to establish the peer to peer connection,\n between two aeries agents or the participant user and the principal user.", + "id" : "api---ocm---connection---v1---invitation-url-post", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3371792322, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.103Z", + "before" : [ { + "result" : { + "duration" : 2951246668, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - Attestation - Health check - Positive", + "description" : "", + "id" : "api---ocm---attestation---v1---health-get;ocm---attestation---health-check---positive", + "after" : [ { + "result" : { + "duration" : 2414189, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 6823008593, + "status" : "passed" + }, + "line" : 28, + "name" : "we call the health check for attestation manager via OCM api", + "match" : { + "location" : "AttestationStepDefinitions.we_call_the_health_check_for_attestation_manager_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 143021558, + "status" : "passed" + }, + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 174895, + "status" : "passed" + }, + "line" : 30, + "name" : "the status code should be {200}", + "match" : { + "arguments" : [ { + "val" : "200", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 263973, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} is present and not empty", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + } ], + "location" : "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 45552, + "status" : "passed" + }, + "line" : 32, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@attestation" + }, { + "name" : "@health" + } ] + } ], + "name" : "API - OCM - attestation - v1 - health GET", + "description" : " Attestation manager health check", + "id" : "api---ocm---attestation---v1---health-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/attestation/v1/health/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@attestation", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3335610493, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.322Z", + "before" : [ { + "result" : { + "duration" : 3179736886, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - Proof - Health check - Positive", + "description" : "", + "id" : "api---ocm---proof---v1---health-get;ocm---proof---health-check---positive", + "after" : [ { + "result" : { + "duration" : 20516660, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 7042882899, + "status" : "passed" + }, + "line" : 28, + "name" : "we call the health check for proof manager via OCM api", + "match" : { + "location" : "ProofStepDefinitions.we_call_the_health_check_for_proof_manager_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 191791827, + "status" : "passed" + }, + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 148390, + "status" : "passed" + }, + "line" : 30, + "name" : "the status code should be {200}", + "match" : { + "arguments" : [ { + "val" : "200", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 242515, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} is present and not empty", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + } ], + "location" : "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 42071, + "status" : "passed" + }, + "line" : 32, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@proof" + }, { + "name" : "@health" + } ] + } ], + "name" : "API - OCM - proof - v1 - health GET", + "description" : " proof manager health check", + "id" : "api---ocm---proof---v1---health-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/proof/v1/health/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@proof", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3390634351, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.608Z", + "before" : [ { + "result" : { + "duration" : 2537666959, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - Connection - Health check - Positive", + "description" : "", + "id" : "api---ocm---connection---v1---health-get;ocm---connection---health-check---positive", + "after" : [ { + "result" : { + "duration" : 9604639, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 6956407765, + "status" : "passed" + }, + "line" : 28, + "name" : "we call the health check for connection manager via OCM api", + "match" : { + "location" : "ConnectionStepDefinitions.we_call_the_health_check_for_connection_manager_via_OCM_api()" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 186833220, + "status" : "passed" + }, + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 152331, + "status" : "passed" + }, + "line" : 30, + "name" : "the status code should be {200}", + "match" : { + "arguments" : [ { + "val" : "200", + "offset" : 27 + } ], + "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 241973, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} is present and not empty", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + } ], + "location" : "GeneralStepDefinitions.the_field_is_present_and_not_empty(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 38299, + "status" : "passed" + }, + "line" : 32, + "name" : "I clear the request body", + "match" : { + "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + }, + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@health" + } ] + } ], + "name" : "API - OCM - connection - v1 - health GET", + "description" : " Connection manager health check", + "id" : "api---ocm---connection---v1---health-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/health/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 24, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3558408145, + "status" : "passed" + }, + "line" : 25, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:54.904Z", + "before" : [ { + "result" : { + "duration" : 3064929201, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 34, + "name" : "OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative", + "description" : "", + "id" : "api---ocm---connection---v1---connections---connectionid-get;ocm---try-to-get-connection-by-providing-invalid-connectionid---<connid>---negative;;2", + "after" : [ { + "result" : { + "duration" : 8951771, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario Outline", + "steps" : [ { + "result" : { + "duration" : 7122406244, + "status" : "passed" + }, + "line" : 29, + "name" : "an administrator fetches connection with connectionId {dasdasdas}", + "match" : { + "arguments" : [ { + "val" : "dasdasdas", + "offset" : 55 + } ], + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_via_OCM_api(String)" + }, + "keyword" : "Given " + }, { + "result" : { + "duration" : 195809434, + "status" : "passed" + }, + "line" : 30, + "name" : "the field {statusCode} contains the value {404}", + "match" : { + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "404", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 281301, + "status" : "passed" + }, + "line" : 31, + "name" : "the field {message} contains the value {No Data found}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "No Data found", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@connections" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - connections - connectionId GET", + "description" : " This request is used to fetch connection information for the connection id provided in URL.\n It also provides state of the connection established.", + "id" : "api---ocm---connection---v1---connections---connectionid-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/%7BconnectionId%7D/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { "line" : 20, "elements" : [ { "line" : 23, @@ -8,34 +1566,34 @@ "keyword" : "Background", "steps" : [ { "result" : { - "duration" : 450382148, + "duration" : 3540210953, "status" : "passed" }, "line" : 24, - "name" : "we are testing the VIAM Api", + "name" : "we are testing the OCM Api", "match" : { - "location" : "RestGeneralStepDefinitions.we_are_testing_the_VIAM_api()" + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" }, "keyword" : "Given " } ] }, { - "start_timestamp" : "2022-04-15T13:56:27.185Z", + "start_timestamp" : "2022-06-17T13:59:55.103Z", "before" : [ { "result" : { - "duration" : 382472202, + "duration" : 2764959645, "status" : "passed" }, "match" : { "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" } } ], - "line" : 27, - "name" : "Send a batch request and then fetch it with getStatuses - Positive", + "line" : 42, + "name" : "OCM - GET all connections with pagination out of bounds - negative", "description" : "", - "id" : "api---getstatuses-post;send-a-batch-request-and-then-fetch-it-with-getstatuses---positive", + "id" : "api---ocm---connection---v1---connections-get;ocm---get-all-connections-with-pagination-out-of-bounds---negative", "after" : [ { "result" : { - "duration" : 1088833, + "duration" : 1760813, "status" : "passed" }, "match" : { @@ -46,151 +1604,405 @@ "keyword" : "Scenario", "steps" : [ { "result" : { - "duration" : 152774022, + "duration" : 7105319891, "status" : "passed" }, - "line" : 29, - "name" : "I load the REST request {Batch.json} with profile {successful_batch}", + "line" : 43, + "name" : "an administrator fetches all the connections with pageSize {9999} and page {9999} via OCM api", "match" : { "arguments" : [ { - "val" : "Batch.json", - "offset" : 25 + "val" : "9999", + "offset" : 60 }, { - "val" : "successful_batch", - "offset" : 51 + "val" : "9999", + "offset" : 76 } ], - "location" : "RestGeneralStepDefinitions.I_load_the_REST_request__with_profile_(String,String)" + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_with_pageSize_and_page_via_OCM_api(String,String)" }, "keyword" : "Given " }, { "result" : { - "error_message" : "java.net.UnknownHostException: batch-service.rse-test.k8s.vereign.com: Name or service not known\n\tat java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)\n\tat java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933)\n\tat java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519)\n\tat java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)\n\tat java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509)\n\tat java.base/java.net.InetAddress.getAllByName(InetAddress.java:1367)\n\tat java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301)\n\tat org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:263)\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)\n\tat org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)\n\tat org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605)\n\tat org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440)\n\tat org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)\n\tat org.apache.http.client.HttpClient$execute$0.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2088)\n\tat io.restassured.internal.http.HTTPBuilder.post(HTTPBuilder.java:350)\n\tat io.restassured.internal.http.HTTPBuilder$post$2.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1194)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166)\n\tat io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30)\n\tat io.restassured.filter.Filter$filter$0.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.log.RequestLoggingFilter.filter(RequestLoggingFilter.java:146)\n\tat io.restassured.filter.Filter$filter.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:157)\n\tat io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)\n\tat io.restassured.filter.FilterContext$next.call(Unknown Source)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)\n\tat io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1686)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203)\n\tat io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1692)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819)\n\tat groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)\n\tat org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171)\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203)\n\tat io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:180)\n\tat io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)\n\tat core.RestClient.post(RestClient.java:156)\n\tat api.test.rest.batch.BatchStepDefinitions.I_send_a_new_batch_request_via_API(BatchStepDefinitions.java:55)\n\tat api.test.rest.batch.BatchStepDefinitions.I_send_a_new_random_batch_request_via_API(BatchStepDefinitions.java:120)\n\tat ✽.I send a new random batch request via API(file:src/test/resources/features/batch/api/getStatuses/POST.feature:30)\n", - "duration" : 748752429, - "status" : "failed" + "duration" : 187442387, + "status" : "passed" }, - "line" : 30, - "name" : "I send a new random batch request via API", + "line" : 44, + "name" : "the field {statusCode} contains the value {200}", "match" : { - "location" : "BatchStepDefinitions.I_send_a_new_random_batch_request_via_API()" + "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { + "val" : "200", + "offset" : 43 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "Given " + "keyword" : "Then " }, { "result" : { - "duration" : 10717, - "status" : "skipped" + "duration" : 1566165302, + "status" : "passed" }, - "line" : 31, - "name" : "the status code should be {200}", + "line" : 45, + "name" : "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", "match" : { "arguments" : [ { - "val" : "200", - "offset" : 27 + "val" : "Connection_GetConnections_schema.json", + "offset" : 40 } ], - "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" }, "keyword" : "And " }, { "result" : { - "duration" : 4052, - "status" : "skipped" + "duration" : 271468, + "status" : "passed" }, - "line" : 33, - "name" : "I wait for {60000} mseconds", + "line" : 46, + "name" : "the field {message} contains the value {Connections fetch successfully}", "match" : { "arguments" : [ { - "val" : "60000", - "offset" : 12 + "val" : "message", + "offset" : 11 + }, { + "val" : "Connections fetch successfully", + "offset" : 40 } ], - "location" : "GeneralStepDefinitions.I_wait_for_mseconds(int)" + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, "keyword" : "Then " }, { "result" : { - "duration" : 3267, - "status" : "skipped" + "duration" : 11915606, + "status" : "passed" }, - "line" : 34, - "name" : "I clear the request body", + "line" : 47, + "name" : "the field {$.data.records} contains {0} elements", "match" : { - "location" : "GeneralStepDefinitions.I_clear_the_request_body()" + "arguments" : [ { + "val" : "$.data.records", + "offset" : 11 + }, { + "val" : "0", + "offset" : 37 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_elements(String,int)" }, - "keyword" : "Given " + "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@connections" + }, { + "name" : "@negative" + } ] + } ], + "name" : "API - OCM - connection - v1 - connections GET", + "description" : " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "id" : "api---ocm---connection---v1---connections-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3378458397, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.720Z", + "before" : [ { + "result" : { + "duration" : 2848607237, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 34, + "name" : "OCM - GET all connections with pagination - Positive", + "description" : "", + "id" : "api---ocm---connection---v1---connections-get;ocm---get-all-connections-with-pagination---positive", + "after" : [ { + "result" : { + "duration" : 1238112, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { "result" : { - "duration" : 3147, - "status" : "skipped" + "duration" : 7209187377, + "status" : "passed" }, "line" : 35, - "name" : "I call getStatuses with the current sealKey via API", + "name" : "an administrator fetches all the connections with pageSize {5} and page {1} via OCM api", "match" : { "arguments" : [ { - "val" : "sealKey", - "offset" : 36 + "val" : "5", + "offset" : 60 + }, { + "val" : "1", + "offset" : 73 } ], - "location" : "BatchStepDefinitions.I_call_getStatuses_with_the_current_sealKey_via_API(String)" + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_with_pageSize_and_page_via_OCM_api(String,String)" }, - "keyword" : "Then " + "keyword" : "Given " }, { "result" : { - "duration" : 3149, - "status" : "skipped" + "duration" : 232274515, + "status" : "passed" }, "line" : 36, - "name" : "the status code should be {200}", + "name" : "the field {statusCode} contains the value {200}", "match" : { "arguments" : [ { + "val" : "statusCode", + "offset" : 11 + }, { "val" : "200", - "offset" : 27 + "offset" : 43 } ], - "location" : "GeneralStepDefinitions.the_status_code_should_be(int)" + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "And " + "keyword" : "Then " }, { "result" : { - "duration" : 3454, - "status" : "skipped" + "duration" : 1363592529, + "status" : "passed" }, "line" : 37, - "name" : "the field {$.status} has the value {OK}", + "name" : "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", + "match" : { + "arguments" : [ { + "val" : "Connection_GetConnections_schema.json", + "offset" : 40 + } ], + "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" + }, + "keyword" : "And " + }, { + "result" : { + "duration" : 411075, + "status" : "passed" + }, + "line" : 38, + "name" : "the field {message} contains the value {Connections fetch successfully}", + "match" : { + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connections fetch successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" + }, + "keyword" : "Then " + }, { + "result" : { + "duration" : 11045082, + "status" : "passed" + }, + "line" : 39, + "name" : "the field {$.data.records} contains {5} elements", "match" : { "arguments" : [ { - "val" : "$.status", + "val" : "$.data.records", "offset" : 11 }, { - "val" : "OK", - "offset" : 36 + "val" : "5", + "offset" : 37 } ], - "location" : "GeneralStepDefinitions.the_field_has_the_value_(String,String)" + "location" : "GeneralStepDefinitions.the_field_contains_elements(String,int)" }, "keyword" : "And " + } ], + "tags" : [ { + "name" : "@rest" + }, { + "name" : "@all" + }, { + "name" : "@ocm" + }, { + "name" : "@connection" + }, { + "name" : "@connections" + } ] + } ], + "name" : "API - OCM - connection - v1 - connections GET", + "description" : " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "id" : "api---ocm---connection---v1---connections-get", + "keyword" : "Feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/GET.feature", + "tags" : [ { + "name" : "@rest", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 1 + } + }, { + "name" : "@all", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 7 + } + }, { + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 17 + } + } ] +} , { + "line" : 20, + "elements" : [ { + "line" : 23, + "name" : "", + "description" : "", + "type" : "background", + "keyword" : "Background", + "steps" : [ { + "result" : { + "duration" : 3454270239, + "status" : "passed" + }, + "line" : 24, + "name" : "we are testing the OCM Api", + "match" : { + "location" : "RestGeneralStepDefinitions.we_are_testing_the_OCM_api()" + }, + "keyword" : "Given " + } ] + }, { + "start_timestamp" : "2022-06-17T13:59:55.559Z", + "before" : [ { + "result" : { + "duration" : 2820806103, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.beforeScenario(Scenario)" + } + } ], + "line" : 27, + "name" : "OCM - GET all connections - Positive", + "description" : "", + "id" : "api---ocm---connection---v1---connections-get;ocm---get-all-connections---positive", + "after" : [ { + "result" : { + "duration" : 905282, + "status" : "passed" + }, + "match" : { + "location" : "GeneralStepDefinitions.afterScenario()" + } + } ], + "type" : "scenario", + "keyword" : "Scenario", + "steps" : [ { + "result" : { + "duration" : 6824042426, + "status" : "passed" + }, + "line" : 28, + "name" : "an administrator fetches all the connections via OCM api", + "match" : { + "location" : "ConnectionStepDefinitions.an_administrator_fetches_all_the_connections_via_OCM_api()" + }, + "keyword" : "Given " }, { "result" : { - "duration" : 3077, - "status" : "skipped" + "duration" : 218384760, + "status" : "passed" }, - "line" : 38, - "name" : "the field {$.code} has the value {200}", + "line" : 29, + "name" : "the field {statusCode} contains the value {200}", "match" : { "arguments" : [ { - "val" : "$.code", + "val" : "statusCode", "offset" : 11 }, { "val" : "200", - "offset" : 34 + "offset" : 43 } ], - "location" : "GeneralStepDefinitions.the_field_has_the_value_(String,String)" + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "And " + "keyword" : "Then " }, { "result" : { - "duration" : 3092, - "status" : "skipped" + "duration" : 1528485130, + "status" : "passed" }, - "line" : 39, - "name" : "the response is valid according to the {Batch_GetStatuses_schema.json} REST schema", + "line" : 30, + "name" : "the response is valid according to the {Connection_GetConnections_schema.json} REST schema", "match" : { "arguments" : [ { - "val" : "Batch_GetStatuses_schema.json", + "val" : "Connection_GetConnections_schema.json", "offset" : 40 } ], "location" : "RestGeneralStepDefinitions.the_response_is_valid_according_to_the_REST_schema(String)" @@ -198,33 +2010,40 @@ "keyword" : "And " }, { "result" : { - "duration" : 3267, - "status" : "skipped" + "duration" : 546622, + "status" : "passed" }, - "line" : 40, - "name" : "I assert that getStatus status is the same as the sendBatch value via API", + "line" : 31, + "name" : "the field {message} contains the value {Connections fetch successfully}", "match" : { - "location" : "BatchStepDefinitions.I_assert_that_getStatus_status_is_the_same_as_the_sendBatch_value_via_API()" + "arguments" : [ { + "val" : "message", + "offset" : 11 + }, { + "val" : "Connections fetch successfully", + "offset" : 40 + } ], + "location" : "GeneralStepDefinitions.the_field_contains_the_value_(String,String)" }, - "keyword" : "And " + "keyword" : "Then " } ], "tags" : [ { "name" : "@rest" - }, { - "name" : "@batch" }, { "name" : "@all" }, { - "name" : "@getStatuses" + "name" : "@ocm" }, { - "name" : "@test" + "name" : "@connection" + }, { + "name" : "@connections" } ] } ], - "name" : "API - getStatuses POST", - "description" : " Get the previously added Batches", - "id" : "api---getstatuses-post", + "name" : "API - OCM - connection - v1 - connections GET", + "description" : " This request fetches the connection information against the provided participantDID otherwise all the connections are fetched.", + "id" : "api---ocm---connection---v1---connections-get", "keyword" : "Feature", - "uri" : "file:src/test/resources/features/batch/api/getStatuses/POST.feature", + "uri" : "file:src/test/resources/features/ocm/connection/v1/connections/GET.feature", "tags" : [ { "name" : "@rest", "type" : "Tag", @@ -233,18 +2052,25 @@ "column" : 1 } }, { - "name" : "@batch", + "name" : "@all", "type" : "Tag", "location" : { "line" : 19, "column" : 7 } }, { - "name" : "@all", + "name" : "@ocm", + "type" : "Tag", + "location" : { + "line" : 19, + "column" : 12 + } + }, { + "name" : "@connection", "type" : "Tag", "location" : { "line" : 19, - "column" : 14 + "column" : 17 } } ] } ] \ No newline at end of file diff --git a/target/courgette-report/index.html b/target/courgette-report/index.html index 529719f6257f4c6eecbae538c76b55fd7d456396..6ff5dcd0714f75cdb5ff3551300d9152dccd9851 100644 --- a/target/courgette-report/index.html +++ b/target/courgette-report/index.html @@ -44,7 +44,7 @@ </div> <div class="card-footer text-white clearfix small z-1" style="cursor: pointer;" onclick="setSearch('');"> - <span class="float-left text-white" id="card-total">1</span> + <span class="float-left text-white" id="card-total">12</span> </div> </div> </div> @@ -60,7 +60,7 @@ </div> <div class="card-footer text-white clearfix small z-1" style="cursor: pointer;" onclick="setSearch('Passed');"> - <span class="float-left text-white" id="card-passed">0</span> + <span class="float-left text-white" id="card-passed">12</span> </div> </div> </div> @@ -76,7 +76,7 @@ </div> <div class="card-footer text-white clearfix small z-1" style="cursor: pointer;" onclick="setSearch('Failed');"> - <span class="float-left text-white" id="card-failed">1</span> + <span class="float-left text-white" id="card-failed">0</span> </div> </div> </div> @@ -109,14 +109,14 @@ <div class="col-sm-3"> Timestamp: </div> - <div>2022-04-15T13:56:29.318034087Z</div> + <div>2022-06-17T14:00:15.886554366Z</div> </div> <div class="row mt-3"> <div class="col-sm-3"> Duration: </div> - <div>0 min, 2 sec</div> + <div>0 min, 25 sec</div> </div> <div class="row mt-3"> @@ -144,7 +144,7 @@ <div class="col-sm-3"> Cucumber Tags: </div> - <div>@test, ~@wip</div> + <div>@ocm,not @wip</div> </div> <div class="row mt-3"> @@ -183,10 +183,98 @@ <tbody> <tr> <td> - <a href="" data-toggle="modal" data-target="#fc49fec7-3555-4bbb-bc85-f460d0e7e5f7">Send a batch request and then fetch it with getStatuses - Positive</a> + <a href="" data-toggle="modal" data-target="#1b304114-9eca-4797-bd7d-9109da61d664">OCM - Creating a new process connection with alias member- Positive</a> </td> <td> - <span class="float-left badge badge-danger">Failed</span> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#84043dfc-e98e-4c53-b9c8-e34de6bacae3">OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#bf493178-265d-4886-a7d9-8d287aa0c806">OCM - Creating a new process connection with alias subscriber- Positive</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#0fd7ab95-f6a8-40b9-be52-a6008623bd0b">OCM - Trying to create a new member process connection with invalid alias - Negative</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#9fc300d0-8cc5-44a6-b1bd-8d0b4188e8d2">OCM - Trying to create a new member process connection without alies - Negative</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#da59d030-b998-4d68-aa27-c4faa58c834f">OCM - Attestation - Health check - Positive</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#c65569b1-6fbc-4713-bdca-eadbaed4da4a">OCM - Proof - Health check - Positive</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#e30508c2-afd2-4da9-953d-974ac5df9b16">OCM - Connection - Health check - Positive</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#e996b300-3131-4686-85ad-ceb9b6a12459">OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#aac77a7d-cbf1-42ba-b25f-b10faf0a4f9f">OCM - GET all connections with pagination out of bounds - negative</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#4fd0bd59-a862-49e8-9f9d-db1f6220f20a">OCM - GET all connections with pagination - Positive</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> + </td> + </tr> +<tr> + <td> + <a href="" data-toggle="modal" data-target="#61ec627b-04d6-4cf0-a378-2b50862c7d3f">OCM - GET all connections - Positive</a> + </td> + <td> + <span class="float-left badge badge-success">Passed</span> </td> </tr> @@ -200,12 +288,12 @@ <!-- /.container-fluid --> <!-- Modals --> - <div class="modal fade" id="37e161b0-a744-4b88-83a5-014a41ea3e01" tabindex="-1" role="dialog" aria-labelledby="37e161b0-a744-4b88-83a5-014a41ea3e01" aria-hidden="true"> + <div class="modal fade" id="022424e5-d488-4f71-9a68-343245d90527" tabindex="-1" role="dialog" aria-labelledby="022424e5-d488-4f71-9a68-343245d90527" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header text-white bg-dark"> <span class="modal-title"><h5></h5> -<div class="font-italic text-muted">POST.feature - line 23</div></span> +<div class="font-italic text-muted">POST.feature - line 25</div></span> <button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> @@ -213,11 +301,11 @@ <div class="modal-body"> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Given we are testing the VIAM Api +Given we are testing the OCM Api </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">450 ms</span> +<span class="badge badge-info">751 ms</span> <span class="badge badge-success">Passed</span> </span> </div> @@ -225,11 +313,11 @@ Given we are testing the VIAM Api <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Given we are testing the VIAM Api +Given we are testing the OCM Api </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">450 ms</span> +<span class="badge badge-info">751 ms</span> <span class="badge badge-success">Passed</span> </span> </div> @@ -240,12 +328,12 @@ Given we are testing the VIAM Api </div> </div> -<div class="modal fade" id="fc49fec7-3555-4bbb-bc85-f460d0e7e5f7" tabindex="-1" role="dialog" aria-labelledby="fc49fec7-3555-4bbb-bc85-f460d0e7e5f7" aria-hidden="true"> +<div class="modal fade" id="1b304114-9eca-4797-bd7d-9109da61d664" tabindex="-1" role="dialog" aria-labelledby="1b304114-9eca-4797-bd7d-9109da61d664" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header text-white bg-dark"> -<span class="modal-title"><h5>Send a batch request and then fetch it with getStatuses - Positive</h5> -<div class="font-italic text-muted">POST.feature - line 27</div></span> +<span class="modal-title"><h5>OCM - Creating a new process connection with alias member- Positive</h5> +<div class="font-italic text-muted">POST.feature - line 41</div></span> <button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> @@ -257,7 +345,7 @@ GeneralStepDefinitions.beforeScenario(Scenario) </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">382 ms</span> +<span class="badge badge-info">638 ms</span> <span class="badge badge-success">Passed</span> </span> </div> @@ -265,11 +353,11 @@ GeneralStepDefinitions.beforeScenario(Scenario) <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Given we are testing the VIAM Api +Given we are testing the OCM Api </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">450 ms</span> +<span class="badge badge-info">751 ms</span> <span class="badge badge-success">Passed</span> </span> </div> @@ -277,11 +365,11 @@ Given we are testing the VIAM Api <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Given I load the REST request {Batch.json} with profile {successful_batch} +Given an administrator generates a QR code by creating a connection with alias {member} via OCM api </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">152 ms</span> +<span class="badge badge-info">1876 ms</span> <span class="badge badge-success">Passed</span> </span> </div> @@ -289,225 +377,236 @@ Given I load the REST request {Batch.json} with profile {successful_batch} <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Given I send a new random batch request via API +Then the field {statusCode} contains the value {200} </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">748 ms</span> -<span class="badge badge-danger">Failed</span> +<span class="badge badge-info">46 ms</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> -<div class="row mt-2"> -<div class="col-lg-12 text-danger" style="overflow-wrap:break-word;"> -java.net.UnknownHostException: batch-service.rse-test.k8s.vereign.com: Name or service not known - at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) - at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933) - at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519) - at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852) - at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509) - at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1367) - at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301) - at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) - at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:263) - at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162) - at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326) - at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605) - at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440) - at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835) - at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) - at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) - at org.apache.http.client.HttpClient$execute$0.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) - at io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2088) - at io.restassured.internal.http.HTTPBuilder.post(HTTPBuilder.java:350) - at io.restassured.internal.http.HTTPBuilder$post$2.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) - at io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1194) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) - at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) - at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166) - at io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30) - at io.restassured.filter.Filter$filter$0.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) - at io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) - at io.restassured.filter.log.RequestLoggingFilter.filter(RequestLoggingFilter.java:146) - at io.restassured.filter.Filter$filter.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:157) - at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72) - at io.restassured.filter.FilterContext$next.call(Unknown Source) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) - at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1686) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) - at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) - at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203) - at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1692) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) - at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) - at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:819) - at groovy.lang.GroovyObject.invokeMethod(GroovyObject.java:39) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45) - at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55) - at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171) - at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:203) - at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:180) - at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy) - at core.RestClient.post(RestClient.java:156) - at api.test.rest.batch.BatchStepDefinitions.I_send_a_new_batch_request_via_API(BatchStepDefinitions.java:55) - at api.test.rest.batch.BatchStepDefinitions.I_send_a_new_random_batch_request_via_API(BatchStepDefinitions.java:120) - at ✽.I send a new random batch request via API(file:src/test/resources/features/batch/api/getStatuses/POST.feature:30) - +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the status code should be {201} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -And the status code should be {200} +And the response is valid according to the {Connection_POST_invitationURL.json} REST schema </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-info">397 ms</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Then I wait for {60000} mseconds +Then the field {message} contains the value {Connection created successfully} </div> <div class="col-lg-3"> <span class="float-right"> <span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Given I clear the request body +And the field {$..state} contains the value {invited} </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-info">1 ms</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -Then I call getStatuses with the current sealKey via API +And the field {$..role} contains the value {inviter} </div> <div class="col-lg-3"> <span class="float-right"> <span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -And the status code should be {200} +And the field {$..alias} contains the value {member} </div> <div class="col-lg-3"> <span class="float-right"> <span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -And the field {$.status} has the value {OK} +GeneralStepDefinitions.afterScenario() </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-info">1 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="1aa94b84-8fea-4932-a5b2-fe8534ff5a2b" tabindex="-1" role="dialog" aria-labelledby="1aa94b84-8fea-4932-a5b2-fe8534ff5a2b" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">POST.feature - line 25</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3836 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3836 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="84043dfc-e98e-4c53-b9c8-e34de6bacae3" tabindex="-1" role="dialog" aria-labelledby="84043dfc-e98e-4c53-b9c8-e34de6bacae3" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Trying to create a new member process connection with invalid alias dsadasd - Negative</h5> +<div class="font-italic text-muted">POST.feature - line 54</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2822 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3836 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator generates a QR code by creating a connection with alias {dsadasd} via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">6894 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {400} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">178 ms</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -And the field {$.code} has the value {200} +And the status code should be {400} </div> <div class="col-lg-3"> <span class="float-right"> <span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -And the response is valid according to the {Batch_GetStatuses_schema.json} REST schema +Then the field {message} contains the value {Alias must be provided} </div> <div class="col-lg-3"> <span class="float-right"> <span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> <hr> <div class="row"> <div class="col-lg-9" style="overflow-wrap:break-word;"> -And I assert that getStatus status is the same as the sendBatch value via API +And I clear the request body </div> <div class="col-lg-3"> <span class="float-right"> <span class="badge badge-info">0 ms</span> -<span class="badge badge-warning">Skipped</span> +<span class="badge badge-success">Passed</span> </span> </div> </div> @@ -518,7 +617,1527 @@ GeneralStepDefinitions.afterScenario() </div> <div class="col-lg-3"> <span class="float-right"> -<span class="badge badge-info">1 ms</span> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="c006036a-0057-45fb-8b43-dd0f89d81864" tabindex="-1" role="dialog" aria-labelledby="c006036a-0057-45fb-8b43-dd0f89d81864" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">POST.feature - line 25</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">795 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">795 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="bf493178-265d-4886-a7d9-8d287aa0c806" tabindex="-1" role="dialog" aria-labelledby="bf493178-265d-4886-a7d9-8d287aa0c806" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Creating a new process connection with alias subscriber- Positive</h5> +<div class="font-italic text-muted">POST.feature - line 42</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">685 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">795 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator generates a QR code by creating a connection with alias {subscriber} via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">1910 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">35 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the status code should be {201} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the response is valid according to the {Connection_POST_invitationURL.json} REST schema +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">391 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {message} contains the value {Connection created successfully} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {$..state} contains the value {invited} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {$..role} contains the value {inviter} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {$..alias} contains the value {subscriber} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="e7df4756-6f5c-4162-b4dd-844e4d499d67" tabindex="-1" role="dialog" aria-labelledby="e7df4756-6f5c-4162-b4dd-844e4d499d67" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">POST.feature - line 25</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3843 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3843 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="0fd7ab95-f6a8-40b9-be52-a6008623bd0b" tabindex="-1" role="dialog" aria-labelledby="0fd7ab95-f6a8-40b9-be52-a6008623bd0b" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Trying to create a new member process connection with invalid alias - Negative</h5> +<div class="font-italic text-muted">POST.feature - line 55</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2670 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3843 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator generates a QR code by creating a connection with alias {} via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">7223 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {400} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">164 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the status code should be {400} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {message} contains the value {Alias must be provided} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And I clear the request body +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">23 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="41c0a395-1b0a-41d1-a76d-b68fec43e0fb" tabindex="-1" role="dialog" aria-labelledby="41c0a395-1b0a-41d1-a76d-b68fec43e0fb" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">POST.feature - line 25</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3583 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3583 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="9fc300d0-8cc5-44a6-b1bd-8d0b4188e8d2" tabindex="-1" role="dialog" aria-labelledby="9fc300d0-8cc5-44a6-b1bd-8d0b4188e8d2" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Trying to create a new member process connection without alies - Negative</h5> +<div class="font-italic text-muted">POST.feature - line 58</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3125 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3583 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator generates a QR code by creating a connection via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">7241 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {400} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">185 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the status code should be {400} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {message} contains the value {Alias must be provided} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And I clear the request body +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">5 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="78bcc53b-cec7-4bbc-8800-3bcb0cea2e97" tabindex="-1" role="dialog" aria-labelledby="78bcc53b-cec7-4bbc-8800-3bcb0cea2e97" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">GET.feature - line 23</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3371 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3371 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="da59d030-b998-4d68-aa27-c4faa58c834f" tabindex="-1" role="dialog" aria-labelledby="da59d030-b998-4d68-aa27-c4faa58c834f" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Attestation - Health check - Positive</h5> +<div class="font-italic text-muted">GET.feature - line 27</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2951 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3371 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we call the health check for attestation manager via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">6823 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">143 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the status code should be {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {message} is present and not empty +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And I clear the request body +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="f60918e0-3922-42a4-aced-2bae737da796" tabindex="-1" role="dialog" aria-labelledby="f60918e0-3922-42a4-aced-2bae737da796" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">GET.feature - line 23</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3335 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3335 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="c65569b1-6fbc-4713-bdca-eadbaed4da4a" tabindex="-1" role="dialog" aria-labelledby="c65569b1-6fbc-4713-bdca-eadbaed4da4a" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Proof - Health check - Positive</h5> +<div class="font-italic text-muted">GET.feature - line 27</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3179 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3335 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we call the health check for proof manager via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">7042 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">191 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the status code should be {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {message} is present and not empty +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And I clear the request body +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">20 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="7627ff03-6224-4006-9521-827240c42bed" tabindex="-1" role="dialog" aria-labelledby="7627ff03-6224-4006-9521-827240c42bed" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">GET.feature - line 23</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3390 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3390 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="e30508c2-afd2-4da9-953d-974ac5df9b16" tabindex="-1" role="dialog" aria-labelledby="e30508c2-afd2-4da9-953d-974ac5df9b16" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Connection - Health check - Positive</h5> +<div class="font-italic text-muted">GET.feature - line 27</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2537 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3390 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we call the health check for connection manager via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">6956 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">186 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the status code should be {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {message} is present and not empty +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And I clear the request body +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">9 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="fef4d415-636d-45fe-bf81-c311322f8d48" tabindex="-1" role="dialog" aria-labelledby="fef4d415-636d-45fe-bf81-c311322f8d48" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">GET.feature - line 24</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3558 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3558 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="e996b300-3131-4686-85ad-ceb9b6a12459" tabindex="-1" role="dialog" aria-labelledby="e996b300-3131-4686-85ad-ceb9b6a12459" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - Try to get connection by providing invalid connectionID - dasdasdas - Negative</h5> +<div class="font-italic text-muted">GET.feature - line 34</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3064 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3558 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator fetches connection with connectionId {dasdasdas} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">7122 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {404} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">195 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {message} contains the value {No Data found} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">8 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="3c58a158-84c6-4c3f-9557-60a0fa22e3b9" tabindex="-1" role="dialog" aria-labelledby="3c58a158-84c6-4c3f-9557-60a0fa22e3b9" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">GET.feature - line 23</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3540 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3540 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="aac77a7d-cbf1-42ba-b25f-b10faf0a4f9f" tabindex="-1" role="dialog" aria-labelledby="aac77a7d-cbf1-42ba-b25f-b10faf0a4f9f" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - GET all connections with pagination out of bounds - negative</h5> +<div class="font-italic text-muted">GET.feature - line 42</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2764 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3540 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator fetches all the connections with pageSize {9999} and page {9999} via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">7105 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">187 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the response is valid according to the {Connection_GetConnections_schema.json} REST schema +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">1566 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {message} contains the value {Connections fetch successfully} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {$.data.records} contains {0} elements +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">11 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">1 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="7de0234b-0f50-4328-a90b-56dc99d60839" tabindex="-1" role="dialog" aria-labelledby="7de0234b-0f50-4328-a90b-56dc99d60839" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">GET.feature - line 23</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3378 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3378 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="4fd0bd59-a862-49e8-9f9d-db1f6220f20a" tabindex="-1" role="dialog" aria-labelledby="4fd0bd59-a862-49e8-9f9d-db1f6220f20a" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - GET all connections with pagination - Positive</h5> +<div class="font-italic text-muted">GET.feature - line 34</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2848 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3378 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator fetches all the connections with pageSize {5} and page {1} via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">7209 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">232 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the response is valid according to the {Connection_GetConnections_schema.json} REST schema +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">1363 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {message} contains the value {Connections fetch successfully} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the field {$.data.records} contains {5} elements +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">11 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">1 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="31d002b2-3126-444a-b284-564260481eff" tabindex="-1" role="dialog" aria-labelledby="31d002b2-3126-444a-b284-564260481eff" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5></h5> +<div class="font-italic text-muted">GET.feature - line 23</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3454 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3454 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +</div> +</div> +</div> +</div> + +<div class="modal fade" id="61ec627b-04d6-4cf0-a378-2b50862c7d3f" tabindex="-1" role="dialog" aria-labelledby="61ec627b-04d6-4cf0-a378-2b50862c7d3f" aria-hidden="true"> +<div class="modal-dialog modal-lg" role="document"> +<div class="modal-content"> +<div class="modal-header text-white bg-dark"> +<span class="modal-title"><h5>OCM - GET all connections - Positive</h5> +<div class="font-italic text-muted">GET.feature - line 27</div></span> +<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close"> +<span aria-hidden="true">×</span> +</button> +</div> +<div class="modal-body"> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.beforeScenario(Scenario) +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">2820 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given we are testing the OCM Api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">3454 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Given an administrator fetches all the connections via OCM api +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">6824 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {statusCode} contains the value {200} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">218 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +And the response is valid according to the {Connection_GetConnections_schema.json} REST schema +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">1528 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +Then the field {message} contains the value {Connections fetch successfully} +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> +<span class="badge badge-success">Passed</span> +</span> +</div> +</div> +<hr> +<div class="row"> +<div class="col-lg-9" style="overflow-wrap:break-word;"> +GeneralStepDefinitions.afterScenario() +</div> +<div class="col-lg-3"> +<span class="float-right"> +<span class="badge badge-info">0 ms</span> <span class="badge badge-success">Passed</span> </span> </div> diff --git a/target/courgette-rerun.txt b/target/courgette-rerun.txt index b87440d2ebc23afd2639ac61d2148ee56769bf66..e2983bf142f62c8b21cef31a73401c48bdf1ea1b 100644 --- a/target/courgette-rerun.txt +++ b/target/courgette-rerun.txt @@ -1 +1 @@ -file:src/test/resources/features/batch/api/getStatuses/POST.feature:27 +file:src/test/resources/features/ocm/connection/v1/invitation-url/POST.feature:40