#######################################################
#
# Test inline JSON and YAML data
#
#######################################################

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

#######################################################

bundle agent test
{
  vars:
    feature_yaml::
      "included" string => "( included text )";
      "options2" data => '---
a: b
c: d
e:
  - 1
  - 2
';

      "options4" data => '---
a: $(included)
c: d
e:
  - 1
  - 2
';
}

#######################################################

bundle agent check
{
  methods:
    feature_yaml::
      "check"  usebundle => dcs_check_state(test,
                                           "$(this.promise_filename).expected.json",
                                           $(this.promise_filename));
    !feature_yaml::
      "check"  usebundle => dcs_pass($(this.promise_filename));
}
