# Test that if the action => 'warn' is specified, no packages are installed.

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

bundle agent init
{
  vars:
      "dummy" string => "dummy";
}

bundle agent test
{
  vars:
      "subout" string => execresult("$(sys.cf_agent) -Kv -f $(this.promise_filename).sub | $(G.grep) should-not-be-called", "useshell");
}

bundle agent check
{
  classes:
      "ok" not => regcmp(".*should-not-be-called.*", "$(test.subout)");

  reports:
    DEBUG::
      "$(test.subout)";
    ok::
      "$(this.promise_filename) Pass";
    !ok::
      "$(this.promise_filename) FAIL";
}
### PROJECT_ID: core
### CATEGORY_ID: 29
