diff options
Diffstat (limited to 'packages/taler-harness/src/index.ts')
-rw-r--r-- | packages/taler-harness/src/index.ts | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/packages/taler-harness/src/index.ts b/packages/taler-harness/src/index.ts index 5bf60d54f..9c3d8bf1f 100644 --- a/packages/taler-harness/src/index.ts +++ b/packages/taler-harness/src/index.ts @@ -52,7 +52,6 @@ import { } from "@gnu-taler/taler-wallet-core"; import { deepStrictEqual } from "assert"; import fs from "fs"; -import { createRandomTestUser, createTestForBankCore } from "http-client/bank-core.js"; import os from "os"; import path from "path"; import { runBench1 } from "./bench1.js"; @@ -691,63 +690,6 @@ async function getTestSummary<T extends object>(filter: string | undefined, ...a } deploymentCli - .subcommand("testBankAPI", "test-bank-api", { - help: "test api compatibility.", - }) - .requiredArgument("corebankApiBaseUrl", clk.STRING) - .maybeOption("adminPwd", ["--admin-password"], clk.STRING) - .maybeOption("filter", ["--filter"], clk.STRING) - .flag("showCurl", ["--show-curl"]) - .action(async (args) => { - const httpLib = createPlatformHttpLib(); - const api = new TalerCoreBankHttpClient(args.testBankAPI.corebankApiBaseUrl, httpLib); - - process.stdout.write("config: "); - const config = await api.getConfig() - if (!api.isCompatible(config.body.version)) { - console.log("fail") - return; - } else { - console.log("ok") - } - - if (!args.testBankAPI.adminPwd) { - console.log("no admin password, exit") - return; - } - - const resp = await api.getAuthenticationAPI("admin").createAccessToken(args.testBankAPI.adminPwd, { - scope: "readwrite" - }) - - if (args.testBankAPI.showCurl) { - setPrintHttpRequestAsCurl(true) - } - - if (resp.type === "fail") { - console.log("wrong admin password") - return; - } - - const bankCore = createTestForBankCore(api, resp.body.access_token) - - const summary = await getTestSummary(args.testBankAPI.filter, bankCore) - - console.log("successful tests:", summary.ok.length) - console.log("uncompleted tests:", summary.skiped.length) - summary.skiped.forEach((testResult) => { - if (testResult.result === "skiped") { - console.log(" ", testResult.testName, testResult.caseName) - } - }) - console.log("failed tests:", summary.fail.length) - summary.fail.forEach((testResult, i) => { - console.log(i, ")", testResult) - }) - }); - - -deploymentCli .subcommand("coincfg", "gen-coin-config", { help: "Generate a coin/denomination configuration for the exchange.", }) |