######################################################
#
#  Test of a custom promise with 'action_policy => "warn"' and a module that
#  doesn't implement action_policy handling.
#
#####################################################
body common control
{
  inputs => { "../../default.sub.cf" };
  bundlesequence => { default("$(this.promise_filename)") };
  version => "1.0";
}

#######################################################
bundle agent test
{
  meta:
    "description" -> { "CFE-3433" }
      string => "Test that action_policy produces errors when used with custom promise modules not supporting it";

    "test_soft_fail"
      string => "windows",
      meta => { "ENT-10217" };
}

bundle agent check
{
  vars:
    "command"
      string => "$(sys.cf_agent) -D AUTO -KIf $(this.promise_filename).sub";

  methods:
    "check"
      usebundle => dcs_passif_output(
        ".*error: Not making changes.*",
        ".*CRITICAL:.*",
        $(command),
        $(this.promise_filename)
      );
}
