Browse Source

AMBARI-2202. Running the smoke test for a specific service should set the appropriate request context showing the service name. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1487190 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
04c2e7ac13
3 changed files with 6 additions and 2 deletions
  1. 3 0
      CHANGES.txt
  2. 1 0
      ambari-web/app/controllers/main/service/item.js
  3. 2 2
      ambari-web/app/utils/ajax.js

+ 3 - 0
CHANGES.txt

@@ -895,6 +895,9 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-2202. Running the smoke test for a specific service should set the
+ appropriate request context showing the service name. (yusaku)
+
  AMBARI-2209. Add monitoring capabilities for Hadoop 2.0. (smohanty)
 
  AMBARI-2201. Hbase master and regionserver should use same keytab. (jaimin)

+ 1 - 0
ambari-web/app/controllers/main/service/item.js

@@ -172,6 +172,7 @@ App.MainServiceItemController = Em.Controller.extend({
       'success':'runSmokeTestSuccessCallBack',
       'data': {
         'serviceName': this.get('content.serviceName'),
+        'displayName': this.get('content.displayName'),
         'actionName': this.get('content.serviceName') === 'ZOOKEEPER' ? 'ZOOKEEPER_QUORUM_SERVICE_CHECK' : this.get('content.serviceName') + '_SERVICE_CHECK'
       }
     });

+ 2 - 2
ambari-web/app/utils/ajax.js

@@ -67,12 +67,12 @@ var urls = {
   'service.item.smoke': {
     'real': '/clusters/{clusterName}/services/{serviceName}/actions/{actionName}',
     'mock': '/data/wizard/deploy/poll_1.json',
-    'format': function () {
+    'format': function (data) {
       return {
         'type': 'POST',
         data: JSON.stringify({
           RequestInfo: {
-            "context": "Smoke Test"
+            "context": data.displayName + " Smoke Test"
           }
         })
       };