tag tests

This commit is contained in:
Florian Dold 2021-05-21 11:47:20 +02:00
parent 6b1aea426a
commit 4414f738ef
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
23 changed files with 53 additions and 4 deletions

View File

@ -151,3 +151,5 @@ export async function runPayAbortTest(t: GlobalTestState) {
t.assertDeepEqual(txTypes, ["withdrawal", "payment", "refund"]);
}
runPayAbortTest.suites = ["wallet"];

View File

@ -209,3 +209,5 @@ export async function runPayPaidTest(t: GlobalTestState) {
t.assertTrue(numPaidRequested == 1);
t.assertTrue(numPayRequested == 0);
}
runPayPaidTest.suites = ["wallet"];

View File

@ -19,9 +19,7 @@
*/
import { GlobalTestState, MerchantPrivateApi, WalletCli } from "./harness";
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
import {
PreparePayResultType,
} from "@gnu-taler/taler-util";
import { PreparePayResultType } from "@gnu-taler/taler-util";
import { TalerErrorCode } from "@gnu-taler/taler-util";
/**
@ -105,3 +103,5 @@ export async function runPaymentClaimTest(t: GlobalTestState) {
await t.shutdown();
}
runPaymentClaimTest.suites = ["wallet"];

View File

@ -208,3 +208,5 @@ export async function runPaymentFaultTest(t: GlobalTestState) {
t.assertTrue(orderStatus.order_status === "paid");
}
runPaymentFaultTest.suites = ["wallet"];

View File

@ -101,3 +101,5 @@ export async function runPaymentIdempotencyTest(t: GlobalTestState) {
await t.shutdown();
}
runPaymentIdempotencyTest.suites = ["wallet"];

View File

@ -158,3 +158,5 @@ export async function runPaymentMultipleTest(t: GlobalTestState) {
await t.shutdown();
}
runPaymentMultipleTest.suites = ["wallet"];

View File

@ -27,7 +27,13 @@ import {
FaultInjectionRequestContext,
FaultInjectionResponseContext,
} from "./faultInjection";
import { codecForMerchantOrderStatusUnpaid, ConfirmPayResultType, PreparePayResultType, TalerErrorCode, TalerErrorDetails } from "@gnu-taler/taler-util";
import {
codecForMerchantOrderStatusUnpaid,
ConfirmPayResultType,
PreparePayResultType,
TalerErrorCode,
TalerErrorDetails,
} from "@gnu-taler/taler-util";
import { URL } from "@gnu-taler/taler-wallet-core";
/**
@ -163,3 +169,5 @@ export async function runPaymentTransientTest(t: GlobalTestState) {
);
}
}
runPaymentTransientTest.suites = ["wallet"];

View File

@ -51,3 +51,5 @@ export async function runPaymentTest(t: GlobalTestState) {
await wallet.runUntilDone();
}
runPaymentTest.suites = ["wallet"];

View File

@ -231,3 +231,5 @@ export async function runPaywallFlowTest(t: GlobalTestState) {
t.assertTrue(pubUnpaidStatus.already_paid_order_id === firstOrderId);
}
runPaywallFlowTest.suites = ["wallet"];

View File

@ -98,3 +98,5 @@ export async function runRefundAutoTest(t: GlobalTestState) {
await t.shutdown();
}
runRefundAutoTest.suites = ["wallet"];

View File

@ -125,3 +125,5 @@ export async function runRefundGoneTest(t: GlobalTestState) {
await t.shutdown();
}
runRefundGoneTest.suites = ["wallet"];

View File

@ -188,3 +188,5 @@ export async function runRefundIncrementalTest(t: GlobalTestState) {
await t.shutdown();
}
runRefundIncrementalTest.suites = ["wallet"];

View File

@ -101,3 +101,5 @@ export async function runRefundTest(t: GlobalTestState) {
await t.shutdown();
}
runRefundTest.suites = ["wallet"];

View File

@ -202,3 +202,4 @@ export async function runRevocationTest(t: GlobalTestState) {
}
runRevocationTest.timeoutMs = 120000;
runRevocationTest.suites = ["wallet"];

View File

@ -201,3 +201,5 @@ export async function runTimetravelAutorefreshTest(t: GlobalTestState) {
t.assertTrue(cpr.type === ConfirmPayResultType.Done);
}
runTimetravelAutorefreshTest.suites = ["wallet"];

View File

@ -88,3 +88,5 @@ export async function runTimetravelWithdrawTest(t: GlobalTestState) {
// await wallet.runUntilDone({ maxRetries: 5 });
}
runTimetravelWithdrawTest.suites = ["wallet"];

View File

@ -121,3 +121,5 @@ export async function runTippingTest(t: GlobalTestState) {
await doTip();
await doTip();
}
runTippingTest.suites = ["wallet", "wallet-tipping"];

View File

@ -139,3 +139,5 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) {
t.assertAmountEquals(bal2.balances[0].available, "TESTKUDOS:23.82");
}
}
runWalletBackupBasicTest.suites = ["wallet", "wallet-backup"];

View File

@ -145,3 +145,5 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) {
await wallet2.runUntilDone();
}
}
runWalletBackupDoublespendTest.suites = ["wallet", "wallet-backup"];

View File

@ -163,3 +163,5 @@ export async function runWallettestingTest(t: GlobalTestState) {
await t.shutdown();
}
runWallettestingTest.suites = ["wallet"];

View File

@ -65,3 +65,5 @@ export async function runWithdrawalAbortBankTest(t: GlobalTestState) {
await t.shutdown();
}
runWithdrawalAbortBankTest.suites = ["wallet"];

View File

@ -69,3 +69,5 @@ export async function runWithdrawalBankIntegratedTest(t: GlobalTestState) {
await t.shutdown();
}
runWithdrawalBankIntegratedTest.suites = ["wallet"];

View File

@ -76,3 +76,5 @@ export async function runTestWithdrawalManualTest(t: GlobalTestState) {
await t.shutdown();
}
runTestWithdrawalManualTest.suites = ["wallet"];