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
9cc312c8
Commit
9cc312c8
authored
Aug 09, 2016
by
Steven Murray
Browse files
Implemented unit-test createTape_non_existent_tape_pool
parent
2c27fff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
catalogue/CatalogueTest.cpp
View file @
9cc312c8
...
...
@@ -1810,6 +1810,26 @@ TEST_P(cta_catalogue_CatalogueTest, createTape_non_existent_logical_library) {
disabledValue
,
fullValue
,
comment
),
exception
::
UserError
);
}
TEST_P
(
cta_catalogue_CatalogueTest
,
createTape_non_existent_tape_pool
)
{
using
namespace
cta
;
ASSERT_TRUE
(
m_catalogue
->
getTapes
().
empty
());
const
std
::
string
vid
=
"vid"
;
const
std
::
string
logicalLibraryName
=
"logical_library_name"
;
const
std
::
string
tapePoolName
=
"tape_pool_name"
;
const
std
::
string
encryptionKey
=
"encryption_key"
;
const
uint64_t
capacityInBytes
=
(
uint64_t
)
10
*
1000
*
1000
*
1000
*
1000
;
const
bool
disabledValue
=
true
;
const
bool
fullValue
=
false
;
const
std
::
string
comment
=
"Create tape"
;
m_catalogue
->
createLogicalLibrary
(
m_admin
,
logicalLibraryName
,
"Create logical library"
);
ASSERT_THROW
(
m_catalogue
->
createTape
(
m_admin
,
vid
,
logicalLibraryName
,
tapePoolName
,
encryptionKey
,
capacityInBytes
,
disabledValue
,
fullValue
,
comment
),
exception
::
UserError
);
}
TEST_P
(
cta_catalogue_CatalogueTest
,
createTape_no_encryption_key
)
{
using
namespace
cta
;
...
...
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