diff options
3 files changed, 5 insertions, 0 deletions
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" }); |