diff options
author | Florian Dold <florian@dold.me> | 2021-03-02 20:20:51 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-03-02 20:20:51 +0100 |
commit | 9c2440718d566bf28a61c732849a3aa5d3ad82bb (patch) | |
tree | a5b01ae5ad50a4c0ce88f798092ce24dfaa692f1 /packages/taler-wallet-cli/src/integrationtests/harness.ts | |
parent | 81be4aacd80689542367b1570d4069cba3220ae6 (diff) | |
download | wallet-core-9c2440718d566bf28a61c732849a3aa5d3ad82bb.tar.xz |
test merchant's instance detail response
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/harness.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/harness.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts b/packages/taler-wallet-cli/src/integrationtests/harness.ts index fbc67bb5a..cb8b59a5c 100644 --- a/packages/taler-wallet-cli/src/integrationtests/harness.ts +++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts @@ -1194,6 +1194,14 @@ export class MerchantApiClient { return resp.data; } + async getInstanceFullDetails(instanceId: string): Promise<any> { + const url = new URL(`private/instances/${instanceId}`, this.baseUrl); + const resp = await axios.get(url.href, { + headers: this.makeAuthHeader(), + }); + return resp.data; + } + makeAuthHeader(): Record<string, string> { switch (this.auth.method) { case "external": |