diff options
author | Florian Dold <florian@dold.me> | 2023-02-20 01:16:31 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-20 01:16:31 +0100 |
commit | 1747d3ac1853f0ec5791ded5ce4711ed3e5a343f (patch) | |
tree | 671667b377eeb9c9a82a397939072a6d1850c734 /packages/taler-harness/src/integrationtests | |
parent | 30b3949d2bd9da6bceddb40f3d1921b95fa80316 (diff) | |
download | wallet-core-1747d3ac1853f0ec5791ded5ce4711ed3e5a343f.tar.xz |
wallet-core: rename p2p requests to something more sensible
Diffstat (limited to 'packages/taler-harness/src/integrationtests')
3 files changed, 11 insertions, 11 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts b/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts index 1d8986436..524d04c94 100644 --- a/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts +++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts @@ -71,7 +71,7 @@ export async function runAgeRestrictionsPeerTest(t: GlobalTestState) { ); const initResp = await wallet.client.call( - WalletApiOperation.InitiatePeerPushPayment, + WalletApiOperation.InitiatePeerPushDebit, { partialContractTerms: { summary: "Hello, World", @@ -84,13 +84,13 @@ export async function runAgeRestrictionsPeerTest(t: GlobalTestState) { await wallet.runUntilDone(); const checkResp = await walletTwo.client.call( - WalletApiOperation.CheckPeerPushPayment, + WalletApiOperation.PreparePeerPushCredit, { talerUri: initResp.talerUri, }, ); - await walletTwo.client.call(WalletApiOperation.AcceptPeerPushPayment, { + await walletTwo.client.call(WalletApiOperation.ConfirmPeerPushCredit, { peerPushPaymentIncomingId: checkResp.peerPushPaymentIncomingId, }); diff --git a/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts b/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts index 15b274e6b..0bab14578 100644 --- a/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts +++ b/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts @@ -53,7 +53,7 @@ export async function runPeerToPeerPullTest(t: GlobalTestState) { ); const resp = await wallet1.client.call( - WalletApiOperation.InitiatePeerPullPayment, + WalletApiOperation.InitiatePeerPullCredit, { exchangeBaseUrl: exchange.baseUrl, partialContractTerms: { @@ -69,7 +69,7 @@ export async function runPeerToPeerPullTest(t: GlobalTestState) { await wallet1.runPending(); const checkResp = await wallet2.client.call( - WalletApiOperation.CheckPeerPullPayment, + WalletApiOperation.PreparePeerPullDebit, { talerUri: resp.talerUri, }, @@ -78,7 +78,7 @@ export async function runPeerToPeerPullTest(t: GlobalTestState) { console.log(`checkResp: ${j2s(checkResp)}`); const acceptResp = await wallet2.client.call( - WalletApiOperation.AcceptPeerPullPayment, + WalletApiOperation.ConfirmPeerPullDebit, { peerPullPaymentIncomingId: checkResp.peerPullPaymentIncomingId, }, diff --git a/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts b/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts index 39d9b9edb..60ccce000 100644 --- a/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts +++ b/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts @@ -56,7 +56,7 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { { const resp = await wallet1.client.call( - WalletApiOperation.InitiatePeerPushPayment, + WalletApiOperation.InitiatePeerPushDebit, { partialContractTerms: { summary: "Hello World 😁😇", @@ -69,7 +69,7 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { console.log(resp); } const resp = await wallet1.client.call( - WalletApiOperation.InitiatePeerPushPayment, + WalletApiOperation.InitiatePeerPushDebit, { partialContractTerms: { summary: "Hello World 🥺", @@ -82,7 +82,7 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { console.log(resp); const checkResp = await wallet2.client.call( - WalletApiOperation.CheckPeerPushPayment, + WalletApiOperation.PreparePeerPushCredit, { talerUri: resp.talerUri, }, @@ -91,7 +91,7 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { console.log(checkResp); const acceptResp = await wallet2.client.call( - WalletApiOperation.AcceptPeerPushPayment, + WalletApiOperation.ConfirmPeerPushCredit, { peerPushPaymentIncomingId: checkResp.peerPushPaymentIncomingId, }, @@ -115,7 +115,7 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { console.log(`txn2: ${j2s(txn2)}`); const ex1 = await t.assertThrowsTalerErrorAsync(async () => { - await wallet1.client.call(WalletApiOperation.InitiatePeerPushPayment, { + await wallet1.client.call(WalletApiOperation.InitiatePeerPushDebit, { partialContractTerms: { summary: "(this will fail)", amount: "TESTKUDOS:15", |