diff options
author | Florian Dold <florian@dold.me> | 2024-02-06 19:35:55 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-06 19:35:55 +0100 |
commit | 6c496c070d47e26034a3e2dd6d14a1a9ea42b729 (patch) | |
tree | 7d9da9321c4d6875ef068cd56b810f58a5f03914 /packages/taler-harness | |
parent | 963aef5366097bfd35647efc4d8b2ce04aa565dc (diff) | |
download | wallet-core-6c496c070d47e26034a3e2dd6d14a1a9ea42b729.tar.xz |
harness: do not follow redirects in certain tests
Diffstat (limited to 'packages/taler-harness')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-merchant-spec-public-orders.ts | 11 |
1 files changed, 7 insertions, 4 deletions
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(); |