This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 2325391beba8 CAMEL-23832: camel-a2a - align A2AGeneratedMetadataTest
with the improved option descriptions
2325391beba8 is described below
commit 2325391beba8ebaba78f259d2235d5b3b31efcf1
Author: Aurélien Pupier <[email protected]>
AuthorDate: Fri Nov 27 18:23:05 2026 +0100
CAMEL-23832: camel-a2a - align A2AGeneratedMetadataTest with the improved
option descriptions
The test asserted phrases of the old descriptions of validateAuth,
allowLocalWebhookUrls, pushRetryBackoffMs and oauthProfile, which
88acb66b21d4 rewrote.
Co-authored-by: IBM Bob <[email protected]>
---
.../apache/camel/component/a2a/A2AGeneratedMetadataTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AGeneratedMetadataTest.java
b/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AGeneratedMetadataTest.java
index 690d9dd6c7fe..3b870e39ffda 100644
---
a/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AGeneratedMetadataTest.java
+++
b/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AGeneratedMetadataTest.java
@@ -39,8 +39,8 @@ class A2AGeneratedMetadataTest {
assertThat(validateAuth.path("insecureValue").asString()).isEqualTo("false");
assertThat(validateAuth.path("defaultValue").asBoolean()).isTrue();
assertThat(validateAuth.path("description").asString())
- .contains("validate authentication")
- .contains("Disable explicitly");
+ .contains("checks the credentials")
+ .contains("If false, the consumer accepts requests without
credentials");
JsonNode allowLocalWebhookUrls =
properties.path("allowLocalWebhookUrls");
assertThat(allowLocalWebhookUrls.path("security").asString()).isEqualTo("insecure:dev");
@@ -48,15 +48,15 @@ class A2AGeneratedMetadataTest {
assertThat(allowLocalWebhookUrls.path("defaultValue").asBoolean()).isFalse();
assertThat(allowLocalWebhookUrls.path("description").asString())
.contains("localhost")
- .contains("SSRF protection");
+ .contains("loopback");
JsonNode pushRetryBackoffMs = properties.path("pushRetryBackoffMs");
assertThat(pushRetryBackoffMs.path("defaultValue").asLong()).isEqualTo(1000L);
-
assertThat(pushRetryBackoffMs.path("description").asString()).contains("exponential
backoff");
+
assertThat(pushRetryBackoffMs.path("description").asString()).contains("doubled
for each further retry");
JsonNode oauthProfile = properties.path("oauthProfile");
assertThat(oauthProfile.path("description").asString())
- .contains("OAuth 2.0 Client Credentials")
+ .contains("OAuth 2.0 client credentials")
.contains("camel-oauth");
}