mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-21 04:05:51 +00:00
@@ -116,6 +116,7 @@ public:
|
|||||||
"manifest",
|
"manifest",
|
||||||
"channel_authorize",
|
"channel_authorize",
|
||||||
"channel_verify",
|
"channel_verify",
|
||||||
|
"simulate",
|
||||||
};
|
};
|
||||||
|
|
||||||
return kPROXIED_COMMANDS.contains(method);
|
return kPROXIED_COMMANDS.contains(method);
|
||||||
|
|||||||
@@ -105,6 +105,22 @@ generateTestValuesForParametersTest()
|
|||||||
.called = 1,
|
.called = 1,
|
||||||
.isAdmin = !isAdmin,
|
.isAdmin = !isAdmin,
|
||||||
.expected = shouldForward},
|
.expected = shouldForward},
|
||||||
|
{.testName = "ShouldForwardReturnsTrueSimulate",
|
||||||
|
.apiVersion = 1u,
|
||||||
|
.method = "simulate",
|
||||||
|
.testJson = "{}",
|
||||||
|
.mockedIsClioOnly = !isClioOnly,
|
||||||
|
.called = 1,
|
||||||
|
.isAdmin = isAdmin,
|
||||||
|
.expected = shouldForward},
|
||||||
|
{.testName = "ShouldForwardReturnsTrueRipplePathFind",
|
||||||
|
.apiVersion = 2u,
|
||||||
|
.method = "ripple_path_find",
|
||||||
|
.testJson = R"({"force_forward": true})",
|
||||||
|
.mockedIsClioOnly = !isClioOnly,
|
||||||
|
.called = 1,
|
||||||
|
.isAdmin = isAdmin,
|
||||||
|
.expected = shouldForward},
|
||||||
{.testName = "ShouldForwardReturnsTrueIfCurrentLedgerSpecified",
|
{.testName = "ShouldForwardReturnsTrueIfCurrentLedgerSpecified",
|
||||||
.apiVersion = 2u,
|
.apiVersion = 2u,
|
||||||
.method = "anymethod",
|
.method = "anymethod",
|
||||||
|
|||||||
Reference in New Issue
Block a user