@@ -39,8 +39,7 @@ using namespace o2::quality_control::core;
3939using namespace o2 ::quality_control::repository;
4040using namespace std ;
4141
42- const std::string CCDB_ENDPOINT = " ccdb-test.cern.ch:8080" ; // "localhost:8888";//
43- std::unordered_map<std::string, std::string> Objects;
42+ const std::string CCDB_ENDPOINT = " ccdb-test.cern.ch:8080" ;
4443
4544/* *
4645 * Fixture for the tests, i.e. code is ran in every test that uses it, i.e. it is like a setup and teardown for tests.
@@ -66,24 +65,18 @@ BOOST_AUTO_TEST_CASE(ccdb_create)
6665 f.backend ->truncate (" my/task" , " *" );
6766}
6867
69- // this one sporadically fails when retrieving the list of objects under the "qc" directory
70- /*
7168BOOST_AUTO_TEST_CASE (ccdb_getobjects_name)
7269{
7370 test_fixture f;
7471
7572 CcdbDatabase* ccdb = static_cast <CcdbDatabase*>(f.backend .get ());
7673 ILOG (Info) << " getListing()" << ENDM ;
77- auto tasks = ccdb->getListing();
78- for (auto& task : tasks) {
79- ILOG(Info) << "getPublishedObjectNames of task " << task << ENDM;
80- auto objects = f.backend->getPublishedObjectNames(task);
81- for (auto& object : objects) {
82- Objects.insert({ task, object });
83- }
84- }
74+ auto tasks = ccdb->getListing (" /qc" );
75+ BOOST_CHECK_GT (tasks.size (), 0 ); // we know that there are a few
76+ // print but only for TST
77+ auto objects = f.backend ->getPublishedObjectNames (" /qc/TST" );
78+ BOOST_CHECK_GT (objects.size (), 0 );
8579}
86- */
8780
8881long oldTimestamp;
8982
0 commit comments