Commit 9cc312c8 authored by Steven Murray's avatar Steven Murray
Browse files

Implemented unit-test createTape_non_existent_tape_pool

parent 2c27fff7
......@@ -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;
......
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