From 4ac0e7eda21f2f9293c8707e4359fb6e4299af08 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 Jan 2024 15:07:06 +0100 Subject: harness: skeleton for OTP test --- .../taler-harness/src/integrationtests/test-otp.ts | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 packages/taler-harness/src/integrationtests/test-otp.ts (limited to 'packages/taler-harness/src') diff --git a/packages/taler-harness/src/integrationtests/test-otp.ts b/packages/taler-harness/src/integrationtests/test-otp.ts new file mode 100644 index 000000000..d7c82ecdf --- /dev/null +++ b/packages/taler-harness/src/integrationtests/test-otp.ts @@ -0,0 +1,41 @@ +/* + This file is part of GNU Taler + (C) 2020 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see + */ + +/** + * Imports. + */ +import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; +import { GlobalTestState } from "../harness/harness.js"; +import { + createSimpleTestkudosEnvironmentV2, + withdrawViaBankV2, + makeTestPaymentV2, +} from "../harness/helpers.js"; +import { MerchantApiClient, j2s } from "@gnu-taler/taler-util"; + +/** + * Run test for basic, bank-integrated withdrawal and payment. + */ +export async function runOtpTest(t: GlobalTestState) { + // Set up test environment + + const { walletClient, bank, exchange, merchant } = + await createSimpleTestkudosEnvironmentV2(t); + + const merchantClient = new MerchantApiClient(merchant.makeInstanceBaseUrl()); +} + +runOtpTest.suites = ["wallet"]; -- cgit v1.2.3