12#define BOOST_TEST_MODULE CCDB
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
18#include <boost/test/unit_test.hpp>
24namespace utf = boost::unit_test;
28static string basePath;
38 ccdbUrl =
"https://localhost:22,https://localhost:8080,http://ccdb-test.cern.ch:8080";
40 cout <<
"ccdb url: " <<
ccdbUrl << endl;
43 basePath =
string(
"Test/pid") + getpid() +
"/";
44 cout <<
"Path we will use in this test suite : " + basePath << endl;
50 map<string, string> metadata;
53 cout <<
"Test data truncated (" << basePath <<
")" << endl;
77 std::cout <<
"*** " << boost::unit_test::framework::current_test_case().p_name <<
" ***" << std::endl;
89 TH1F h1(
"th1name",
"th1name", 100, 0, 99);
90 h1.FillRandom(
"gaus", 10000);
92 cout <<
"ccdb/TObject/TEST" << endl;
94 f.api.storeAsTFile(&h1,
"ccdb/TObject/TEST",
f.metadata, timestamp);
96 TObject* returnResult =
f.api.retrieve(
"ccdb/TObject/TEST/" +
to_string(timestamp),
f.metadata, timestamp);
void init(std::string const &hosts)
bool isHostReachable() const
void truncate(std::string const &path) const
GLsizei const GLchar *const * string
information complementary to a CCDB object (path, metadata, startTimeValidity, endTimeValidity etc)
BOOST_AUTO_TEST_CASE(asynch_schedule_test)
long getCurrentTimestamp()
returns the timestamp in long corresponding to "now"
Defining DataPointCompositeObject explicitly as copiable.
std::string to_string(gsl::span< T, Size > span)
tt::assertion_result operator()(utf::test_unit_id)
map< string, string > metadata
BOOST_GLOBAL_FIXTURE(Fixture)
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())