Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-868

TestMetadata test failure results in build failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 0.7-incubating
    • 0.7-incubating
    • None
    • None

    Description

      Build fails with a test failure

      test_main_default (TestMetadata.TestMetadata) ... Apache Atlas Server started!!!
      
      FAIL
      test_main_embedded (TestMetadata.TestMetadata) ... configured for local hbase.
      hbase started.
      configured for local solr.
      solr started.
      setting up solr collections...
      Apache Atlas Server started!!!
      
      FAIL
      
      ======================================================================
      FAIL: test_main_default (TestMetadata.TestMetadata)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/apathan/Hortonworks/apache-atlas-master/incubator-atlas/distro/src/test/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/Users/apathan/Hortonworks/apache-atlas-master/incubator-atlas/distro/src/test/python/scripts/TestMetadata.py", line 163, in test_main_default
          ['-Datlas.log.dir=atlas_home/logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home', '-Datlas.conf=atlas_home/conf', '-Xmx1024m', '-XX:MaxPermSize=512m', '-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true'],  'atlas_home/logs')
        File "/Users/apathan/Hortonworks/apache-atlas-master/incubator-atlas/distro/src/test/mock/mock.py", line 833, in assert_called_with
          raise AssertionError(msg)
      AssertionError: Expected call: java('org.apache.atlas.Atlas', ['-app', 'atlas_home/server/webapp/atlas'], 'atlas_home/conf:atlas_home/server/webapp/atlas/WEB-INF/classes:atlas_home/server/webapp/atlas/WEB-INF/lib/atlas-titan-${project.version}.jar:atlas_home/server/webapp/atlas/WEB-INF/lib/*:atlas_home/libext/*:atlas_home/hbase/conf', ['-Datlas.log.dir=atlas_home/logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home', '-Datlas.conf=atlas_home/conf', '-Xmx1024m', '-XX:MaxPermSize=512m', '-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true'], 'atlas_home/logs')
      Actual call: java('org.apache.atlas.Atlas', ['-app', 'atlas_home/server/webapp/atlas'], 'atlas_home/conf:atlas_home/server/webapp/atlas/WEB-INF/classes:atlas_home/server/webapp/atlas/WEB-INF/lib/atlas-titan-${project.version}.jar:atlas_home/server/webapp/atlas/WEB-INF/lib/*:atlas_home/libext/*:/usr/local/Cellar/hbase/1.0.1.1/libexec/conf/', ['-Datlas.log.dir=atlas_home/logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home', '-Datlas.conf=atlas_home/conf', '-Xmx1024m', '-XX:MaxPermSize=512m', '-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true'], 'atlas_home/logs')
      
      ======================================================================
      FAIL: test_main_embedded (TestMetadata.TestMetadata)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/apathan/Hortonworks/apache-atlas-master/incubator-atlas/distro/src/test/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/Users/apathan/Hortonworks/apache-atlas-master/incubator-atlas/distro/src/test/python/scripts/TestMetadata.py", line 81, in test_main_embedded
          runProcess_mock.assert_has_calls(calls)
        File "/Users/apathan/Hortonworks/apache-atlas-master/incubator-atlas/distro/src/test/mock/mock.py", line 861, in assert_has_calls
          'Actual: %r' % (calls, self.mock_calls)
      AssertionError: Calls not found.
      Expected: [call(['atlas_home/hbase/bin/hbase-daemon.sh', '--config', 'atlas_home/hbase/conf', 'start', 'master'], 'atlas_home/logs', False, True), call(['atlas_home/solr/bin/solr', 'start', '-z', 'localhost:9838', '-p', '9838'], 'atlas_home/logs', False, True), call(['atlas_home/solr/bin/solr', 'create', '-c', 'vertex_index', '-d', 'atlas_home/solr/server/solr/configsets/basic_configs/conf', '-shards', '1', '-replicationFactor', '1'], 'atlas_home/logs', False, True), call(['atlas_home/solr/bin/solr', 'create', '-c', 'edge_index', '-d', 'atlas_home/solr/server/solr/configsets/basic_configs/conf', '-shards', '1', '-replicationFactor', '1'], 'atlas_home/logs', False, True), call(['atlas_home/solr/bin/solr', 'create', '-c', 'fulltext_index', '-d', 'atlas_home/solr/server/solr/configsets/basic_configs/conf', '-shards', '1', '-replicationFactor', '1'], 'atlas_home/logs', False, True)]
      Actual: [call(['atlas_home/hbase/bin/hbase-daemon.sh', '--config', '/usr/local/Cellar/hbase/1.0.1.1/libexec/conf/', 'start', 'master'], 'atlas_home/logs', False, True),
       call(['atlas_home/solr/bin/solr', 'start', '-z', 'localhost:9838', '-p', '9838'], 'atlas_home/logs', False, True),
       call(['atlas_home/solr/bin/solr', 'create', '-c', 'vertex_index', '-d', 'atlas_home/solr/server/solr/configsets/basic_configs/conf', '-shards', '1', '-replicationFactor', '1'], 'atlas_home/logs', False, True),
       call(['atlas_home/solr/bin/solr', 'create', '-c', 'edge_index', '-d', 'atlas_home/solr/server/solr/configsets/basic_configs/conf', '-shards', '1', '-replicationFactor', '1'], 'atlas_home/logs', False, True),
       call(['atlas_home/solr/bin/solr', 'create', '-c', 'fulltext_index', '-d', 'atlas_home/solr/server/solr/configsets/basic_configs/conf', '-shards', '1', '-replicationFactor', '1'], 'atlas_home/logs', False, True)]
      
      ----------------------------------------------------------------------
      Ran 4 tests in 0.014s
      
      FAILED (failures=2)
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] apache-atlas ....................................... SUCCESS [  4.903 s]
      [INFO] Apache Atlas Common ................................ SUCCESS [ 13.309 s]
      [INFO] Apache Atlas Typesystem ............................ SUCCESS [ 49.996 s]
      [INFO] Apache Atlas Client ................................ SUCCESS [ 14.291 s]
      [INFO] Apache Atlas Server API ............................ SUCCESS [  7.370 s]
      [INFO] Apache Atlas Notification .......................... SUCCESS [ 26.589 s]
      [INFO] Apache Atlas Graph Database Projects ............... SUCCESS [  0.609 s]
      [INFO] Apache Atlas Graph Database API .................... SUCCESS [  7.997 s]
      [INFO] Apache Atlas Titan ................................. SUCCESS [ 42.294 s]
      [INFO] Apache Atlas Repository ............................ SUCCESS [09:08 min]
      [INFO] Apache Atlas Authorization ......................... SUCCESS [ 14.245 s]
      [INFO] Apache Atlas Business Catalog ...................... SUCCESS [ 33.257 s]
      [INFO] Apache Atlas UI .................................... SUCCESS [01:14 min]
      [INFO] Apache Atlas Web Application ....................... SUCCESS [06:09 min]
      [INFO] Apache Atlas Documentation ......................... SUCCESS [  6.256 s]
      [INFO] Apache Atlas FileSystem Model ...................... SUCCESS [ 30.009 s]
      [INFO] Apache Atlas Hive Bridge ........................... SUCCESS [03:39 min]
      [INFO] Apache Atlas Falcon Bridge ......................... SUCCESS [ 59.515 s]
      [INFO] Apache Atlas Sqoop Bridge .......................... SUCCESS [01:18 min]
      [INFO] Apache Atlas Storm Bridge .......................... SUCCESS [01:26 min]
      [INFO] Apache Atlas Distribution .......................... FAILURE [  2.549 s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 28:10 min
      [INFO] Finished at: 2016-06-07T13:03:49+05:30
      [INFO] Final Memory: 264M/970M
      [INFO] ------------------------------------------------------------------------
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ayubpathan Ayub Pathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: