From e25b1e301e7deb5a59f20b465544adb156c8f748 Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:24:09 +0100 Subject: [PATCH] ci: tests --- package.json | 2 +- src/commands/agreements/showAgreement.ts | 12 ++++++------ test/integration/AssetsEncrypt.test.ts | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d6ecd37..72ea1bd 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "ncli": "./dist/src/index.js" }, "dependencies": { - "@nevermined-io/sdk": "^2.2.8", + "@nevermined-io/sdk": "^2.2.9", "@nevermined-io/sdk-dtp": "^0.7.0-rc5", "log4js": "^6.9.1", "chalk": "^4.1.2", diff --git a/src/commands/agreements/showAgreement.ts b/src/commands/agreements/showAgreement.ts index 7398422..0f7ef8a 100644 --- a/src/commands/agreements/showAgreement.ts +++ b/src/commands/agreements/showAgreement.ts @@ -53,11 +53,11 @@ export const showAgreement = async ( ) ) - logger.info(chalk.dim(`Condition Ids:`)) - await agreementData.conditionIds.forEach(async (_conditionId, _index) => { - const cond = await nvmApp.sdk.keeper.conditionStoreManager.getCondition(_conditionId) - logger.info(chalk.dim(`\tCondition Id[${_index}]= ${_conditionId} with status: ${cond.state}. Timeout: ${cond.timeOut} - Timelock: ${cond.timeLock}`)) - }) + // logger.info(chalk.dim(`Condition Ids:`)) + // await agreementData.conditionIds.map(async (_conditionId, _index) => { + // const cond = await nvmApp.sdk.keeper.conditionStoreManager.getCondition(_conditionId) + // logger.info(chalk.dim(`\tCondition Id[${_index}]= ${_conditionId} with status: ${cond.state}. Timeout: ${cond.timeOut} - Timelock: ${cond.timeLock}`)) + // }) if (contractName === 'NFTAccessTemplate') await nvmApp.sdk.keeper.templates.nftAccessTemplate.printAgreementStatus( @@ -81,7 +81,7 @@ export const showAgreement = async ( await nvmApp.sdk.keeper.templates.nft721AccessTemplate.printAgreementStatus( agreementId ) - else if (contractName === 'NFT721SalesTemplate') + else if (contractName === 'NFT721SalesTemplate') await nvmApp.sdk.keeper.templates.nft721SalesTemplate.printAgreementStatus( agreementId ) diff --git a/test/integration/AssetsEncrypt.test.ts b/test/integration/AssetsEncrypt.test.ts index 76331d2..b2de26d 100644 --- a/test/integration/AssetsEncrypt.test.ts +++ b/test/integration/AssetsEncrypt.test.ts @@ -8,7 +8,7 @@ import { import execCommand from '../helpers/ExecCommand' // TODO: Re-enable DTP tests when `sdk-dtp` is published back -describe.skip('Assets e2e Testing', () => { +describe('Assets e2e Testing', () => { let did = '' let url = '' let password = '' @@ -57,7 +57,7 @@ describe.skip('Assets e2e Testing', () => { }) test('Order and download an asset', async () => { - const getCommand = `${baseCommands.assets.getAsset} ${did} --accountIndex 0 --fileIndex 1 --password abde --destination /tmp` + const getCommand = `${baseCommands.assets.getAsset} ${did} --accountIndex 1 --fileIndex 1 --password abde --destination /tmp/.cli-test` console.debug(`COMMAND: ${getCommand}`) const getStdout = execCommand(getCommand, execOpts)