mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Implement node-to-shard RPC control
This commit is contained in:
@@ -4301,28 +4301,53 @@ static RPCCallTestData const rpcCallTestArray[] = {
|
||||
]
|
||||
})"},
|
||||
|
||||
// nodetoshard_status
|
||||
// node_to_shard
|
||||
// -------------------------------------------------------------------
|
||||
{"nodetoshard_status: minimal.",
|
||||
{"node_to_shard: status.",
|
||||
__LINE__,
|
||||
{
|
||||
"nodetoshard_status",
|
||||
},
|
||||
{"node_to_shard", "status"},
|
||||
RPCCallTestData::no_exception,
|
||||
R"({
|
||||
"method" : "nodetoshard_status",
|
||||
"method" : "node_to_shard",
|
||||
"params" : [
|
||||
{
|
||||
"api_version" : %MAX_API_VER%,
|
||||
"action" : "status"
|
||||
}
|
||||
]
|
||||
})"},
|
||||
{"nodetoshard_status: too many arguments.",
|
||||
{"node_to_shard: start.",
|
||||
__LINE__,
|
||||
{"nodetoshard_status", "extra"},
|
||||
{"node_to_shard", "start"},
|
||||
RPCCallTestData::no_exception,
|
||||
R"({
|
||||
"method" : "nodetoshard_status",
|
||||
"method" : "node_to_shard",
|
||||
"params" : [
|
||||
{
|
||||
"api_version" : %MAX_API_VER%,
|
||||
"action" : "start"
|
||||
}
|
||||
]
|
||||
})"},
|
||||
{"node_to_shard: stop.",
|
||||
__LINE__,
|
||||
{"node_to_shard", "stop"},
|
||||
RPCCallTestData::no_exception,
|
||||
R"({
|
||||
"method" : "node_to_shard",
|
||||
"params" : [
|
||||
{
|
||||
"api_version" : %MAX_API_VER%,
|
||||
"action" : "stop"
|
||||
}
|
||||
]
|
||||
})"},
|
||||
{"node_to_shard: too many arguments.",
|
||||
__LINE__,
|
||||
{"node_to_shard", "start", "stop"},
|
||||
RPCCallTestData::no_exception,
|
||||
R"({
|
||||
"method" : "node_to_shard",
|
||||
"params" : [
|
||||
{
|
||||
"error" : "badSyntax",
|
||||
@@ -4331,6 +4356,19 @@ static RPCCallTestData const rpcCallTestArray[] = {
|
||||
}
|
||||
]
|
||||
})"},
|
||||
{"node_to_shard: invalid argument.",
|
||||
__LINE__,
|
||||
{"node_to_shard", "invalid"},
|
||||
RPCCallTestData::no_exception,
|
||||
R"({
|
||||
"method" : "node_to_shard",
|
||||
"params" : [
|
||||
{
|
||||
"api_version" : %MAX_API_VER%,
|
||||
"action" : "invalid"
|
||||
}
|
||||
]
|
||||
})"},
|
||||
|
||||
// owner_info
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user