Commit f0d7aa95 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

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

parent 92e60927
...@@ -137,7 +137,7 @@ void castor::tape::tapeserver::daemon::Catalogue::enterDriveConfig( ...@@ -137,7 +137,7 @@ void castor::tape::tapeserver::daemon::Catalogue::enterDriveConfig(
// Insert it // Insert it
m_drives[driveConfig.getUnitName()] = new CatalogueDrive(m_netTimeout, m_drives[driveConfig.getUnitName()] = new CatalogueDrive(m_netTimeout,
m_log, m_processForker, m_hostName, driveConfig, 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 the drive is already in the catalogue
} else { } else {
castor::exception::Exception ex; castor::exception::Exception ex;
......
...@@ -82,7 +82,7 @@ TEST_F(castor_tape_tapeserver_daemon_CatalogueTest, goodDayPopulate) { ...@@ -82,7 +82,7 @@ TEST_F(castor_tape_tapeserver_daemon_CatalogueTest, goodDayPopulate) {
ASSERT_EQ(std::string("DGN1"), unit1Config.getLogicalLibrary()); ASSERT_EQ(std::string("DGN1"), unit1Config.getLogicalLibrary());
ASSERT_EQ(std::string("DEV1"), unit1Config.getDevFilename()); 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_NO_THROW(unit1Config.getLibrarySlot());
ASSERT_EQ(castor::mediachanger::TAPE_LIBRARY_TYPE_MANUAL, ASSERT_EQ(castor::mediachanger::TAPE_LIBRARY_TYPE_MANUAL,
unit1Config.getLibrarySlot().getLibraryType()); unit1Config.getLibrarySlot().getLibraryType());
...@@ -98,7 +98,7 @@ TEST_F(castor_tape_tapeserver_daemon_CatalogueTest, goodDayPopulate) { ...@@ -98,7 +98,7 @@ TEST_F(castor_tape_tapeserver_daemon_CatalogueTest, goodDayPopulate) {
ASSERT_EQ(std::string("DGN2"), unit2Config.getLogicalLibrary()); ASSERT_EQ(std::string("DGN2"), unit2Config.getLogicalLibrary());
ASSERT_EQ(std::string("DEV2"), unit2Config.getDevFilename()); 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_NO_THROW(unit2Config.getLibrarySlot());
ASSERT_EQ(castor::mediachanger::TAPE_LIBRARY_TYPE_MANUAL, ASSERT_EQ(castor::mediachanger::TAPE_LIBRARY_TYPE_MANUAL,
unit2Config.getLibrarySlot().getLibraryType()); unit2Config.getLibrarySlot().getLibraryType());
......
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