diff options
author | Florian Dold <florian@dold.me> | 2024-01-30 15:07:06 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-30 15:07:06 +0100 |
commit | 4ac0e7eda21f2f9293c8707e4359fb6e4299af08 (patch) | |
tree | 6986e9d2ed4e911677eb52935395acbcbad22302 /packages/taler-harness/src/integrationtests/test-otp.ts | |
parent | 673b56488e3a07eb6bee6ab6972be46891889d4a (diff) | |
download | wallet-core-4ac0e7eda21f2f9293c8707e4359fb6e4299af08.tar.xz |
harness: skeleton for OTP test
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-otp.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-otp.ts | 41 |
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"]; |