5#include <xrpld/core/ConfigSections.h> 
    7#include <xrpl/beast/unit_test.h> 
    8#include <xrpl/protocol/jss.h> 
   27            auto const info = env.
rpc(
"json", 
"manifest", 
"{ }");
 
   29                info[jss::result][jss::error_message] ==
 
   30                "Missing field 'public_key'.");
 
   34            auto const info = env.
rpc(
 
   40                info[jss::result][jss::error_message] == 
"Invalid parameters.");
 
 
   51            "n949f75evCHwgyP4fPVgaHqNHxUVN15PsJEZ3B3HnXPcPjcZAoy7";
 
   53                    cfg->section(SECTION_VALIDATORS).append(key);
 
   57            auto const info = env.
rpc(
 
   63            BEAST_EXPECT(info[jss::result][jss::requested] == key);
 
   64            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.