ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-17146) Implement config values trimming for deployment via blueprint
Date Tue, 14 Jun 2016 15:45:01 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-17146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15329691#comment-15329691
] 

Hadoop QA commented on AMBARI-17146:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12810391/AMBARI-17146_2.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified
test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number
of release audit warnings.

    {color:red}-1 core tests{color}.  The patch failed these unit tests in ambari-server:

                  org.apache.ambari.server.controller.internal.StackTest

Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/7346//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/7346//console

This message is automatically generated.

> Implement config values trimming for deployment via blueprint
> -------------------------------------------------------------
>
>                 Key: AMBARI-17146
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17146
>             Project: Ambari
>          Issue Type: Task
>    Affects Versions: 2.4.0
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>            Priority: Critical
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17146_2.patch
>
>
> Implement config values trimming for deployment via blueprint as we do in UI
> {code}
>   trimProperty: function (property) {
>     var displayType = Em.get(property, 'displayType');
>     var value = Em.get(property, 'value');
>     var name = Em.get(property, 'name');
>     var rez;
>     switch (displayType) {
>       case 'directories':
>       case 'directory':
>         rez = value.replace(/,/g, ' ').trim().split(/\s+/g).join(',');
>         break;
>       case 'host':
>         rez = value.trim();
>         break;
>       case 'password':
>         break;
>       default:
>         if (name == 'javax.jdo.option.ConnectionURL' || name == 'oozie.service.JPAService.jdbc.url')
{
>           rez = value.trim();
>         }
>         rez = (typeof value == 'string') ? value.replace(/(\s+$)/g, '') : value;
>     }
>     return ((rez == '') || (rez == undefined)) ? value : rez;
>   },
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message