Last active
August 29, 2015 14:24
-
-
Save jwadolowski/136a2c0bb614eb7886d8 to your computer and use it in GitHub Desktop.
Specinfra issue with file content matching (affects any v2.36.17+, works fine for v2.36.16). Based on attached diff it seems that not the whole file is loaded, hence no match. To be even worse it occurs totally randomly (sometimes all green, sometimes 1-3 failuers). Test environment: CentOS 6.6 (http://opscode-vm-bento.s3.amazonaws.com/vagrant/v…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16:57:30 1) CQ init script contains KILL_DELAY line | |
16:57:30 Failure/Error: file('/etc/init.d/cq56-publish').content | |
16:57:30 expected "#!/bin/sh\n#\n# cq56-publish Startup script for the Adobe CQ 5.6.1 Publish instance\n#\n# chkconfig: - 20 80\n# description: Adobe CQ is a Java-based web content management system\n\n### BEGIN INIT INFO\n# Provides: cq56-publish\n# Required-Start: $local_fs $network\n# Required-Stop: $local_fs $network\n# Short-Description: start and stop Adobe CQ 5.6.1 Publish\n# Description: Adobe CQ is a Java-based web content management system\n### END INIT INFO\n\n# Please make sure that the following file exists: /opt/cq/publish/crx-quickstart/conf/cq56-publish.conf\n\nPROG=cq56-publish\nCQ_CONF_FILE=/opt/cq/publish/crx-quickstart/conf/cq56-publish.conf\n\n# -----------------------------------------------------------------------------\n# do not configure below this point\n# -----------------------------------------------------------------------------\n\n# Source function library\n. /etc/rc.d/init.d/functions\n\n# Soruce CQ configuration file\n[ -e $CQ_CONF_FILE ] && . $CQ_CONF_FILE\n\n# Add JAVA_HOME to the PATH variable if" to match "KILL_DELAY=120" | |
16:57:30 Diff: | |
16:57:30 @@ -1,2 +1,32 @@ | |
16:57:30 -KILL_DELAY=120 | |
16:57:30 +#!/bin/sh | |
16:57:30 +# | |
16:57:30 +# cq56-publish Startup script for the Adobe CQ 5.6.1 Publish instance | |
16:57:30 +# | |
16:57:30 +# chkconfig: - 20 80 | |
16:57:30 +# description: Adobe CQ is a Java-based web content management system | |
16:57:30 + | |
16:57:30 +### BEGIN INIT INFO | |
16:57:30 +# Provides: cq56-publish | |
16:57:30 +# Required-Start: $local_fs $network | |
16:57:30 +# Required-Stop: $local_fs $network | |
16:57:30 +# Short-Description: start and stop Adobe CQ 5.6.1 Publish | |
16:57:30 +# Description: Adobe CQ is a Java-based web content management system | |
16:57:30 +### END INIT INFO | |
16:57:30 + | |
16:57:30 +# Please make sure that the following file exists: /opt/cq/publish/crx-quickstart/conf/cq56-publish.conf | |
16:57:30 + | |
16:57:30 +PROG=cq56-publish | |
16:57:30 +CQ_CONF_FILE=/opt/cq/publish/crx-quickstart/conf/cq56-publish.conf | |
16:57:30 + | |
16:57:30 +# ----------------------------------------------------------------------------- | |
16:57:30 +# do not configure below this point | |
16:57:30 +# ----------------------------------------------------------------------------- | |
16:57:30 + | |
16:57:30 +# Source function library | |
16:57:30 +. /etc/rc.d/init.d/functions | |
16:57:30 + | |
16:57:30 +# Soruce CQ configuration file | |
16:57:30 +[ -e $CQ_CONF_FILE ] && . $CQ_CONF_FILE | |
16:57:30 + | |
16:57:30 +# Add JAVA_HOME to the PATH variable if | |
16:57:30 | |
16:57:30 # /tmp/verifier/suites/serverspec/publish_spec.rb:98:in `block (2 levels) in <top (required)>' | |
16:57:30 | |
16:57:30 Finished in 0.58629 seconds (files took 0.35047 seconds to load) | |
16:57:30 54 examples, 1 failure | |
16:57:30 | |
16:57:30 Failed examples: | |
16:57:30 | |
16:57:30 rspec /tmp/verifier/suites/serverspec/publish_spec.rb:96 # CQ init script contains KILL_DELAY line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment