You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Mingjiang Shi (JIRA)" <ji...@apache.org> on 2014/09/04 08:07:52 UTC

[jira] [Created] (AMBARI-7145) 3 unit test cases failure in the ambari-web project on trunk

Mingjiang Shi created AMBARI-7145:
-------------------------------------

             Summary: 3 unit test cases failure in the ambari-web project on trunk
                 Key: AMBARI-7145
                 URL: https://issues.apache.org/jira/browse/AMBARI-7145
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 1.7.0
            Reporter: Mingjiang Shi


Run the ambari-web unit tests, and 3 unit tests are failed. See the following output:
  ✖ 3 of 4508 tests failed:

  1) Ambari Web Unit tests test/utils/date_test date #startTime() should convert 1349752195000 to Tue Oct 09 2012 06:09:

      {color:red}actual{color} {color:green}expected{color}

      "Tue Oct 09 2012 {color:green}06{color}{color:red}11{color}:09"

      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:925
      at assertEql (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:1434)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:3627
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/public/test/javascripts/test.js:32376
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4039
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4404
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4463
      at next (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4330)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4339
      at next (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4287)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4307
      at timeslice (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:5279)

  2) Ambari Web Unit tests test/models/alert_test App.Alert #date is Mon May 05 2014:

      {color:red}actual{color} {color:green}expected{color}

      "{color:green}Mon{color}{color:red}Tue{color} May 0{color:green}5{color}{color:red}6{color} 2014"

      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:925
      at assertEqual (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:1402)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:3627
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/public/test/javascripts/test.js:24222
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4039
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4404
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4463
      at next (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4330)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4339
      at next (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4287)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4307
      at timeslice (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:5279)

  3) Ambari Web Unit tests test/models/alert_test App.Alert #timeSinceAlertDetails should return the appropriate string:

      {color:red}actual{color} {color:green}expected{color}

      "Occurred on May {color:green}05{color}{color:red}06{color} 2014, 02:00:00 AM"

      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:925
      at assertEqual (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:1402)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/chai/chai.js:3627
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/public/test/javascripts/test.js:24307
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4039
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4404
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4463
      at next (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4330)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4339
      at next (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4287)
      at file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:4307
      at timeslice (file:///mnt/hgfs/mjshi/workspace/ambari_trunk/ambari-web/node_modules/mocha/mocha.js:5279)


Error loading resource http://localhost:3333/api/v1/clusters//requests/?fields=tasks/Tasks/command,tasks/Tasks/exit_code,tasks/Tasks/start_time,tasks/Tasks/end_time,tasks/Tasks/host_name,tasks/Tasks/id,tasks/Tasks/role,tasks/Tasks/status&minimal_response=true (203). Details: Error downloading http://localhost:3333/api/v1/clusters//requests/?fields=tasks/Tasks/command,tasks/Tasks/exit_code,tasks/Tasks/start_time,tasks/Tasks/end_time,tasks/Tasks/host_name,tasks/Tasks/id,tasks/Tasks/role,tasks/Tasks/status&minimal_response=true - server replied: Not Found
Error code 404: URI not found.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)