You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2016/04/20 14:35:02 UTC
ambari git commit: AMBARI-15986. UI: Enable Kerberos Wizard: The
progress of process across hosts won't get autoupdated. (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk a26fc8670 -> 9bce349b8
AMBARI-15986. UI: Enable Kerberos Wizard: The progress of process across hosts won't get autoupdated. (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9bce349b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9bce349b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9bce349b
Branch: refs/heads/trunk
Commit: 9bce349b871517d57b39f54f7427bd50834456e0
Parents: a26fc86
Author: Alex Antonenko <hi...@gmail.com>
Authored: Wed Apr 20 11:19:03 2016 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Apr 20 15:34:58 2016 +0300
----------------------------------------------------------------------
.../views/common/host_progress_popup_body_view.js | 3 +++
.../common/host_progress_popup_body_view_test.js | 17 +++++++++++++++++
2 files changed, 20 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/9bce349b/ambari-web/app/views/common/host_progress_popup_body_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/host_progress_popup_body_view.js b/ambari-web/app/views/common/host_progress_popup_body_view.js
index 197551f..12eb029 100644
--- a/ambari-web/app/views/common/host_progress_popup_body_view.js
+++ b/ambari-web/app/views/common/host_progress_popup_body_view.js
@@ -235,6 +235,9 @@ App.HostProgressPopupBodyView = App.TableView.extend({
Em.I18n.t("common.abort");
}.property('sourceRequestScheduleCommand'),
+ didInsertElement: function () {
+ this.updateHostInfo();
+ },
willDestroyElement: function () {
if (this.get('controller.dataSourceController.name') == 'highAvailabilityProgressPopupController') {
http://git-wip-us.apache.org/repos/asf/ambari/blob/9bce349b/ambari-web/test/views/common/host_progress_popup_body_view_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/views/common/host_progress_popup_body_view_test.js b/ambari-web/test/views/common/host_progress_popup_body_view_test.js
index a14cb26..974a23f 100644
--- a/ambari-web/test/views/common/host_progress_popup_body_view_test.js
+++ b/ambari-web/test/views/common/host_progress_popup_body_view_test.js
@@ -107,4 +107,21 @@ describe('App.HostProgressPopupBodyView', function () {
});
});
});
+
+ describe('#didInsertElement', function () {
+
+ beforeEach(function () {
+ sinon.stub(view, 'updateHostInfo', Em.K);
+ view.didInsertElement();
+ });
+
+ afterEach(function () {
+ view.updateHostInfo.restore();
+ });
+
+ it('should display relevant info', function () {
+ expect(view.updateHostInfo.calledOnce).to.be.true;
+ });
+
+ });
});