Skip to content
Snippets Groups Projects
Commit c9492ef0 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Temporarily changed the default state of a drive (will revert this soon)

parent fc6e9111
Branches
Tags
No related merge requests found
......@@ -137,7 +137,7 @@ void castor::tape::tapeserver::daemon::Catalogue::enterDriveConfig(
// Insert it
m_drives[driveConfig.getUnitName()] = new CatalogueDrive(m_netTimeout,
m_log, m_processForker, m_hostName, driveConfig,
DRIVE_STATE_DOWN, m_catalogueConfig, m_sysWrapper);
DRIVE_STATE_UP, m_catalogueConfig, m_sysWrapper);
// Else the drive is already in the catalogue
} else {
castor::exception::Exception ex;
......
......@@ -82,7 +82,7 @@ TEST_F(castor_tape_tapeserver_daemon_CatalogueTest, goodDayPopulate) {
ASSERT_EQ(std::string("DGN1"), unit1Config.getLogicalLibrary());
ASSERT_EQ(std::string("DEV1"), unit1Config.getDevFilename());
ASSERT_EQ(DRIVE_STATE_DOWN, unit1.getState());
ASSERT_EQ(DRIVE_STATE_UP, unit1.getState());
ASSERT_NO_THROW(unit1Config.getLibrarySlot());
ASSERT_EQ(castor::mediachanger::TAPE_LIBRARY_TYPE_MANUAL,
unit1Config.getLibrarySlot().getLibraryType());
......@@ -98,7 +98,7 @@ TEST_F(castor_tape_tapeserver_daemon_CatalogueTest, goodDayPopulate) {
ASSERT_EQ(std::string("DGN2"), unit2Config.getLogicalLibrary());
ASSERT_EQ(std::string("DEV2"), unit2Config.getDevFilename());
ASSERT_EQ(DRIVE_STATE_DOWN, unit2.getState());
ASSERT_EQ(DRIVE_STATE_UP, unit2.getState());
ASSERT_NO_THROW(unit2Config.getLibrarySlot());
ASSERT_EQ(castor::mediachanger::TAPE_LIBRARY_TYPE_MANUAL,
unit2Config.getLibrarySlot().getLibraryType());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment