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

bundle agent test
{
    meta:
        "description"
            string => "Test that cf-secret can still decrypt content encrypted at the time of initial implementation";
        "test_soft_fail" string => "windows",
            meta => { "ENT-10405" };

    commands:
        "$(sys.cf_secret)"
            args => "decrypt -k $(this.promise_dirname)/testkey.priv -o $(G.testfile) $(this.promise_dirname)/encrypted";
}

bundle agent check
{
    methods:
        "any"
            usebundle => dcs_check_diff("$(this.promise_dirname)/plaintext",
                                        "$(G.testfile)",
                                        "$(this.promise_filename)");
}
