Project

General

Profile

Actions

Bug #7610

closed

Test are failing when generating promises

Added by François ARMAND almost 9 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Architecture - Code maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Failed tests: A root node\u002C with no node connected and defauls installation should::correctly write the expected promises files(com.normation.rudder.services.policies.write.WriteSystemTechniqueTest): There is 1 failure

Our CI is very terse, and should not, but it is an other problem.

When running on an user env, it can be reproduced with the command:

   $ LANG=C mnv test

So, it's an encoding problem. And the output is:


rudder-group.st template should::correctly write the classes and by_uuid array when groups(com.normation.rudder.services.policies.write.WriteSystemTechniqueTest)  Time elapsed: 0.021 se
c  <<< FAILURE!
java.lang.Exception: /tmp/test-rudder-config-repo/1450107339533/share/root/common/1.0/rudder-groups.cf is not the same as /tmp/test-rudder-config-repo/1450107339533/configuration-reposi
tory/expected-share/test-rudder-groups/some-groups.cf
  in /tmp/test-rudder-config-repo/1450107339533/share/root/common/1.0/rudder-groups.cf, not in /tmp/test-rudder-config-repo/1450107339533/configuration-repository/expected-share/test-ru
dder-groups/some-groups.cf
    MISSING:   27. #  For example, if node belongs to group: (id: 64f85ba8-39c7-418a-a099-24c2c2909dfd ; name: "Serveurs pr?-prod")
    MISSING:   32. #  - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" = "Serveurs pr?-prod" 
    MISSING:   38.       "by_uuid[c8813416-316f-4307-9b6a-ca9c109a9fb0]"  string => "Serveurs [???] cass?s",

  in /tmp/test-rudder-config-repo/1450107339533/configuration-repository/expected-share/test-rudder-groups/some-groups.cf, not in /tmp/test-rudder-config-repo/1450107339533/share/root/c
ommon/1.0/rudder-groups.cf
    MISSING:   27. #  For example, if node belongs to group: (id: 64f85ba8-39c7-418a-a099-24c2c2909dfd ; name: "Serveurs pr?-prod")
    MISSING:   32. #  - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" = "Serveurs pr?-prod" 
    MISSING:   38.       "by_uuid[c8813416-316f-4307-9b6a-ca9c109a9fb0]"  string => "Serveurs [???] cass?s",

    at com.normation.rudder.services.policies.write.WriteSystemTechniqueTest$$anonfun$23$$anonfun$apply$14.apply(WriteSystemTechniquesTest.scala:528)
    at com.normation.rudder.services.policies.write.WriteSystemTechniqueTest$$anonfun$23$$anonfun$apply$14.apply(WriteSystemTechniquesTest.scala:506)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)


Subtasks 1 (0 open1 closed)

Bug #7611: Change tests to make build ok againReleasedVincent MEMBRÉ2015-12-15Actions
Actions

Also available in: Atom PDF