"Fossies" - the Fresh Open Source Software Archive

Member "cfengine-3.15.4/tests/acceptance/02_classes/01_basic/expected_os_classes.cf" (7 Jun 2021, 1062 Bytes) of package /linux/misc/cfengine-3.15.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 body common control
    2 {
    3   bundlesequence => { "test", "check" };
    4 }
    5 
    6 bundle agent test
    7 {
    8   meta:
    9       "description" -> { "CFE-3608" }
   10         string => "Make sure at least one of the expected os hard classes are defined";
   11 
   12   vars:
   13     DEBUG::
   14       "defined_classes" string => join("$(const.n)", classesmatching(".*"));
   15 }
   16 
   17 bundle agent check
   18 {
   19     classes:
   20         "passed" or => { "debian",
   21                          "ubuntu",
   22                          "redhat",
   23                          "centos",
   24                          "fedora",
   25                          "aix",
   26                          "hpux",
   27                          "suse",
   28                          "windows",
   29                          "freebsd",
   30                          "macos",
   31                          "solaris" };
   32     
   33     reports:
   34       DEBUG&!passed::
   35         "None of the expected classes were defined.";
   36         "Here is a list of defined classes:";
   37         "$(test.defined_classes)";
   38       passed::
   39         "$(this.promise_filename) Pass";
   40       !passed::
   41         "$(this.promise_filename) FAIL";
   42 }