From 2b9686ccc69d39140d83efe0bfc6ebb2b77ff140 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 16 Jul 2021 10:12:20 -0300 Subject: [PATCH] added missing implementation in wallet cli --- packages/taler-wallet-cli/src/index.ts | 2 ++ .../src/integrationtests/test-wallet-backup-basic.ts | 2 ++ .../src/integrationtests/test-wallet-backup-doublespend.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index ddcf6a645..ab807cbb7 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -577,12 +577,14 @@ backupCli backupCli .subcommand("addProvider", "add-provider") .requiredArgument("url", clk.STRING) + .maybeArgument("name", clk.STRING) .flag("activate", ["--activate"]) .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: args.addProvider.url, activate: args.addProvider.activate, + name: args.addProvider.name || args.addProvider.url, }); }); }); diff --git a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts index 3342a560b..7debfe6b6 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts @@ -53,6 +53,7 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: sync.baseUrl, activate: false, + name: sync.baseUrl, }); { @@ -63,6 +64,7 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: sync.baseUrl, activate: true, + name: sync.baseUrl, }); { diff --git a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts index 7d3c5f6dc..ab2687fc3 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts @@ -58,6 +58,7 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: sync.baseUrl, activate: true, + name: sync.baseUrl, }); await withdrawViaBank(t, { wallet, bank, exchange, amount: "TESTKUDOS:10" });