mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 23:25:53 +00:00
@@ -1486,6 +1486,22 @@ static auto
|
||||
generateTransactionTypeTestValues()
|
||||
{
|
||||
return std::vector<AccountTxTransactionBundle>{
|
||||
AccountTxTransactionBundle{
|
||||
"DIDSet",
|
||||
R"({
|
||||
"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
|
||||
"ledger_index": "validated",
|
||||
"tx_type": "DIDSet"
|
||||
})",
|
||||
"[]"},
|
||||
AccountTxTransactionBundle{
|
||||
"DIDDelete",
|
||||
R"({
|
||||
"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
|
||||
"ledger_index": "validated",
|
||||
"tx_type": "DIDDelete"
|
||||
})",
|
||||
"[]"},
|
||||
AccountTxTransactionBundle{
|
||||
"AccountSet",
|
||||
R"({
|
||||
|
||||
@@ -82,6 +82,14 @@ generateTestValuesForParametersTest()
|
||||
"malformedAddress",
|
||||
"Malformed address."},
|
||||
|
||||
ParamTestCaseBundle{
|
||||
"InvalidDidFormat",
|
||||
R"({
|
||||
"did": "invalid"
|
||||
})",
|
||||
"malformedAddress",
|
||||
"Malformed address."},
|
||||
|
||||
ParamTestCaseBundle{
|
||||
"InvalidAccountRootNotString",
|
||||
R"({
|
||||
@@ -1041,6 +1049,17 @@ generateTestValuesForNormalPathTest()
|
||||
),
|
||||
ripple::keylet::account(GetAccountIDWithString(ACCOUNT)).key,
|
||||
CreateAccountRootObject(ACCOUNT, 0, 1, 1, 1, INDEX1, 1)},
|
||||
NormalPathTestBundle{
|
||||
"DID",
|
||||
fmt::format(
|
||||
R"({{
|
||||
"binary": true,
|
||||
"did": "{}"
|
||||
}})",
|
||||
ACCOUNT
|
||||
),
|
||||
ripple::keylet::did(GetAccountIDWithString(ACCOUNT)).key,
|
||||
CreateDidObject(ACCOUNT, "mydocument", "myURI", "mydata")},
|
||||
NormalPathTestBundle{
|
||||
"DirectoryViaDirRoot",
|
||||
fmt::format(
|
||||
|
||||
Reference in New Issue
Block a user