22#include <xrpld/core/ConfigSections.h>
24#include <xrpl/beast/unit_test.h>
25#include <xrpl/protocol/jss.h>
44 auto const info = env.
rpc(
"json",
"manifest",
"{ }");
46 info[jss::result][jss::error_message] ==
47 "Missing field 'public_key'.");
51 auto const info = env.
rpc(
57 info[jss::result][jss::error_message] ==
"Invalid parameters.");
68 "n949f75evCHwgyP4fPVgaHqNHxUVN15PsJEZ3B3HnXPcPjcZAoy7";
70 cfg->section(SECTION_VALIDATORS).append(key);
74 auto const info = env.
rpc(
80 BEAST_EXPECT(info[jss::result][jss::requested] == key);
81 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.