![]() |
Project
|
Test BasicCCDBManager header/metadata information functionality with caching. More...
#include <set>#include "CCDB/BasicCCDBManager.h"#include "CCDB/CCDBTimeStampUtils.h"#include "CCDB/CcdbApi.h"#include <boost/test/unit_test.hpp>Go to the source code of this file.
Classes | |
| struct | Fixture< source_T > |
| struct | if_reachable |
Macros | |
| #define | BOOST_TEST_MODULE CCDB |
| #define | BOOST_TEST_MAIN |
| #define | BOOST_TEST_DYN_LINK |
Functions | |
| BOOST_GLOBAL_FIXTURE (Fixture) | |
| BOOST_AUTO_TEST_CASE (testCachedHeaders, *boost::unit_test::precondition(if_reachable())) | |
| BOOST_AUTO_TEST_CASE (testNonCachedHeaders, *boost::unit_test::precondition(if_reachable())) | |
| BOOST_AUTO_TEST_CASE (CacheFirstRetrievalAndHeadersPersistence, *boost::unit_test::precondition(if_reachable())) | |
| BOOST_AUTO_TEST_CASE (FailedFetchDoesNotGiveMetadata, *boost::unit_test::precondition(if_reachable())) | |
| BOOST_AUTO_TEST_CASE (FirstCallWithoutHeadersThenWithHeaders, *boost::unit_test::precondition(if_reachable())) | |
| BOOST_AUTO_TEST_CASE (HeadersAreStableAcrossMultipleHits, *boost::unit_test::precondition(if_reachable())) | |
Variables | |
| std::string | ccdbUrl = "http://ccdb-test.cern.ch:8080" |
| bool | hostReachable = false |
Test BasicCCDBManager header/metadata information functionality with caching.
Definition in file testCcdbApiHeaders.cxx.
| #define BOOST_TEST_DYN_LINK |
Definition at line 19 of file testCcdbApiHeaders.cxx.
| #define BOOST_TEST_MAIN |
Definition at line 18 of file testCcdbApiHeaders.cxx.
| #define BOOST_TEST_MODULE CCDB |
Definition at line 17 of file testCcdbApiHeaders.cxx.
| BOOST_AUTO_TEST_CASE | ( | CacheFirstRetrievalAndHeadersPersistence | , |
| * | boost::unit_test::preconditionif_reachable() | ||
| ) |
━━━━━━━ ARRANGE ━━━━━━━━━
━━━━━━━ACT━━━━━━━━━
━━━━━━━ASSERT━━━━━━━━━
Definition at line 241 of file testCcdbApiHeaders.cxx.
| BOOST_AUTO_TEST_CASE | ( | FailedFetchDoesNotGiveMetadata | , |
| * | boost::unit_test::preconditionif_reachable() | ||
| ) |
━━━━━━━ ARRANGE ━━━━━━━━━
━━━━━━━ ACT ━━━━━━━━━
━━━━━━━ ASSERT ━━━━━━━━━
Definition at line 326 of file testCcdbApiHeaders.cxx.
| BOOST_AUTO_TEST_CASE | ( | FirstCallWithoutHeadersThenWithHeaders | , |
| * | boost::unit_test::preconditionif_reachable() | ||
| ) |
Definition at line 357 of file testCcdbApiHeaders.cxx.
| BOOST_AUTO_TEST_CASE | ( | HeadersAreStableAcrossMultipleHits | , |
| * | boost::unit_test::preconditionif_reachable() | ||
| ) |
Definition at line 386 of file testCcdbApiHeaders.cxx.
| BOOST_AUTO_TEST_CASE | ( | testCachedHeaders | , |
| * | boost::unit_test::preconditionif_reachable() | ||
| ) |
━━━━━━━ ARRANGE ━━━━━━━━━
━━━━━━━━━━━ ACT ━━━━━━━━━━━━
━━━━━━━━━━━ ASSERT ━━━━━━━━━━━━ Check that we got something
Check that the objects are correct
Definition at line 90 of file testCcdbApiHeaders.cxx.
| BOOST_AUTO_TEST_CASE | ( | testNonCachedHeaders | , |
| * | boost::unit_test::preconditionif_reachable() | ||
| ) |
━━━━━━━ ARRANGE ━━━━━━━━━
━━━━━━━━━━━ ACT ━━━━━━━━━━━━
━━━━━━━━━━━ ASSERT ━━━━━━━━━━━ Check that we got something
Check that the objects are correct
Definition at line 172 of file testCcdbApiHeaders.cxx.
| BOOST_GLOBAL_FIXTURE | ( | Fixture | ) |
| std::string ccdbUrl = "http://ccdb-test.cern.ch:8080" |
Definition at line 29 of file testCcdbApiHeaders.cxx.
| bool hostReachable = false |
Definition at line 30 of file testCcdbApiHeaders.cxx.