[ 
https://issues.apache.org/jira/browse/CAMEL-10013?focusedWorklogId=272991&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-272991
 ]

ASF GitHub Bot logged work on CAMEL-10013:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Jul/19 23:40
            Start Date: 07/Jul/19 23:40
    Worklog Time Spent: 10m 
      Work Description: bedlaj commented on pull request #3023: CAMEL-10013: 
Implemented test validating syntax of endpoint
URL: https://github.com/apache/camel/pull/3023
 
 
   I Have implelented test which validates syntax of endpoints:
    1) Syntax starts with component name
    2) All syntax parts are defined as @UriPath
    3) All @UriPath marked as required are contained in syntax.
    
   Now is this assertion wrapped in try-catch, so the problems are reported 
only to console. 
   I would like to confirm with you this approach and get some suggestions if 
there is some assertion missing. After that I can fix reported problems and 
remove try-catch to make this tests actually fail on invalid syntax.
   
   Currently it reports following and all seems to be actual problems:
   
   - Component chatscript. Syntax chatscript:host:port/botname. Part botname is 
not defined as UriPath
   - Component google-bigquery. Syntax 
google-bigquery:projectId:datasetId:tableName. Part tableName is not defined as 
UriPath
   - Component google-bigquery-sql. Syntax google-bigquery-sql:query. Required 
param projectId is not defined in syntax
   - Component ipfs. Syntax ipfs:host:port/cmd. Part host is not defined as 
UriPath
   - Component pg-replication-slot. Syntax 
pg-replication-slot:host:port/database/slot:plugin. Part plugin is not defined 
as UriPath
   - Component soroush. Syntax soroush:action/authorizationToken. Part 
authorizationToken is not defined as UriPath
   - Component wordpress. Syntax wordpress:operationDetail. Required param 
operation is not defined in syntax
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 272991)
            Time Spent: 10m
    Remaining Estimate: 0h

> Write automatic test validating syntax of every endpoint of the catalog
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-10013
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10013
>             Project: Camel
>          Issue Type: Task
>          Components: build system
>            Reporter: Aurelien Pupier
>            Priority: Major
>             Fix For: Future
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> it will avoid regressions and introduction of errors when writing new Camel 
> components



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to