From 8b9706e777639682e27f475932d871c33fcc23d4 Mon Sep 17 00:00:00 2001 From: Vladimir Avdeev Date: Fri, 18 Nov 2022 09:49:17 +0300 Subject: [PATCH] Add wallet_password param for NeofsAuthmateSecret Signed-off-by: Vladimir Avdeev --- src/neofs_testlib/cli/neofs_authmate/secret.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/neofs_testlib/cli/neofs_authmate/secret.py b/src/neofs_testlib/cli/neofs_authmate/secret.py index 8826249..8c19eba 100644 --- a/src/neofs_testlib/cli/neofs_authmate/secret.py +++ b/src/neofs_testlib/cli/neofs_authmate/secret.py @@ -8,6 +8,7 @@ class NeofsAuthmateSecret(CliCommand): def obtain( self, wallet: str, + wallet_password: str, peer: str, gate_wallet: str, access_key_id: str, @@ -18,6 +19,7 @@ class NeofsAuthmateSecret(CliCommand): Args: wallet: Path to the wallet. + wallet_password: Wallet password. address: Address of wallet account. peer: Address of neofs peer to connect to. gate_wallet: Path to the wallet. @@ -27,8 +29,9 @@ class NeofsAuthmateSecret(CliCommand): Returns: Command's result. """ - return self._execute( + return self._execute_with_password( "obtain-secret", + wallet_password, **{ param: param_value for param, param_value in locals().items() @@ -39,6 +42,7 @@ class NeofsAuthmateSecret(CliCommand): def issue( self, wallet: str, + wallet_password: str, peer: str, bearer_rules: str, gate_public_key: str, @@ -55,6 +59,7 @@ class NeofsAuthmateSecret(CliCommand): Args: wallet: Path to the wallet. + wallet_password: Wallet password. address: Address of wallet account. peer: Address of a neofs peer to connect to. bearer_rules: Rules for bearer token as plain json string. @@ -75,8 +80,9 @@ class NeofsAuthmateSecret(CliCommand): Returns: Command's result. """ - return self._execute( + return self._execute_with_password( "issue-secret", + wallet_password, **{ param: param_value for param, param_value in locals().items()