Support Questions
Find answers, ask questions, and share your expertise

test case failing while building branch Ambari 2.2.2

Highlighted

test case failing while building branch Ambari 2.2.2

Explorer

I am trying to build ambari rom source code. I cloned the code and set up the envinronment as mentioned in the developer guide. When I run mvn clean install : I get the following error at a test case which causes the build to fail.

Failed tests:
  AmbariLdapDataPopulatorTest.testSynchronizeExistingLdapGroups_removeDuringIteration:325
  Expectation failure on verify:
    AmbariLdapDataPopulatorTestInstance.getLdapGroupByMemberAttr("group2"): expected: 1, actual: 0
  StackManagerTest.testStackServiceExtension:276 expected:<3> but was:<4>
  StackManagerTest.testGetStackServiceInheritance:364 expected:<4> but was:<5>
  UpgradeCatalog222Test.testInitializeStromAndKafkaWidgets:1109
  Unexpected method call AmbariManagementController.initializeWidgetsAndLayouts(EasyMock for interface org.apache.ambari.server.state.Cluster, EasyMock for interface org.apache.ambari.server.state.Service):
    AmbariManagementController.getClusters(): expected: at least 0, actual: 1
    AmbariManagementController.initializeWidgetsAndLayouts(EasyMock for interface org.apache.ambari.server.state.Cluster, EasyMock for interface org.apache.ambari.server.state.Service): expected: 1, actual: 0

Some ambari developer can help me out here. I haven't changed any thing in the code yet.

I am getting the above error while building ambari-server.

[INFO] Ambari Main ........................................ SUCCESS [  8.593 s]
[INFO] Apache Ambari Project POM .......................... SUCCESS [  0.403 s]
[INFO] Ambari Web ......................................... SUCCESS [ 41.950 s]
[INFO] Ambari Views ....................................... SUCCESS [  2.372 s]
[INFO] Ambari Admin View .................................. SUCCESS [ 11.313 s]
[INFO] ambari-metrics ..................................... SUCCESS [  0.837 s]
[INFO] Ambari Metrics Common .............................. SUCCESS [  2.108 s]
[INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [  4.721 s]
[INFO] Ambari Metrics Flume Sink .......................... SUCCESS [  2.309 s]
[INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [  3.176 s]
[INFO] Ambari Metrics Storm Sink .......................... SUCCESS [  1.901 s]
[INFO] Ambari Metrics Collector ........................... SUCCESS [02:16 min]
[INFO] Ambari Metrics Monitor ............................. SUCCESS [  3.415 s]
[INFO] Ambari Metrics Grafana ............................. SUCCESS [  6.373 s]
[INFO] Ambari Metrics Assembly ............................ SUCCESS [01:30 min]
[INFO] Ambari Server ...................................... FAILURE [44:47 min]
1 REPLY 1

Re: test case failing while building branch Ambari 2.2.2

Mentor