summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-30 15:07:06 +0100
committerFlorian Dold <florian@dold.me>2024-01-30 15:07:06 +0100
commit4ac0e7eda21f2f9293c8707e4359fb6e4299af08 (patch)
tree6986e9d2ed4e911677eb52935395acbcbad22302
parent673b56488e3a07eb6bee6ab6972be46891889d4a (diff)
downloadwallet-core-4ac0e7eda21f2f9293c8707e4359fb6e4299af08.tar.gz
wallet-core-4ac0e7eda21f2f9293c8707e4359fb6e4299af08.tar.bz2
wallet-core-4ac0e7eda21f2f9293c8707e4359fb6e4299af08.zip
harness: skeleton for OTP test
-rw-r--r--packages/taler-harness/src/integrationtests/test-otp.ts41
1 files changed, 41 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>
+ */
+
+/**
+ * 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"];