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
a83c05ef
Commit
a83c05ef
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Removed the RecallReportPackerFaillure test because it is redundant in the CTA project
parent
46e78c0e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tapeserver/castor/tape/tapeserver/daemon/RecallReportPackerTest.cpp
+0
-30
0 additions, 30 deletions
.../castor/tape/tapeserver/daemon/RecallReportPackerTest.cpp
with
0 additions
and
30 deletions
tapeserver/castor/tape/tapeserver/daemon/RecallReportPackerTest.cpp
+
0
−
30
View file @
a83c05ef
...
...
@@ -172,34 +172,4 @@ TEST_F(castor_tape_tapeserver_daemonTest, RecallReportPackerBadBadEnd) {
ASSERT_NE
(
std
::
string
::
npos
,
temp
.
find
(
error_msg
));
}
/*
TEST_F(castor_tape_tapeserver_daemonTest, RecallReportPackerFaillure) {
std::string error_msg="ERROR_TEST_MSG";
int error_code=std::numeric_limits<int>::max();
using namespace ::testing;
MockClient client;
::testing::InSequence dummy;
EXPECT_CALL(client, reportRecallResults(_,_)).WillRepeatedly(Throw(castor::exception::Exception("")));
EXPECT_CALL(client, reportEndOfSessionWithError(_,SEINTERNAL,_)).Times(1);
castor::log::StringLogger log("castor_tape_tapeserver_RecallReportPackerBadBadEnd");
castor::log::LogContext lc(log);
std::unique_ptr<cta::MockSchedulerDatabase> mdb(new cta::MockSchedulerDatabase);
tapeserver::daemon::RecallReportPacker rrp(dynamic_cast<cta::RetrieveMount *>((mdb->getNextMount("ll","drive")).get()),lc);
rrp.startThreads();
tapegateway::FileToRecallStruct recalledFiled;
rrp.reportCompletedJob(recalledFiled,0,0);
rrp.reportCompletedJob(recalledFiled,0,0);
rrp.reportEndOfSessionWithErrors(error_msg,error_code);
rrp.waitThread();
std::string temp = log.getLog();
ASSERT_NE(std::string::npos, temp.find("Successfully closed client's session after the failed report RecallResult"));
}
*/
}
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