Skip to content

Commit

Permalink
test: fix e2e var checks (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
amagyar-iohk authored and elribonazo committed Apr 25, 2024
1 parent a784299 commit f58ba5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions integration-tests/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"homepage": "https://github.com/input-output-hk/atala-prism-wallet-sdk-ts-e2e",
"dependencies": {
"@atala/prism-wallet-sdk": "../..",
"@atala/prism-wallet-sdk": "^5.0.0",
"@cucumber/cucumber": "^10.3.1",
"@cucumber/pretty-formatter": "^1.0.0",
"@hyperledger-labs/open-enterprise-agent-ts-client": "^1.19.1",
Expand Down Expand Up @@ -48,4 +48,4 @@
"resolutions": {
"wrap-ansi": "^7.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
import {Utils} from "../Utils"
import {randomUUID} from "crypto"
import * as fs from "fs"
import assert from "assert"
import axios from "axios"
import {configDotenv} from "dotenv"
import assert from "assert"

configDotenv()

Expand Down Expand Up @@ -54,6 +54,7 @@ export class CloudAgentConfiguration {
*/
static async preparePublishedDid() {
try {
assert(this.publishedDid != null)
assert(this.publishedDid != "")
await axiosInstance.get(
`did-registrar/dids/${this.publishedDid}`
Expand Down Expand Up @@ -112,6 +113,8 @@ export class CloudAgentConfiguration {
*/
static async prepareJwtSchema() {
try {
assert(this.jwtSchemaGuid != null)
assert(this.jwtSchemaGuid != "")
await axiosInstance.get(
`schema-registry/schemas/${this.jwtSchemaGuid}`
)
Expand Down Expand Up @@ -159,6 +162,8 @@ export class CloudAgentConfiguration {
*/
static async prepareAnoncredDefinition() {
try {
assert(this.anoncredDefinitionGuid != null)
assert(this.anoncredDefinitionGuid != "")
await axiosInstance.get(
`credential-definition-registry/definitions/${this.anoncredDefinitionGuid}`
)
Expand Down
6 changes: 4 additions & 2 deletions integration-tests/e2e-tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
hash.js "1.1.7"
stream-browserify "3.0.0"

"@atala/prism-wallet-sdk@../..":
version "3.1.0"
"@atala/prism-wallet-sdk@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@atala/prism-wallet-sdk/-/prism-wallet-sdk-5.0.0.tgz#683e2180e343abb71b8d13b4a9008babc4d664d0"
integrity sha512-S7Jp/8ug6djr/CRGfBzUozo762bJsfSLIPTTRLVI730o+TFBesyUbyrfB2wb82xl9Hd31BsVcO71yjki77/PVw==
dependencies:
"@atala/apollo" "^1.2.10"
"@scure/bip32" "^1.3.0"
Expand Down

0 comments on commit f58ba5d

Please sign in to comment.