Explorar o código

AMBARI-6568. Service pluggability: New added services in the stack has Add Property link in log-4j and env categories (jaimin)

Jaimin Jetly %!s(int64=11) %!d(string=hai) anos
pai
achega
69f2bcf99f

+ 1 - 1
ambari-web/app/config.js

@@ -78,7 +78,7 @@ App.supports = {
   jobs: true,
   ubuntu: true,
   views: false,
-  flume: false,
+  flume: true,
   databaseConnection: true
 };
 

+ 1 - 1
ambari-web/app/models/stack_service.js

@@ -424,7 +424,7 @@ App.StackService.configCategories = function () {
       var configTypes = Object.keys(this.get('configTypes')).without('core-site').without('global');
       configTypes.forEach(function (type) {
         var displayName = 'Custom ' + type;
-        var canAddProperty = !type.endsWith('-log4j') || !type.endsWith('-env');
+        var canAddProperty = !(type.endsWith('-log4j') || type.endsWith('-env'));
         var siteFileName = type + '.xml';
         serviceConfigCategories.pushObject(App.ServiceConfigCategory.create({ name: 'Advanced ' + type, displayName: displayName, siteFileName: siteFileName,
           canAddProperty: canAddProperty}));

+ 0 - 25
ambari-web/test/utils/component_test.js

@@ -1,25 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-var App = require('app');
-var component = require('utils/component');
-require('models/host_component');
-require('models/stack_service_component');
-
-describe('utils/component', function(){
-});