17#define BOOST_TEST_MODULE CCDB
18#define BOOST_TEST_MAIN
19#define BOOST_TEST_DYN_LINK
20#define BOOST_BIND_GLOBAL_PLACEHOLDERS
26#include <boost/test/unit_test.hpp>
40#include <boost/property_tree/json_parser.hpp>
41#include <boost/property_tree/ptree.hpp>
42#include <boost/foreach.hpp>
43#include <boost/optional/optional.hpp>
47namespace utf = boost::unit_test;
51static string basePath;
61 ccdbUrl =
"http://ccdb-test.cern.ch:8080";
63 cout <<
"ccdb url: " <<
ccdbUrl << endl;
65 char hostname[_POSIX_HOST_NAME_MAX];
66 gethostname(hostname, _POSIX_HOST_NAME_MAX);
67 basePath =
string(
"Test/") + hostname +
"/pid" + getpid() +
"/";
68 cout <<
"Path we will use in this test suite : " + basePath << endl;
74 map<string, string> metadata;
77 cout <<
"Test data truncated (" << basePath <<
")" << endl;
101 std::cout <<
"*** " << boost::unit_test::framework::current_test_case().p_name <<
" ***" << std::endl;
128 std::map<std::string, std::string> headers;
129 std::map<std::string, std::string> meta;
constexpr int p1()
constexpr to accelerate the coordinates changing
void init(std::string const &hosts)
bool isHostReachable() const
void truncate(std::string const &path) const
static const PVertexerParams & Instance()
static void updateFromString(std::string const &)
GLsizei const GLchar *const * string
information complementary to a CCDB object (path, metadata, startTimeValidity, endTimeValidity etc)
long getCurrentTimestamp()
returns the timestamp in long corresponding to "now"
Defining DataPointCompositeObject explicitly as copiable.
tt::assertion_result operator()(utf::test_unit_id)
map< string, string > metadata
BOOST_GLOBAL_FIXTURE(Fixture)
BOOST_AUTO_TEST_CASE(testConfigParamRetrieval, *utf::precondition(if_reachable()))