21#include <xrpld/core/ConfigSections.h>
22#include <xrpl/beast/unit_test.h>
23#include <xrpl/protocol/jss.h>
42 auto const info = env.
rpc(
"json",
"manifest",
"{ }");
44 info[jss::result][jss::error_message] ==
45 "Missing field 'public_key'.");
49 auto const info = env.
rpc(
55 info[jss::result][jss::error_message] ==
"Invalid parameters.");
66 "n949f75evCHwgyP4fPVgaHqNHxUVN15PsJEZ3B3HnXPcPjcZAoy7";
68 cfg->section(SECTION_VALIDATORS).append(key);
72 auto const info = env.rpc(
78 BEAST_EXPECT(info[jss::result][jss::requested] == key);
79 BEAST_EXPECT(info[jss::result][jss::status] ==
"success");
testcase_t testcase
Memberspace for declaring test cases.
void run() override
Runs the suite.
A transaction testing environment.
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Set the expected result code for a JTx The test will fail if the code doesn't match.
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.