Commit 61bcbdee authored by Steven Murray's avatar Steven Murray
Browse files

cta-xrootd_plugins-fakeeos instantiates notification

parent 6137916c
......@@ -57,6 +57,61 @@ int FakeEosCmd::exceptionThrowingMain(const int argc, char *const *const argv) {
const std::string fsUrl = protocol + ":" + "//" + cmdLineArgs.ctaHost + ":" + std::to_string(cmdLineArgs.ctaPort);
XrdCl::FileSystem fs(fsUrl, false);
eos::wfe::notification notification;
notification.mutable_wf()->set_event("notification_workflow_event");
notification.mutable_wf()->set_queue("notification_workflow_queue");
notification.mutable_wf()->set_wfname("notification_workflow_wfname");
notification.mutable_wf()->set_vpath("notification_workflow_vpath");
notification.mutable_wf()->mutable_instance()->set_name("notification_instance_name");
notification.mutable_wf()->mutable_instance()->set_url("notification_instance_url");
notification.mutable_wf()->set_timestamp(1100);
notification.set_turl("notification_turl");
notification.mutable_cli()->mutable_user()->set_n(1111);
notification.mutable_cli()->mutable_user()->set_name("notification_cli_user_name");
notification.mutable_cli()->mutable_sec()->set_host("notification_cli_sec_host");
notification.mutable_cli()->mutable_sec()->set_app("notification_cli_sec_app");
notification.mutable_cli()->mutable_sec()->set_name("notification_cli_sec_name");
notification.mutable_cli()->mutable_sec()->set_prot("notification_cli_sec_prot");
notification.mutable_cli()->mutable_sec()->set_grps("notification_cli_sec_grps");
notification.mutable_file()->set_fid(1122);
notification.mutable_file()->set_pid(1133);
notification.mutable_file()->mutable_ctime()->set_sec(1144);
notification.mutable_file()->mutable_ctime()->set_nsec(1155);
notification.mutable_file()->mutable_mtime()->set_sec(1166);
notification.mutable_file()->mutable_mtime()->set_nsec(1177);
notification.mutable_file()->mutable_btime()->set_sec(1188);
notification.mutable_file()->mutable_btime()->set_nsec(1199);
notification.mutable_file()->mutable_ttime()->set_sec(2200);
notification.mutable_file()->mutable_ttime()->set_nsec(2211);
notification.mutable_file()->mutable_owner()->set_n(2222);
notification.mutable_file()->mutable_owner()->set_name("notification_file_owner_name");
notification.mutable_file()->set_size(2233);
notification.mutable_file()->mutable_cks()->set_value("notification_file_cks_value");
notification.mutable_file()->mutable_cks()->set_name("notification_file_cks_name");
notification.mutable_file()->set_mode(244);
notification.mutable_file()->set_lpath("notification_file_lpath");
(*notification.mutable_file()->mutable_xattr())["notification_file_xattr1"] = "file_xattr1_value";
(*notification.mutable_file()->mutable_xattr())["notification_file_xattr2"] = "file_xattr2_value";
notification.mutable_directory()->set_fid(1122);
notification.mutable_directory()->set_pid(1133);
notification.mutable_directory()->mutable_ctime()->set_sec(1144);
notification.mutable_directory()->mutable_ctime()->set_nsec(1155);
notification.mutable_directory()->mutable_mtime()->set_sec(1166);
notification.mutable_directory()->mutable_mtime()->set_nsec(1177);
notification.mutable_directory()->mutable_btime()->set_sec(1188);
notification.mutable_directory()->mutable_btime()->set_nsec(1199);
notification.mutable_directory()->mutable_ttime()->set_sec(2200);
notification.mutable_directory()->mutable_ttime()->set_nsec(2211);
notification.mutable_directory()->mutable_owner()->set_n(2222);
notification.mutable_directory()->mutable_owner()->set_name("notification_directory");
notification.mutable_directory()->set_size(2233);
notification.mutable_directory()->mutable_cks()->set_value("notification_directory_cks_value");
notification.mutable_directory()->mutable_cks()->set_name("notification_directory_cks_name");
notification.mutable_directory()->set_mode(2244);
notification.mutable_directory()->set_lpath("notification_directory_lpath");
(*notification.mutable_directory()->mutable_xattr())["notification_directory_attr1"] = "directory_xattr1_value";
(*notification.mutable_directory()->mutable_xattr())["notification_directory_attr2"] = "directory_xattr2_value";
XrdCl::Buffer arg(cmdLineArgs.queryArg.size());
arg.FromString(cmdLineArgs.queryArg);
XrdCl::Buffer *response = nullptr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment