Implement node-to-shard RPC control

This commit is contained in:
Devon White
2021-04-07 12:03:33 -04:00
committed by manojsdoshi
parent 0320d2169e
commit 00a4c3a478
14 changed files with 666 additions and 95 deletions

View File

@@ -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
// ------------------------------------------------------------------