@@ -1610,13 +1610,13 @@ def add_arguments(self, parser: ArgumentParser):
1610
1610
"--wallet-type" ,
1611
1611
type = str ,
1612
1612
metavar = "<wallet-type>" ,
1613
- default = "basic " ,
1613
+ default = "askar " ,
1614
1614
env_var = "ACAPY_WALLET_TYPE" ,
1615
1615
help = (
1616
1616
"Specifies the type of wallet provider to use. "
1617
- "Supported internal storage types are 'basic' (memory), ' askar' "
1617
+ "Supported internal storage types are 'askar' "
1618
1618
"and 'askar-anoncreds'."
1619
- "The default (if not specified) is 'basic '."
1619
+ "The default (if not specified) is 'askar '."
1620
1620
),
1621
1621
)
1622
1622
parser .add_argument (
@@ -1627,11 +1627,23 @@ def add_arguments(self, parser: ArgumentParser):
1627
1627
env_var = "ACAPY_WALLET_STORAGE_TYPE" ,
1628
1628
help = (
1629
1629
"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, "
1632
1632
"if not specified, is 'default'."
1633
1633
),
1634
1634
)
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
+ )
1635
1647
parser .add_argument (
1636
1648
"--wallet-storage-config" ,
1637
1649
type = str ,
@@ -1714,6 +1726,8 @@ def get_settings(self, args: Namespace) -> dict:
1714
1726
settings ["wallet.storage_type" ] = args .wallet_storage_type
1715
1727
if args .wallet_type :
1716
1728
settings ["wallet.type" ] = args .wallet_type
1729
+ if args .wallet_test :
1730
+ settings ["wallet.test" ] = True
1717
1731
if args .wallet_key_derivation_method :
1718
1732
settings ["wallet.key_derivation_method" ] = args .wallet_key_derivation_method
1719
1733
if args .wallet_rekey_derivation_method :
@@ -1731,7 +1745,7 @@ def get_settings(self, args: Namespace) -> dict:
1731
1745
# check required settings for persistent wallets
1732
1746
if settings ["wallet.type" ] in ["askar" , "askar-anoncreds" ]:
1733
1747
# 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 ) :
1735
1749
raise ArgsParseError (
1736
1750
"Parameters --wallet-name and --wallet-key must be provided "
1737
1751
"for persistent wallets"
0 commit comments