Skip to content

Commit f8f5d1e

Browse files
mrtineidektf
authored andcommitted
Add token for the test CCDB instance
Before the test instance did not need a token. This has changed, which broke tests that relied on hardcoded HTTP, and not HTTPS. Now the test instance redirects to HTTPS and we need a token.
1 parent 2e26434 commit f8f5d1e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

CCDB/src/CcdbApi.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ void CcdbApi::init(std::string const& host)
213213
snapshotReport += ')';
214214
}
215215

216-
mNeedAlienToken = (host.find("https://") != std::string::npos) || (host.find("alice-ccdb.cern.ch") != std::string::npos);
217-
216+
mNeedAlienToken = (host.find("https://") != std::string::npos) || (host.find("alice-ccdb.cern.ch") != std::string::npos) || (host.find("ccdb-test.cern.ch") != std::string::npos);
218217
// Set the curl timeout. It can be forced with an env var or it has different defaults based on the deployment mode.
219218
if (getenv("ALICEO2_CCDB_CURL_TIMEOUT_DOWNLOAD")) {
220219
auto timeout = atoi(getenv("ALICEO2_CCDB_CURL_TIMEOUT_DOWNLOAD"));

0 commit comments

Comments
 (0)