Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
f0d7aa95
Commit
f0d7aa95
authored
Aug 22, 2016
by
Daniele Kruse
Browse files
Temporarily changed the default state of a drive (will revert this soon)
parent
92e60927
Changes
2
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/tape/tapeserver/daemon/Catalogue.cpp
View file @
f0d7aa95
...
...
@@ -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
;
...
...
tapeserver/castor/tape/tapeserver/daemon/CatalogueTest.cpp
View file @
f0d7aa95
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment