aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-07-27 07:55:45 +0200
committerms <ms@taler.net>2021-07-27 07:55:45 +0200
commitd591933890ffb23ecaf23a5da85c41ac95416ffa (patch)
tree5a3ebe65f8fbd00eaefc3702bd58a39c1aedc386 /packages/taler-wallet-cli
parent375b3af7e8f71b84baafb9eb261697294ac5b9eb (diff)
(sandbox) key-rotation command
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/libeufin.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
index 867de7068..037ba1163 100644
--- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
@@ -699,6 +699,14 @@ export class LibeufinCli {
}
export namespace LibeufinSandboxApi {
+ export async function rotateKeys(
+ libeufinSandboxService: LibeufinSandboxServiceInterface,
+ hostID: string,
+ ) {
+ const baseUrl = libeufinSandboxService.baseUrl;
+ let url = new URL(`admin/ebics/hosts/${hostID}/rotate-keys`, baseUrl);
+ await axios.post(url.href);
+ }
export async function createEbicsHost(
libeufinSandboxService: LibeufinSandboxServiceInterface,
hostID: string,