Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
fe633f97
Commit
fe633f97
authored
4 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added further empty table checks to the Setup phase of the catalogue unit tests
parent
4dbbe002
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
catalogue/CatalogueTest.cpp
+36
-8
36 additions, 8 deletions
catalogue/CatalogueTest.cpp
with
36 additions
and
8 deletions
catalogue/CatalogueTest.cpp
+
36
−
8
View file @
fe633f97
...
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment