ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaimin Jetly" <>
Subject Review Request 26167: Unable to logout from Admin View, when ambari-server is stopped
Date Tue, 30 Sep 2014 08:24:59 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for Ambari, Srimanth Gunturi and Yusaku Sako.

Bugs: AMBARI-7526

Repository: ambari


Go to Manage Ambari, stop ambari-server, try to logout. After each click the red square will

**This patch also sets up the unit test and e2e test infrastructure for admin-view.**

Follow below steps to verify working e2e test
1. Apply the patch
2. Go to path: /ambari/ambari-admin/src/main/resources/ui/admin-web
3. npm install
4. npm start (This starts http server at 8000 port)
5. Open another terminal at same path and execute: npm run protractor (does e2e test in chrome
browser instance. This library works on top of selenium jar)

Follow below steps to verify unit test:
1. Go to path: /ambari/ambari-admin/src/main/resources/ui/admin-web
2. npm run test-single-run (this uses phantomJS webKit. It's the same used by the ambari-web
unit test)

"npm test" command starts karma server at http://localhost:9876/ and runs unit tests. This
server remain up and autoreloads any changes in the test code. This is useful while developing
unit tests.


  ambari-admin/pom.xml 6f70b43 
  ambari-admin/src/main/resources/ui/admin-web/app/index.html 2fb9fce 
  ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/mainCtrl.js 797ecb2

  ambari-admin/src/main/resources/ui/admin-web/app/scripts/services/Auth.js 93377b9 
  ambari-admin/src/main/resources/ui/admin-web/bower.json 896e5bd 
  ambari-admin/src/main/resources/ui/admin-web/package.json 0dc99e8 
  ambari-admin/src/main/resources/ui/admin-web/test/e2e/signout.js PRE-CREATION 
  ambari-admin/src/main/resources/ui/admin-web/test/karma.conf.js PRE-CREATION 
  ambari-admin/src/main/resources/ui/admin-web/test/protractor-conf.js PRE-CREATION 
  ambari-admin/src/main/resources/ui/admin-web/test/spec/test.js a43f4e1 
  ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/mainCtrl_test.js PRE-CREATION



teted e2e


Jaimin Jetly

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message