Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3493

Tests for CFE-3483 failing in Travis on 3.12.x branch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.17.0
    • Component/s: None
    • Labels:
      None

      Description

      The test fails backward compatibility with 3.7.x. test-result-3.7.x.txt

      ./lib/files/edit_line_converge.cf
      ----------------------------------------------------------------------
      ./lib/files/edit_line_converge.cf
      ----------------------------------------------------------------------
         error: No constraints for class promise 'testing_masterfiles_policy_framework'
         error: No constraints for class promise 'testing_masterfiles_policy_framework'
      R: test description: Test that converge edit_line bundle works as expected
      R: FILES DIFFER BUT SHOULD BE THE SAME
      R: CONTENTS OF /home/travis/build/cfengine/masterfiles/tests/acceptance/workdir/__lib_files_edit_line_converge_cf/tmp/TEST.cfengine:
      hashtag #covfefe
      What is covfefe?
      It has nothing to do with the oranges of the investigation, global waming, or hamberders
      However, covfefe is bigger than the 2015 paris climate agreement.
      Despite the constant negative press covfefe
      
      R: CONTENTS OF /home/travis/build/cfengine/masterfiles/tests/acceptance/./lib/files/edit_line_converge.cf.expected:
      It has nothing to do with the oranges of the investigation, global waming, or hamberders
      Despite the constant negative press covfefe
      
      R: *** /home/travis/build/cfengine/masterfiles/tests/acceptance/./lib/files/edit_line_converge.cf.expected      2020-11-11 20:48:39.458758306 +0000
      --- /home/travis/build/cfengine/masterfiles/tests/acceptance/workdir/__lib_files_edit_line_converge_cf/tmp/TEST.cfengine        2020-11-11 20:49:01.471747104 +0
      000
      ***************
      *** 1,2 ****
      --- 1,5 ----
      + hashtag #covfefe
      + What is covfefe?
        It has nothing to do with the oranges of the investigation, global waming, or hamberders
      + However, covfefe is bigger than the 2015 paris climate agreement.
        Despite the constant negative press covfefe
      R: hexdump /home/travis/build/cfengine/masterfiles/tests/acceptance/workdir/__lib_files_edit_line_converge_cf/tmp/TEST.cfengine:
      00000000  68 61 73 68 74 61 67 20  23 63 6f 76 66 65 66 65  |hashtag #covfefe|
      00000010  0a 57 68 61 74 20 69 73  20 63 6f 76 66 65 66 65  |.What is covfefe|
      00000020  3f 0a 49 74 20 68 61 73  20 6e 6f 74 68 69 6e 67  |?.It has nothing|
      00000030  20 74 6f 20 64 6f 20 77  69 74 68 20 74 68 65 20  | to do with the |
      00000040  6f 72 61 6e 67 65 73 20  6f 66 20 74 68 65 20 69  |oranges of the i|
      00000050  6e 76 65 73 74 69 67 61  74 69 6f 6e 2c 20 67 6c  |nvestigation, gl|
      00000060  6f 62 61 6c 20 77 61 6d  69 6e 67 2c 20 6f 72 20  |obal waming, or |
      00000070  68 61 6d 62 65 72 64 65  72 73 0a 48 6f 77 65 76  |hamberders.Howev|
      00000080  65 72 2c 20 63 6f 76 66  65 66 65 20 69 73 20 62  |er, covfefe is b|
      00000090  69 67 67 65 72 20 74 68  61 6e 20 74 68 65 20 32  |igger than the 2|
      000000a0  30 31 35 20 70 61 72 69  73 20 63 6c 69 6d 61 74  |015 paris climat|
      000000b0  65 20 61 67 72 65 65 6d  65 6e 74 2e 0a 44 65 73  |e agreement..Des|
      000000c0  70 69 74 65 20 74 68 65  20 63 6f 6e 73 74 61 6e  |pite the constan|
      000000d0  74 20 6e 65 67 61 74 69  76 65 20 70 72 65 73 73  |t negative press|
      000000e0  20 63 6f 76 66 65 66 65  0a                       | covfefe.|
      000000e9
      R: hexdump /home/travis/build/cfengine/masterfiles/tests/acceptance/./lib/files/edit_line_converge.cf.expected:
      00000000  49 74 20 68 61 73 20 6e  6f 74 68 69 6e 67 20 74  |It has nothing t|
      00000010  6f 20 64 6f 20 77 69 74  68 20 74 68 65 20 6f 72  |o do with the or|
      00000020  61 6e 67 65 73 20 6f 66  20 74 68 65 20 69 6e 76  |anges of the inv|
      00000030  65 73 74 69 67 61 74 69  6f 6e 2c 20 67 6c 6f 62  |estigation, glob|
      00000040  61 6c 20 77 61 6d 69 6e  67 2c 20 6f 72 20 68 61  |al waming, or ha|
      00000050  6d 62 65 72 64 65 72 73  0a 44 65 73 70 69 74 65  |mberders.Despite|
      00000060  20 74 68 65 20 63 6f 6e  73 74 61 6e 74 20 6e 65  | the constant ne|
      00000070  67 61 74 69 76 65 20 70  72 65 73 73 20 63 6f 76  |gative press cov|
      00000080  66 65 66 65 0a                                    |fefe.|
      00000085
      R: Diff command: /usr/bin/diff -u /home/travis/build/cfengine/masterfiles/tests/acceptance/./lib/files/edit_line_converge.cf.expected /home/travis/build/cfengine/masterfiles/tests/acceptance/workdir/__lib_files_edit_line_converge_cf/tmp/TEST.cfengine 2>/dev/null
      R: /home/travis/build/cfengine/masterfiles/tests/acceptance/./lib/files/edit_line_converge.cf FAIL
      
      Return code is 0.
      
        ==> FAIL (UNEXPECTED FAILURE)
      
      ./lib/files/edit_line_converge_prepend.cf
      ----------------------------------------------------------------------
      ./lib/files/edit_line_converge_prepend.cf
      ----------------------------------------------------------------------
         error: No constraints for class promise 'testing_masterfiles_policy_framework'
      ./lib/files/edit_line_converge_prepend.cf:37:0: error: Undefined bundle converge_prepend with type edit_line
         error: Policy failed validation with command '"/home/travis/build/cfengine/masterfiles/tests/acceptance/workdir/__lib_files_edit_line_converge_prepend_cf/bin/cf-promises" -c "./lib/files/edit_line_converge_prepend.cf"'
         error: CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe
         error: CFEngine failsafe.cf: /home/travis/build/cfengine/masterfiles/tests/acceptance/workdir/__lib_files_edit_line_converge_prepend_cf/inputs /home/travis/build/cfengine/masterfiles/tests/acceptance/workdir/__lib_files_edit_line_converge_prepend_cf/inputs/failsafe.cf
      R: No public/private key pair is loaded, please create one by running "cf-key"
         error: Fatal CFEngine error: cf-agent aborted on defined class 'no_ppkeys_ABORT'
      
      Return code is 1.
      
        ==> FAIL (UNEXPECTED FAILURE)
      

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel