Project

General

Profile

Actions

Bug #8719

closed

Broken tests in ncf v0.x on Rudder 2.11

Added by Alexis Mousset about 6 years ago. Updated 4 months ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Regression:

Description

./30_generic_methods/command_execution_result.cf FAIL
./30_generic_methods/file_ensure_key_value.cf FAIL

The logs are:

----------------------------------------------------------------------
./30_generic_methods/file_ensure_key_value.cf
----------------------------------------------------------------------
2016-07-20T13:41:17+0000     info: /default/configuration/vars: CfReadFile: Could not examine file '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/ncf.conf.cache' (stat: No such file or directory)
2016-07-20T13:41:17+0000     info: /default/configuration/methods/'expand'/default/expand_configuration/files/'/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/ncf.conf.cache'[0]: Created file '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/ncf.conf.cache', mode 0600
2016-07-20T13:41:17+0000     info: /default/configuration/methods/'expand'/default/expand_configuration/files/'/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/ncf.conf.cache'[0]: Updated rendering of '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/ncf.conf.cache' from template mustache template '/tmp/ncf/tests/acceptance/../../tree/10_ncf_internals/../ncf.conf'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Executing 'no timeout' ... '/bin/echo "# File with lhs=rhs text
JAVA_OPTS=\"-Djava.awt.headless=true -Xmx1024m\"" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref1"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Completed execution of '/bin/echo "# File with lhs=rhs text
JAVA_OPTS=\"-Djava.awt.headless=true -Xmx1024m\"" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref1"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Executing 'no timeout' ... '/bin/echo "# File with lhs=rhs text
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC"" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test1"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Completed execution of '/bin/echo "# File with lhs=rhs text
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC"" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test1"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Executing 'no timeout' ... '/bin/echo "# File with lhs=rhs text
Key=Value
AddedKey=AddedValue" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref2"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Completed execution of '/bin/echo "# File with lhs=rhs text
Key=Value
AddedKey=AddedValue" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref2"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Executing 'no timeout' ... '/bin/echo "# File with lhs=rhs text
Key=Value" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test2"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Completed execution of '/bin/echo "# File with lhs=rhs text
Key=Value" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test2"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Executing 'no timeout' ... '/bin/echo "# File with lhs rhs text
Key Value" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref3"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Completed execution of '/bin/echo "# File with lhs rhs text
Key Value" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref3"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Executing 'no timeout' ... '/bin/echo "# File with lhs rhs text
Key Value" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test3"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/init/commands/'/bin/echo'[0]: Completed execution of '/bin/echo "# File with lhs rhs text
Key Value" > "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test3"'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/test/methods/'modified key'/default/file_ensure_key_value/files/'/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test1'[0]: Edit file '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test1'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/test/methods/'added key'/default/file_ensure_key_value/files/'/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test2'[0]: Edit file '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test2'
2016-07-20T13:41:17+0000     info: /default/default/methods/'any'/default/test/methods/'success key'/default/file_ensure_key_value/files/'/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test3'[0]: Edit file '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test3'
3a4
> JAVA_OPTS="-Djava.awt.headless=true -Xmx1024m" 
2a3,4
> AddedKey AddedValue
> JAVA_OPTS "-Djava.awt.headless=true -Xmx1024m" 
R: /tmp/ncf/tests/acceptance/./30_generic_methods/file_ensure_key_value.cf FAIL
R: diff command doesn't returns 0 for file 2 (command: /usr/bin/diff "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref2" "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test2")
R: diff command doesn't returns 0 for file 3 (command: /usr/bin/diff "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/ref3" "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_ensure_key_value_cf/tmp/test3")

Return code is 0.

  ==> FAIL

and

----------------------------------------------------------------------
./30_generic_methods/command_execution_result.cf
----------------------------------------------------------------------
2016-07-20T13:41:03+0000     info: /default/configuration/vars: CfReadFile: Could not examine file '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_command_execution_result_cf/ncf.conf.cache' (stat: No such file or directory)
2016-07-20T13:41:03+0000     info: /default/configuration/methods/'expand'/default/expand_configuration/files/'/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_command_execution_result_cf/ncf.conf.cache'[0]: Created file '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_command_execution_result_cf/ncf.conf.cache', mode 0600
2016-07-20T13:41:03+0000     info: /default/configuration/methods/'expand'/default/expand_configuration/files/'/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_command_execution_result_cf/ncf.conf.cache'[0]: Updated rendering of '/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_command_execution_result_cf/ncf.conf.cache' from template mustache template '/tmp/ncf/tests/acceptance/../../tree/10_ncf_internals/../ncf.conf'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phA'/default/command_execution_result/commands/'exit 0'[0]: Executing 'no timeout' ... 'exit 0'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phA'/default/command_execution_result/commands/'exit 0'[0]: Command related to promiser 'exit 0' returned code defined as promise kept 0
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phA'/default/command_execution_result/commands/'exit 0'[0]: Completed execution of 'exit 0'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phB'/default/command_execution_result/commands/'exit 2'[0]: Executing 'no timeout' ... 'exit 2'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phB'/default/command_execution_result/commands/'exit 2'[0]: Command related to promiser 'exit 2' returned code defined as promise kept 2
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phB'/default/command_execution_result/commands/'exit 2'[0]: Completed execution of 'exit 2'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phC'/default/command_execution_result/commands/'exit 3'[0]: Executing 'no timeout' ... 'exit 3'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phC'/default/command_execution_result/commands/'exit 3'[0]: Command related to promiser 'exit 3' returned code defined as promise repaired 3
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phC'/default/command_execution_result/commands/'exit 3'[0]: Completed execution of 'exit 3'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phD'/default/command_execution_result/commands/'exit 4'[0]: Executing 'no timeout' ... 'exit 4'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phD'/default/command_execution_result/commands/'exit 4'[0]: Command related to promiser 'exit 4' returned code defined as promise repaired 4
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phD'/default/command_execution_result/commands/'exit 4'[0]: Completed execution of 'exit 4'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phE'/default/command_execution_result/commands/'exit 5'[0]: Executing 'no timeout' ... 'exit 5'
2016-07-20T13:41:03+0000     info: /default/default/methods/'any'/default/test/methods/'phE'/default/command_execution_result/commands/'exit 5'[0]: Completed execution of 'exit 5'
R: /tmp/ncf/tests/acceptance/./30_generic_methods/command_execution_result.cf FAIL

Return code is 0.

  ==> FAIL
Actions #1

Updated by Alexis Mousset about 6 years ago

  • Subject changed from Broken tests on 2.11 in ncf v0.x to Broken tests in ncf v0.x on Rudder 2.11
Actions #2

Updated by Alexis Mousset about 6 years ago

Th ecommand execution issue comes from a difference in unspecified code handling. Before 3.6.1, the unknown code were not considered as an error, which is assumed by the test (and documented in Rudder).

Actions #3

Updated by Alexis Mousset about 6 years ago

issues opened in the Rudder project, closing.

Actions #4

Updated by Alexis Mousset about 6 years ago

  • Status changed from New to Rejected
Actions #5

Updated by Alexis Mousset 4 months ago

  • Target version changed from 0.x to ncf-0.x
  • Priority set to 0
Actions #6

Updated by Alexis Mousset 4 months ago

  • Project changed from 41 to Rudder
  • Category set to Generic methods
Actions

Also available in: Atom PDF