mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
fix: authorized_credential elements in array not objects bug (#1744)
This commit is contained in:
@@ -222,6 +222,21 @@ generateTestValuesForParametersTest()
|
||||
"authorized_credentials not array"
|
||||
},
|
||||
|
||||
ParamTestCaseBundle{
|
||||
"InvalidDepositPreauthJsonAuthorizeCredentialsMalformedString",
|
||||
fmt::format(
|
||||
R"({{
|
||||
"deposit_preauth": {{
|
||||
"owner": "{}",
|
||||
"authorized_credentials": ["C2F2A19C8D0D893D18F18FDCFE13A3ECB41767E48422DF07F2455CDA08FDF09B"]
|
||||
}}
|
||||
}})",
|
||||
ACCOUNT
|
||||
),
|
||||
"malformedAuthorizedCredentials",
|
||||
"authorized_credentials elements in array are not objects."
|
||||
},
|
||||
|
||||
ParamTestCaseBundle{
|
||||
"DepositPreauthBothAuthAndAuthCredentialsDoesNotExists",
|
||||
fmt::format(
|
||||
@@ -273,7 +288,7 @@ generateTestValuesForParametersTest()
|
||||
ACCOUNT
|
||||
),
|
||||
"malformedAuthorizedCredentials",
|
||||
"Requires at least one element in authorized_credentials array"
|
||||
"Requires at least one element in authorized_credentials array."
|
||||
},
|
||||
|
||||
ParamTestCaseBundle{
|
||||
|
||||
Reference in New Issue
Block a user