body common control
{
  inputs => { "../../default.sub.cf" };
  bundlesequence => { default("$(this.promise_filename)") };
  version => "1.0";
}

bundle agent init
{
}

bundle agent test
{
  files:
    "$(G.testfile)"
      create => "true",
      file_type => "fifo",
      edit_line => init_delete("foo");
}

bundle edit_line init_delete(str)
{
  delete_lines:
    "$(str)";
}

bundle agent check
{
  classes:
    "exists" expression => fileexists("$(G.testfile)");
    "ok" not => "exists";

  reports:
    ok::
      "$(this.promise_filename) Pass";

    !ok::
      "$(this.promise_filename) FAIL";
}
