aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-04 13:45:24 +0200
committerFlorian Dold <florian@dold.me>2021-08-04 13:45:24 +0200
commit18c8cebbcd85e7345607572be4c66dff940ad776 (patch)
treeab47222c87f6f9fbce47fa15d569d0197a100264 /packages/taler-wallet-cli/src
parentec0ebb09e2829a6819c497a683aef9842d7ca25a (diff)
add test to righ test suite
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts b/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts
index 53a6b1670..3e505d9ca 100644
--- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts
@@ -25,12 +25,12 @@ import {
WalletCli,
ExchangeServiceInterface,
} from "./harness";
+import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
import {
- createSimpleTestkudosEnvironment,
- withdrawViaBank,
- SimpleTestEnvironment,
-} from "./helpers";
-import { URL, durationFromSpec, PreparePayResultType } from "@gnu-taler/taler-util";
+ URL,
+ durationFromSpec,
+ PreparePayResultType,
+} from "@gnu-taler/taler-util";
import axios from "axios";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
@@ -138,10 +138,11 @@ async function testRefundApiWithFulfillmentUrl(
`orders/${orderId}`,
merchant.makeInstanceBaseUrl(),
);
-
+ console.log(`requesting order status via '${publicOrderStatusUrl.href}'`);
publicOrderStatusResp = await axios.get(publicOrderStatusUrl.href, {
validateStatus: () => true,
});
+ console.log(publicOrderStatusResp.status);
console.log(publicOrderStatusResp.data);
// We didn't give any authentication, so we should get a fulfillment URL back
t.assertTrue(publicOrderStatusResp.status === 202);
@@ -293,3 +294,5 @@ export async function runMerchantRefundApiTest(t: GlobalTestState) {
merchant,
});
}
+
+runMerchantRefundApiTest.suites = ["merchant"];