[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix test expectation in merch
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix test expectation in merchant-refund-api |
Date: |
Wed, 04 Aug 2021 17:47:33 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 17f2132b fix test expectation in merchant-refund-api
17f2132b is described below
commit 17f2132b4a2a0b5f038347814bc859a035b2ad80
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Aug 4 17:47:28 2021 +0200
fix test expectation in merchant-refund-api
---
packages/taler-util/src/talerconfig.ts | 8 ++------
.../src/integrationtests/test-merchant-refund-api.ts | 4 +---
packages/taler-wallet-cli/src/lint.ts | 2 +-
3 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/packages/taler-util/src/talerconfig.ts
b/packages/taler-util/src/talerconfig.ts
index ebc41885..32213f83 100644
--- a/packages/taler-util/src/talerconfig.ts
+++ b/packages/taler-util/src/talerconfig.ts
@@ -613,12 +613,8 @@ export class Configuration {
}
getAmount(section: string, option: string): ConfigValue<AmountJson> {
- const val = (
- this.sectionMap[section] ?? {
- entries: {},
- }
- ).entries[option];
- return new ConfigValue(section, option, val.value, (x) =>
+ const val = this.findEntry(section, option)?.value;
+ return new ConfigValue(section, option, val, (x) =>
Amounts.parseOrThrow(x),
);
}
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 3e505d9c..dc786387 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
@@ -145,9 +145,7 @@ async function testRefundApiWithFulfillmentUrl(
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);
- const fu = publicOrderStatusResp.data.fulfillment_url;
- t.assertTrue(typeof fu === "string" && fu.startsWith("https://example.com"));
+ t.assertTrue(publicOrderStatusResp.status === 403);
}
async function testRefundApiWithFulfillmentMessage(
diff --git a/packages/taler-wallet-cli/src/lint.ts
b/packages/taler-wallet-cli/src/lint.ts
index f7dfefe3..68d383b1 100644
--- a/packages/taler-wallet-cli/src/lint.ts
+++ b/packages/taler-wallet-cli/src/lint.ts
@@ -274,7 +274,7 @@ export async function checkExchangeHttpd(
* Do some basic checks in the configuration of a Taler deployment.
*/
export async function lintExchangeDeployment(): Promise<void> {
- if (process.getuid() != 1) {
+ if (process.getuid() != 0) {
console.log(
"warning: the exchange deployment linter is designed to be run as root",
);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix test expectation in merchant-refund-api,
gnunet <=