@@ -1610,13 +1610,13 @@ def add_arguments(self, parser: ArgumentParser):
16101610 "--wallet-type" ,
16111611 type = str ,
16121612 metavar = "<wallet-type>" ,
1613- default = "basic " ,
1613+ default = "askar " ,
16141614 env_var = "ACAPY_WALLET_TYPE" ,
16151615 help = (
16161616 "Specifies the type of wallet provider to use. "
1617- "Supported internal storage types are 'basic' (memory), ' askar' "
1617+ "Supported internal storage types are 'askar' "
16181618 "and 'askar-anoncreds'."
1619- "The default (if not specified) is 'basic '."
1619+ "The default (if not specified) is 'askar '."
16201620 ),
16211621 )
16221622 parser .add_argument (
@@ -1627,11 +1627,23 @@ def add_arguments(self, parser: ArgumentParser):
16271627 env_var = "ACAPY_WALLET_STORAGE_TYPE" ,
16281628 help = (
16291629 "Specifies the type of wallet backend to use. "
1630- "Supported internal storage types are 'basic ' (memory ), "
1631- "'default' (sqlite), and 'postgres_storage'. The default, "
1630+ "Supported internal storage types are 'default ' (sqlite ), "
1631+ "and 'postgres_storage'. The default, "
16321632 "if not specified, is 'default'."
16331633 ),
16341634 )
1635+ parser .add_argument (
1636+ "--wallet-test" ,
1637+ action = "store_true" ,
1638+ default = False ,
1639+ env_var = "ACAPY_WALLET_TEST" ,
1640+ help = (
1641+ "Using this option will create a wallet with an in-memory askar wallet "
1642+ "storage with a random name. This is useful for testing purposes. "
1643+ "The data will not be persisted after the agent is stopped. The default "
1644+ "is False. "
1645+ ),
1646+ )
16351647 parser .add_argument (
16361648 "--wallet-storage-config" ,
16371649 type = str ,
@@ -1714,6 +1726,8 @@ def get_settings(self, args: Namespace) -> dict:
17141726 settings ["wallet.storage_type" ] = args .wallet_storage_type
17151727 if args .wallet_type :
17161728 settings ["wallet.type" ] = args .wallet_type
1729+ if args .wallet_test :
1730+ settings ["wallet.test" ] = True
17171731 if args .wallet_key_derivation_method :
17181732 settings ["wallet.key_derivation_method" ] = args .wallet_key_derivation_method
17191733 if args .wallet_rekey_derivation_method :
@@ -1731,7 +1745,7 @@ def get_settings(self, args: Namespace) -> dict:
17311745 # check required settings for persistent wallets
17321746 if settings ["wallet.type" ] in ["askar" , "askar-anoncreds" ]:
17331747 # requires name, key
1734- if not args .wallet_name or not args .wallet_key :
1748+ if not args .wallet_test and ( not args . wallet_name or not args .wallet_key ) :
17351749 raise ArgsParseError (
17361750 "Parameters --wallet-name and --wallet-key must be provided "
17371751 "for persistent wallets"
0 commit comments