From a32a3b405b2134feaa2f76dbcde1f6e1f479cb62 Mon Sep 17 00:00:00 2001 From: Steven Murray <Steven.Murray@cern.ch> Date: Wed, 28 Mar 2018 17:33:55 +0200 Subject: [PATCH] Improved getAllTapes_many_tapes unit-test --- catalogue/CatalogueTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/catalogue/CatalogueTest.cpp b/catalogue/CatalogueTest.cpp index fa6c2275ca..2ba94fc59c 100644 --- a/catalogue/CatalogueTest.cpp +++ b/catalogue/CatalogueTest.cpp @@ -8216,7 +8216,7 @@ TEST_P(cta_catalogue_CatalogueTest, getAllTapes_many_tapes) { m_catalogue->createLogicalLibrary(m_admin, logicalLibraryName, "Create logical library"); m_catalogue->createTapePool(m_admin, tapePoolName, nbPartialTapes, true, "Create tape pool"); - const uint32_t nbTapes = 1000; + const uint32_t nbTapes = 10; for(uint32_t i = 0; i < nbTapes; i++) { std::ostringstream vid; @@ -8238,6 +8238,11 @@ TEST_P(cta_catalogue_CatalogueTest, getAllTapes_many_tapes) { ASSERT_NE(vidToTapeMap.end(), tapeItor); ASSERT_EQ(vid.str(), tapeItor->second.vid); + ASSERT_EQ(logicalLibraryName, tapeItor->second.logicalLibraryName); + ASSERT_EQ(tapePoolName, tapeItor->second.tapePoolName); + ASSERT_EQ(capacityInBytes, tapeItor->second.capacityInBytes); + ASSERT_EQ(disabledValue, tapeItor->second.disabled); + ASSERT_EQ(fullValue, tapeItor->second.full); ASSERT_EQ(tapeComment, tapeItor->second.comment); } } -- GitLab