Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-2682

Encrypt toolkit test fails for European timezone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.0.0
    • None
    • Tools and Build
    • None

    Description

      I have the following test failure when building from sources:

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running org.apache.nifi.properties.ConfigEncryptionToolTest
      Tests run: 47, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 2.397 sec <<< FAILURE! - in org.apache.nifi.properties.ConfigEncryptionToolTest
      testShouldSerializeNiFiProperties(org.apache.nifi.properties.ConfigEncryptionToolTest)  Time elapsed: 0.011 sec  <<< FAILURE!
      org.codehaus.groovy.runtime.powerassert.PowerAssertionError: assert lines.first() =~ datePattern
             |     |       |  |
             |     |       |  ^#\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} \w{3}([\-+]\d{2}:\d{2})? \d{4}$
             |     |       java.util.regex.Matcher[pattern=^#\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} \w{3}([\-+]\d{2}:\d{2})? \d{4}$ region=0,30 lastmatch=]
             |     #Sat Aug 27 17:40:00 CEST 2016
             [#Sat Aug 27 17:40:00 CEST 2016, key=value, key2=value2]
        at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:402)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:650)
        at org.apache.nifi.properties.ConfigEncryptionToolTest.testShouldSerializeNiFiProperties(ConfigEncryptionToolTest.groovy:978)
      
      
      Results :
      
      Failed tests: 
        ConfigEncryptionToolTest.testShouldSerializeNiFiProperties:978 assert lines.first() =~ datePattern
             |     |       |  |
             |     |       |  ^#\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} \w{3}([\-+]\d{2}:\d{2})? \d{4}$
             |     |       java.util.regex.Matcher[pattern=^#\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} \w{3}([\-+]\d{2}:\d{2})? \d{4}$ region=0,30 lastmatch=]
             |     #Sat Aug 27 17:40:00 CEST 2016
             [#Sat Aug 27 17:40:00 CEST 2016, key=value, key2=value2]
      
      Tests run: 47, Failures: 1, Errors: 0, Skipped: 2
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pvillard Pierre Villard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: