diff options
author | Sebastian <sebasjm@gmail.com> | 2023-07-03 12:44:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-07-03 12:44:20 -0300 |
commit | f407ab202317c188085cce4df90c3e24da3d4e31 (patch) | |
tree | 1bf72bc41fbdf20b8c305ad5764bea0b5eef8b0d /packages/taler-harness/src/harness/harness.ts | |
parent | 545bf16cdfa824778c1450e64eaea236b9d81c49 (diff) | |
download | wallet-core-f407ab202317c188085cce4df90c3e24da3d4e31.tar.xz |
fix #7741
add integration test
Diffstat (limited to 'packages/taler-harness/src/harness/harness.ts')
-rw-r--r-- | packages/taler-harness/src/harness/harness.ts | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index 1120eae84..940e4258a 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -28,6 +28,8 @@ import { AmountJson, Amounts, AmountString, + codecForMerchantOrderPrivateStatusResponse, + codecForMerchantPostOrderResponse, codecForMerchantReserveCreateConfirmation, Configuration, CoreApiResponse, @@ -39,28 +41,42 @@ import { hash, j2s, Logger, + MerchantInstancesResponse, + MerchantOrderPrivateStatusResponse, + MerchantPostOrderRequest, + MerchantPostOrderResponse, MerchantReserveCreateConfirmation, MerchantTemplateAddDetails, - NotificationType, parsePaytoUri, stringToBytes, TalerError, TalerProtocolDuration, - TransactionMajorState, + TipCreateConfirmation, + TipCreateRequest, + TippingReserveStatus, WalletNotification, } from "@gnu-taler/taler-util"; import { + createPlatformHttpLib, + readSuccessResponseJsonOrThrow, +} from "@gnu-taler/taler-util/http"; +import { BankApi, BankServiceHandle, HarnessExchangeBankAccount, - OpenedPromise, openPromise, - WalletApiOperation, WalletCoreApiClient, WalletCoreRequestType, WalletCoreResponseType, WalletOperations, } from "@gnu-taler/taler-wallet-core"; +import { + createRemoteWallet, + getClientFromRemoteWallet, + makeNotificationWaiter, + RemoteWallet, + WalletNotificationWaiter, +} from "@gnu-taler/taler-wallet-core/remote"; import { deepStrictEqual } from "assert"; import axiosImp, { AxiosError } from "axios"; import { ChildProcess, spawn } from "child_process"; @@ -72,29 +88,6 @@ import * as readline from "readline"; import { URL } from "url"; import { CoinConfig } from "./denomStructures.js"; import { LibeufinNexusApi, LibeufinSandboxApi } from "./libeufin-apis.js"; -import { - codecForMerchantOrderPrivateStatusResponse, - codecForMerchantPostOrderResponse, - MerchantInstancesResponse, - MerchantOrderPrivateStatusResponse, - MerchantPostOrderRequest, - MerchantPostOrderResponse, - TipCreateConfirmation, - TipCreateRequest, - TippingReserveStatus, -} from "@gnu-taler/taler-util"; -import { - createRemoteWallet, - getClientFromRemoteWallet, - makeNotificationWaiter, - RemoteWallet, - WalletNotificationWaiter, -} from "@gnu-taler/taler-wallet-core/remote"; -import { - createPlatformHttpLib, - readSuccessResponseJsonOrErrorCode, - readSuccessResponseJsonOrThrow, -} from "@gnu-taler/taler-util/http"; const logger = new Logger("harness.ts"); |