forked from camel-tooling/camel-language-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid false positive for "lenient" properties camel-tooling#220
Some Camel components have "lenient" properties. It means that they can have custom parameters. These parameters were reported as "unknown parameter" although they are valid. provided a test for using toD and Camel global properties and set it as @ignore waiting for a fix at Camel level. see CAMEL-13382 Signed-off-by: Aurélien Pupier <apupier@redhat.com>
- Loading branch information
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/resources/workspace/diagnostic/camel-with-properties.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> | ||
|
||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> | ||
<route id="a route"> | ||
<from uri="timer:timerName?delay=1000"/> | ||
<to uri="timer:timerName?${aProperty}=10"></to> | ||
</route> | ||
</camelContext> | ||
</beans> |
14 changes: 14 additions & 0 deletions
14
src/test/resources/workspace/diagnostic/camel-with-unknownParameter-forlenientcomponent.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> | ||
|
||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> | ||
<route id="a route"> | ||
<from uri="http://an.url?unknownParam=1000"/> | ||
<to uri="direct:drink"/> | ||
</route> | ||
</camelContext> | ||
</beans> |
14 changes: 14 additions & 0 deletions
14
src/test/resources/workspace/diagnostic/camel-with-unknownParameter.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> | ||
|
||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> | ||
<route id="a route"> | ||
<from uri="timer:timerName?unknownParam=1000"/> | ||
<to uri="direct:drink"/> | ||
</route> | ||
</camelContext> | ||
</beans> |