######################################################
#
#  Test that @if feature() and class guard works for pam
#
#####################################################
body common control
{
  inputs => { "../../default.sub.cf" };
  bundlesequence => { default("$(this.promise_filename)") };
  version => "1.0";
}

bundle common test
{
  meta:
    "description" -> { "CFE-3371" }
      string => "Test that @if feature() and class guard works for pam";
}

bundle agent check
{
  reports:
@if feature(pam)
    feature_pam::
      "$(this.promise_filename) Pass";

    !feature_pam::
      "$(this.promise_filename) FAIL";
@else
    !feature_pam::
      "$(this.promise_filename) Pass";

    feature_pam::
      "$(this.promise_filename) FAIL";
@endif
}
