body file control
{
  inputs => { "$(sys.policy_entry_dirname)/../common.cf.sub" };
}

bundle common testcase
{
  vars:
    "filename" string => "$(this.promise_filename)";
}

bundle agent setup
{
  files:
    "$(G.testfile)" create => "true";
    "$(G.testroot)/TEST.foobar" delete => init_delete;
}

bundle agent main
{
  files:
    "$(G.testfile)" rename => newname;
}

body rename newname
{
  newname => "TEST.foobar";
}
