fix test expectation in merchant-refund-api
This commit is contained in:
parent
f88e14f66d
commit
17f2132b4a
@ -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),
|
||||
);
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -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",
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user