mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 20:05:51 +00:00
test: add non-admin test for simulate (#1893)
This commit is contained in:
@@ -105,7 +105,15 @@ generateTestValuesForParametersTest()
|
|||||||
.called = 1,
|
.called = 1,
|
||||||
.isAdmin = !isAdmin,
|
.isAdmin = !isAdmin,
|
||||||
.expected = shouldForward},
|
.expected = shouldForward},
|
||||||
{.testName = "ShouldForwardReturnsTrueSimulate",
|
{.testName = "ShouldForwardReturnsTrueIsNotAdminSimulate",
|
||||||
|
.apiVersion = 1u,
|
||||||
|
.method = "simulate",
|
||||||
|
.testJson = "{}",
|
||||||
|
.mockedIsClioOnly = !isClioOnly,
|
||||||
|
.called = 1,
|
||||||
|
.isAdmin = !isAdmin,
|
||||||
|
.expected = shouldForward},
|
||||||
|
{.testName = "ShouldForwardReturnsTrueIsAdminSimulate",
|
||||||
.apiVersion = 1u,
|
.apiVersion = 1u,
|
||||||
.method = "simulate",
|
.method = "simulate",
|
||||||
.testJson = "{}",
|
.testJson = "{}",
|
||||||
@@ -113,7 +121,15 @@ generateTestValuesForParametersTest()
|
|||||||
.called = 1,
|
.called = 1,
|
||||||
.isAdmin = isAdmin,
|
.isAdmin = isAdmin,
|
||||||
.expected = shouldForward},
|
.expected = shouldForward},
|
||||||
{.testName = "ShouldForwardReturnsTrueRipplePathFind",
|
{.testName = "ShouldForwardReturnsTrueIsNotAdminRipplePathFind",
|
||||||
|
.apiVersion = 2u,
|
||||||
|
.method = "ripple_path_find",
|
||||||
|
.testJson = R"({"force_forward": true})",
|
||||||
|
.mockedIsClioOnly = !isClioOnly,
|
||||||
|
.called = 1,
|
||||||
|
.isAdmin = !isAdmin,
|
||||||
|
.expected = shouldForward},
|
||||||
|
{.testName = "ShouldForwardReturnsTrueIsAdminRipplePathFind",
|
||||||
.apiVersion = 2u,
|
.apiVersion = 2u,
|
||||||
.method = "ripple_path_find",
|
.method = "ripple_path_find",
|
||||||
.testJson = R"({"force_forward": true})",
|
.testJson = R"({"force_forward": true})",
|
||||||
|
|||||||
Reference in New Issue
Block a user