add test to righ test suite

This commit is contained in:
Florian Dold 2021-08-04 13:45:24 +02:00
parent ec0ebb09e2
commit 18c8cebbcd
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -25,12 +25,12 @@ import {
WalletCli, WalletCli,
ExchangeServiceInterface, ExchangeServiceInterface,
} from "./harness"; } from "./harness";
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
import { import {
createSimpleTestkudosEnvironment, URL,
withdrawViaBank, durationFromSpec,
SimpleTestEnvironment, PreparePayResultType,
} from "./helpers"; } from "@gnu-taler/taler-util";
import { URL, durationFromSpec, PreparePayResultType } from "@gnu-taler/taler-util";
import axios from "axios"; import axios from "axios";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
@ -138,10 +138,11 @@ async function testRefundApiWithFulfillmentUrl(
`orders/${orderId}`, `orders/${orderId}`,
merchant.makeInstanceBaseUrl(), merchant.makeInstanceBaseUrl(),
); );
console.log(`requesting order status via '${publicOrderStatusUrl.href}'`);
publicOrderStatusResp = await axios.get(publicOrderStatusUrl.href, { publicOrderStatusResp = await axios.get(publicOrderStatusUrl.href, {
validateStatus: () => true, validateStatus: () => true,
}); });
console.log(publicOrderStatusResp.status);
console.log(publicOrderStatusResp.data); console.log(publicOrderStatusResp.data);
// We didn't give any authentication, so we should get a fulfillment URL back // We didn't give any authentication, so we should get a fulfillment URL back
t.assertTrue(publicOrderStatusResp.status === 202); t.assertTrue(publicOrderStatusResp.status === 202);
@ -293,3 +294,5 @@ export async function runMerchantRefundApiTest(t: GlobalTestState) {
merchant, merchant,
}); });
} }
runMerchantRefundApiTest.suites = ["merchant"];