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
f080a702
Commit
f080a702
authored
Oct 02, 2020
by
Steven Murray
Browse files
Added further empty table checks to the Setup phase of the catalogue unit tests
parent
ad6e02b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
catalogue/CatalogueTest.cpp
View file @
f080a702
...
...
@@ -283,29 +283,57 @@ void cta_catalogue_CatalogueTest::SetUp() {
throw exception::Exception("Found one of more admin users after emptying the database");
}
if(
!
m_catalogue->get
MediaTypes().empty
()) {
throw exception::Exception("Found one of more
media typ
es after emptying the database");
if(m_catalogue->get
ArchiveFilesItor().hasMore
()) {
throw exception::Exception("Found one of more
archive fil
es after emptying the database");
}
if(!m_catalogue->get
StorageClass
es().empty()) {
throw exception::Exception("Found one of more
storage class
es after emptying the database");
if(!m_catalogue->get
ArchiveRout
es().empty()) {
throw exception::Exception("Found one of more
archive rout
es after emptying the database");
}
if(
!
m_catalogue->get
TapePools().empty
()) {
throw exception::Exception("Found one of more
tape pool
s after emptying the database");
if(m_catalogue->get
DeletedArchiveFilesItor().hasMore
()) {
throw exception::Exception("Found one of more
deleted archive file
s after emptying the database");
}
if(!m_catalogue->getA
rchiveRou
tes().empty()) {
throw exception::Exception("Found one of more
archive rou
tes after emptying the database");
if(!m_catalogue->getA
llDiskSys
te
m
s().empty()) {
throw exception::Exception("Found one of more
disk sys
te
m
s after emptying the database");
}
if(!m_catalogue->getLogicalLibraries().empty()) {
throw exception::Exception("Found one of more logical libraries after emptying the database");
}
if(!m_catalogue->getMediaTypes().empty()) {
throw exception::Exception("Found one of more media types after emptying the database");
}
if(!m_catalogue->getMountPolicies().empty()) {
throw exception::Exception("Found one of more mount policies after emptying the database");
}
if(!m_catalogue->getRequesterGroupMountRules().empty()) {
throw exception::Exception("Found one of more requester group mount rules after emptying the database");
}
if(!m_catalogue->getRequesterMountRules().empty()) {
throw exception::Exception("Found one of more requester mount rules after emptying the database");
}
if(!m_catalogue->getStorageClasses().empty()) {
throw exception::Exception("Found one of more storage classes after emptying the database");
}
if(!m_catalogue->getTapes().empty()) {
throw exception::Exception("Found one of more tapes after emptying the database");
}
if(!m_catalogue->getTapePools().empty()) {
throw exception::Exception("Found one of more tape pools after emptying the database");
}
if(!m_catalogue->getVirtualOrganizations().empty()) {
throw exception::Exception("Found one of more virtual organizations after emptying the database");
}
} catch(exception::Exception &ex) {
ex.getMessage().str(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
throw;
...
...
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