diff options
author | imarom <imarom@cisco.com> | 2015-09-16 16:22:48 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-09-16 16:22:48 +0300 |
commit | dd99c3890d3bb7b4aab833927e85648cd6e86c85 (patch) | |
tree | 35712a3a46eab3cde24fbe06ca6426ed351e0e41 /src/rpc-server/commands/trex_rpc_cmd_test.cpp | |
parent | 54f8323b3938bf4ab672cde01a06711bfc522a2e (diff) |
added many tests to the RPC server
also, few tweaks for handling RPC server errors
Diffstat (limited to 'src/rpc-server/commands/trex_rpc_cmd_test.cpp')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_test.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_test.cpp b/src/rpc-server/commands/trex_rpc_cmd_test.cpp index 3153317e..3cdddd31 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_test.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_test.cpp @@ -21,7 +21,6 @@ limitations under the License. #include "trex_rpc_cmds.h" #include <iostream> #include <sstream> -#include <trex_rpc_cmds_table.h> using namespace std; @@ -50,32 +49,3 @@ TrexRpcCmdTestSub::_run(const Json::Value ¶ms, Json::Value &result) { return (TREX_RPC_CMD_OK); } -/** - * ping command - */ -trex_rpc_cmd_rc_e -TrexRpcCmdPing::_run(const Json::Value ¶ms, Json::Value &result) { - - result["result"] = "ACK"; - return (TREX_RPC_CMD_OK); -} - -/** - * query command - */ -trex_rpc_cmd_rc_e -TrexRpcCmdGetReg::_run(const Json::Value ¶ms, Json::Value &result) { - vector<string> cmds; - - TrexRpcCommandsTable::get_instance().query(cmds); - - Json::Value test = Json::arrayValue; - for (auto cmd : cmds) { - test.append(cmd); - } - - result["result"] = test; - - return (TREX_RPC_CMD_OK); -} - |