Commit e67f1d65 authored by Cedric Caffy's avatar Cedric Caffy
Browse files

Corrected valgrind error for the DataTransferConfig::tapeLoadTimeout attribute...

Corrected valgrind error for the DataTransferConfig::tapeLoadTimeout attribute not set in the unit tests
parent 8fb87585
......@@ -537,6 +537,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionGooddayRecall) {
castorConf.bulkRequestRecallMaxBytes = UINT64_C(100)*1000*1000*1000;
castorConf.bulkRequestRecallMaxFiles = 1000;
castorConf.nbDiskThreads = 1;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -755,6 +756,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionWrongRecall) {
castorConf.bulkRequestRecallMaxBytes = UINT64_C(100)*1000*1000*1000;
castorConf.bulkRequestRecallMaxFiles = 1000;
castorConf.nbDiskThreads = 1;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -947,6 +949,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionRAORecall) {
castorConf.bulkRequestRecallMaxFiles = MAX_BULK_RECALLS - 1;
castorConf.nbDiskThreads = 1;
castorConf.useRAO = true;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -1143,6 +1146,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionRAORecallLinearAlgorithm) {
castorConf.nbDiskThreads = 1;
castorConf.useRAO = true;
castorConf.raoLtoAlgorithm = "linear";
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -1338,6 +1342,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionRAORecallRAOAlgoDoesNotExistS
castorConf.bulkRequestRecallMaxFiles = MAX_BULK_RECALLS - 1;
castorConf.nbDiskThreads = 1;
castorConf.useRAO = true;
castorConf.tapeLoadTimeout = 300;
castorConf.raoLtoAlgorithm = "DOES_NOT_EXIST";
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
......@@ -1536,6 +1541,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionRAORecallSLTFRAOAlgorithm) {
castorConf.bulkRequestRecallMaxFiles = MAX_BULK_RECALLS - 1;
castorConf.nbDiskThreads = 1;
castorConf.useRAO = true;
castorConf.tapeLoadTimeout = 300;
castorConf.raoLtoAlgorithm = "sltf";
castorConf.raoLtoAlgorithmOptions = "cost_heuristic_name:cta";
cta::log::DummyLogger dummyLog("dummy", "dummy");
......@@ -1726,6 +1732,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionNoSuchDrive) {
// 8) Create the data transfer session
DataTransferConfig castorConf;
castorConf.bufsz = 1024;
castorConf.tapeLoadTimeout = 300;
castorConf.nbBufs = 10;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
......@@ -1891,6 +1898,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionFailtoMount) {
castorConf.bulkRequestRecallMaxBytes = UINT64_C(100)*1000*1000*1000;
castorConf.bulkRequestRecallMaxFiles = 1000;
castorConf.nbDiskThreads = 3;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -2037,6 +2045,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionGooddayMigration) {
castorConf.bulkRequestMigrationMaxBytes = UINT64_C(100)*1000*1000*1000;
castorConf.bulkRequestMigrationMaxFiles = 1000;
castorConf.nbDiskThreads = 1;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -2201,6 +2210,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionMissingFilesMigration) {
castorConf.nbDiskThreads = 1;
castorConf.maxBytesBeforeFlush = 9999999;
castorConf.maxFilesBeforeFlush = 9999999;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -2370,6 +2380,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionTapeFullMigration) {
castorConf.bulkRequestMigrationMaxBytes = UINT64_C(100)*1000*1000*1000;
castorConf.bulkRequestMigrationMaxFiles = 1000;
castorConf.nbDiskThreads = 1;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -2544,6 +2555,7 @@ TEST_P(DataTransferSessionTest, DataTransferSessionTapeFullOnFlushMigration) {
castorConf.bulkRequestMigrationMaxBytes = UINT64_C(100)*1000*1000*1000;
castorConf.bulkRequestMigrationMaxFiles = 1000;
castorConf.nbDiskThreads = 1;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCap capUtils;
......@@ -2679,6 +2691,7 @@ TEST_P(DataTransferSessionTest, CleanerSessionFailsShouldPutTheDriveDown) {
castorConf.bulkRequestMigrationMaxBytes = UINT64_C(100)*1000*1000*1000;
castorConf.bulkRequestMigrationMaxFiles = 1000;
castorConf.nbDiskThreads = 1;
castorConf.tapeLoadTimeout = 300;
cta::log::DummyLogger dummyLog("dummy", "dummy");
cta::mediachanger::MediaChangerFacade mc(dummyLog);
cta::server::ProcessCapDummy capUtils;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment