Project

General

Profile

Actions

Bug #7610

closed

Test are failing when generating promises

Added by François ARMAND about 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 #1

Updated by François ARMAND about 9 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES

PR

Actions #2

Updated by François ARMAND about 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #4

Updated by Benoît PECCATTE almost 9 years ago

  • Pull Request set to https://github.com/Normation/rudder/pull/1005

PR are hard to find without reference https://github.com/Normation/rudder/pull/1005

Actions #5

Updated by Benoît PECCATTE almost 9 years ago

  • Subject changed from Test are failing in 3.2: to Test are failing when generating promises
Actions #6

Updated by Benoît PECCATTE almost 9 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF