Quellcode durchsuchen

AMBARI-9890. Web Client Should Create Alert Target With 'overwriteExisting' Directive (onechiporenko)

Oleg Nechiporenko vor 10 Jahren
Ursprung
Commit
666fe656a5

+ 1 - 1
ambari-web/app/controllers/wizard/step8_controller.js

@@ -1853,7 +1853,7 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz
     this.addRequestToAjaxQueue({
     this.addRequestToAjaxQueue({
       name: 'alerts.create_alert_notification',
       name: 'alerts.create_alert_notification',
       data: {
       data: {
-        urlParams: 'overwriteExisting=true',
+        urlParams: 'overwrite_existing=true',
         data: apiObject
         data: apiObject
       }
       }
     });
     });

+ 1 - 1
ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js

@@ -573,7 +573,7 @@ describe('App.ManageAlertNotificationsController', function () {
 
 
       controller.createAlertNotification();
       controller.createAlertNotification();
       expect($.ajax.calledOnce).to.be.true;
       expect($.ajax.calledOnce).to.be.true;
-      expect($.ajax.args[0][0].url.contains('overwriteExisting=true')).to.be.false;
+      expect($.ajax.args[0][0].url.contains('overwrite_existing=true')).to.be.false;
     });
     });
 
 
   });
   });

+ 1 - 1
ambari-web/test/controllers/wizard/step8_test.js

@@ -1400,7 +1400,7 @@ describe('App.WizardStep8Controller', function () {
         expect(installerStep8Controller.get('ajaxRequestsQueue.queue.length')).to.equal(1);
         expect(installerStep8Controller.get('ajaxRequestsQueue.queue.length')).to.equal(1);
         installerStep8Controller.get('ajaxRequestsQueue').runNextRequest();
         installerStep8Controller.get('ajaxRequestsQueue').runNextRequest();
         expect($.ajax.calledOnce).to.be.true;
         expect($.ajax.calledOnce).to.be.true;
-        expect($.ajax.args[0][0].url.contains('overwriteExisting=true')).to.be.true;
+        expect($.ajax.args[0][0].url.contains('overwrite_existing=true')).to.be.true;
       });
       });
 
 
       it('sent data should be valid', function () {
       it('sent data should be valid', function () {