From 6c496c070d47e26034a3e2dd6d14a1a9ea42b729 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 6 Feb 2024 19:35:55 +0100 Subject: harness: do not follow redirects in certain tests --- .../src/integrationtests/test-merchant-spec-public-orders.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'packages/taler-harness') diff --git a/packages/taler-harness/src/integrationtests/test-merchant-spec-public-orders.ts b/packages/taler-harness/src/integrationtests/test-merchant-spec-public-orders.ts index 21e2b4a4e..8e664dfa9 100644 --- a/packages/taler-harness/src/integrationtests/test-merchant-spec-public-orders.ts +++ b/packages/taler-harness/src/integrationtests/test-merchant-spec-public-orders.ts @@ -297,8 +297,11 @@ async function testWithClaimToken( url.searchParams.set("session_id", sessionId); const httpResp = await httpLib.fetch(url.href, { headers: { Accept: "text/html" }, + redirect: "manual", }); - console.log(`requesting GET ${url.href}, expected 302 got ${httpResp.status}`); + console.log( + `requesting GET ${url.href}, expected 302 got ${httpResp.status}`, + ); t.assertDeepEqual(httpResp.status, 302); const location = httpResp.headers.get("Location"); console.log("location header:", location); @@ -554,6 +557,7 @@ async function testWithoutClaimToken( url.searchParams.set("session_id", sessionId); const httpResp = await httpLib.fetch(url.href, { headers: { Accept: "text/html" }, + redirect: "manual", }); t.assertDeepEqual(httpResp.status, 302); const location = httpResp.headers.get("Location"); @@ -569,9 +573,8 @@ async function testWithoutClaimToken( * specification of the endpoint. */ export async function runMerchantSpecPublicOrdersTest(t: GlobalTestState) { - const { bank, exchange, merchant } = await createSimpleTestkudosEnvironmentV2( - t, - ); + const { bank, exchange, merchant } = + await createSimpleTestkudosEnvironmentV2(t); // Base URL for the default instance. const merchantBaseUrl = merchant.makeInstanceBaseUrl(); -- cgit v1.2.3