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

#######################################################
bundle agent test
{
  meta:
    "description" -> { "CFE-4126" }
      string => "Test mode warning class";
}

#######################################################
bundle agent check
{
  methods:
    "Check Agent Output"
      usebundle => dcs_passif_output(
        ".*R: is warning mode.*",
        ".*R: is (debug|verbose|inform|notice) mode.*",
        "$(sys.cf_agent) --log-level warning -Kf $(this.promise_dirname)/log_mode.cf.sub",
        "$(this.promise_filename)"
      );
}
