Skip to content
Snippets Groups Projects
Commit 42b16ce8 authored by Michael Davis's avatar Michael Davis
Browse files

[catalogue] Fixes two unit tests

parent d104743d
Branches
Tags
No related merge requests found
......@@ -149,7 +149,7 @@ TEST(ObjectStore, ArchiveQueueAlgorithms) {
ar.setMountPolicy(mp);
ar.setArchiveReportURL("");
ar.setArchiveErrorReportURL("");
ar.setRequester(cta::common::dataStructures::RequesterIdentity(0, 0));
ar.setRequester(cta::common::dataStructures::RequesterIdentity("user0", "group0"));
ar.setSrcURL("root://eoseos/myFile");
ar.setEntryLog(cta::common::dataStructures::EntryLog("user0", "host0", time(nullptr)));
ar.insert();
......
......@@ -308,8 +308,7 @@ TEST(ObjectStore, GarbageCollectorArchiveRequest) {
re.initialize();
re.insert();
// Create the agent register
cta::objectstore::EntryLogSerDeser el("user0",
"unittesthost", time(NULL));
cta::objectstore::EntryLogSerDeser el("user0", "unittesthost", time(NULL));
cta::objectstore::ScopedExclusiveLock rel(re);
// Create the agent for objects creation
cta::objectstore::AgentReference agentRef("unitTestCreateEnv", dl);
......@@ -376,7 +375,7 @@ TEST(ObjectStore, GarbageCollectorArchiveRequest) {
ar.setMountPolicy(mp);
ar.setArchiveReportURL("");
ar.setArchiveErrorReportURL("");
ar.setRequester(cta::common::dataStructures::RequesterIdentity(0, 0));
ar.setRequester(cta::common::dataStructures::RequesterIdentity("user0", "group0"));
ar.setSrcURL("root://eoseos/myFile");
ar.setEntryLog(cta::common::dataStructures::EntryLog("user0", "host0", time(nullptr)));
ar.insert();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment