gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: merchant test: auth is not a


From: gnunet
Subject: [taler-wallet-core] branch master updated: merchant test: auth is not a management API
Date: Thu, 05 Aug 2021 22:56:03 +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 ea0e058b merchant test: auth is not a management API
ea0e058b is described below

commit ea0e058b3403373c1ead9709fe4d2deecaa6ff8b
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Aug 5 22:55:58 2021 +0200

    merchant test: auth is not a management API
---
 packages/taler-wallet-cli/src/integrationtests/harness.ts | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts 
b/packages/taler-wallet-cli/src/integrationtests/harness.ts
index 03485e03..c9c576eb 100644
--- a/packages/taler-wallet-cli/src/integrationtests/harness.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts
@@ -1016,7 +1016,7 @@ export class ExchangeService implements 
ExchangeServiceInterface {
 
     const config = Configuration.load(this.configFilename);
     for (const sectionName of config.getSectionNames()) {
-      if (sectionName.startsWith("EXCHANGE-ACCOUNT")) {
+      if (sectionName.startsWith("EXCHANGE-ACCOUNT-")) {
         const paytoUri = config.getString(sectionName, "payto_uri").required();
         const p = parsePaytoUri(paytoUri);
         if (!p) {
@@ -1156,15 +1156,13 @@ export class MerchantApiClient {
   ) {}
 
   async changeAuth(auth: MerchantAuthConfiguration): Promise<void> {
-    const baseUrl = this.baseUrl;
-    const url = new URL("management/auth", baseUrl);
+    const url = new URL("private/auth", this.baseUrl);
     await axios.post(url.href, auth, {
       headers: this.makeAuthHeader(),
     });
   }
 
   async deleteInstance(instanceId: string) {
-    const baseUrl = this.baseUrl;
     const url = new URL(`management/instances/${instanceId}`, this.baseUrl);
     await axios.delete(url.href, {
       headers: this.makeAuthHeader(),
@@ -1172,8 +1170,7 @@ export class MerchantApiClient {
   }
 
   async createInstance(req: MerchantInstanceConfig): Promise<void> {
-    const baseUrl = this.baseUrl;
-    const url = new URL("management/instances", baseUrl);
+    const url = new URL("management/instances", this.baseUrl);
     await axios.post(url.href, req, {
       headers: this.makeAuthHeader(),
     });

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]