Skip to content

Commit

Permalink
perf: update ts client in the performance tests, cleanup println, A…
Browse files Browse the repository at this point in the history
…TL-6404

Signed-off-by: Yurii Shynbuiev <[email protected]>
  • Loading branch information
yshyn-iohk committed May 13, 2024
1 parent d193c3d commit 030dd8b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ object PresentationStatus {
p.attachments.head.data match {
case Base64(data) =>
val base64Decoded = new String(java.util.Base64.getDecoder.decode(data))
println(s"Base64decode:\n\n ${base64Decoded} \n\n")
Seq(base64Decoded)
case any => ???
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ object CredentialDefinitionLookupAndPaginationSpec
.get(uri)
.response(asJsonAlways[CredentialDefinitionResponsePage])
.send(backend)
} yield {
println(response)
response
}
} yield response
_ <- ZIO.log(response.toString)
firstPage <- ZIO.fromEither(response.body)
otherPagesStream = zio.stream.ZStream
.unfoldZIO[Any, Throwable, CredentialDefinitionResponsePage, CredentialDefinitionResponsePage](firstPage)(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.hyperledger.identus.mercury.model

import java.util.Base64 as JBase64
import io.circe.{Decoder, Encoder, HCursor, Json, JsonObject}
import io.circe.{Decoder, Encoder, Json, JsonObject}
import io.circe.generic.semiauto.*
import io.circe.syntax.*
import cats.syntax.functor.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.hyperledger.identus.mercury.protocol.invitation
import cats.implicits._
import io.circe.syntax._
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder, HCursor}
import io.circe.{Decoder, Encoder}

sealed trait ServiceType

Expand Down
2 changes: 1 addition & 1 deletion tests/performance-tests/agent-performance-tests-k6/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
AGENT_VERSION=1.32.1-SNAPSHOT
AGENT_VERSION=1.33.0-SNAPSHOT
PRISM_NODE_VERSION=2.2.1
VAULT_DEV_ROOT_TOKEN_ID=root
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"webpack": "webpack"
},
"dependencies": {
"@input-output-hk/prism-typescript-client": "^1.12.0",
"@hyperledger/identus-cloud-agent-client-ts": "^1.33.0",
"uuid": "^9.0.0"
}
}
8 changes: 4 additions & 4 deletions tests/performance-tests/agent-performance-tests-k6/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -993,10 +993,10 @@
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==

"@input-output-hk/prism-typescript-client@^1.12.0":
version "1.12.0"
resolved "https://npm.pkg.github.com/download/@input-output-hk/prism-typescript-client/1.12.0/b327649cf9be1a2f6c41ac2cdac7467523165cfe#b327649cf9be1a2f6c41ac2cdac7467523165cfe"
integrity sha512-0YAR+Rhu7WA0Y2jAv8eH0i4VG0G4AOWysc+T+G7sCsCI0PjmgiG9CvUz10tupEnO7n8fwvVGSA7lu2SD5NKEyw==
"@hyperledger/identus-cloud-agent-client-ts@^1.33.0":
version "1.33.0"
resolved "https://npm.pkg.github.com/download/@hyperledger/identus-cloud-agent-client-ts/1.33.0/6f0f6f6a36ceb0790981ad3ba425db1d6b0103cd#6f0f6f6a36ceb0790981ad3ba425db1d6b0103cd"
integrity sha512-kVF/PnkV2T+G8TX0frHq7ENeK8RQCrif+HapyMj0CtWrfPmm5Qlh7XeFqY1H80HOMTanB9i15PwIabb717rkhQ==
dependencies:
es6-promise "^4.2.4"
url-parse "^1.4.3"
Expand Down

0 comments on commit 030dd8b

Please sign in to comment.