This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 699cf33b3f4696fc731ddcdc345ae888fd9622ac Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Mar 11 11:16:27 2024 +0100 CAMEL-20544 - Camel-AWS-Bedrock-Agent: Add a consumer for polling the status of ingestion or more ingestions Signed-off-by: Andrea Cosentino <[email protected]> --- .../aws2/bedrock/agent/integration/BedrockAgentConsumerIT.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agent/integration/BedrockAgentConsumerIT.java b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agent/integration/BedrockAgentConsumerIT.java index 5c4b72d6b05..0c8eae94801 100644 --- a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agent/integration/BedrockAgentConsumerIT.java +++ b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agent/integration/BedrockAgentConsumerIT.java @@ -22,12 +22,14 @@ import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.test.junit5.CamelTestSupport; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; +import org.junit.jupiter.api.condition.EnabledIfSystemProperties; +import org.junit.jupiter.api.condition.EnabledIfSystemProperty; // Must be manually tested. Provide your own accessKey and secretKey using -Daws.manual.access.key and -Daws.manual.secret.key -/*@EnabledIfSystemProperties({ +@EnabledIfSystemProperties({ @EnabledIfSystemProperty(named = "aws.manual.access.key", matches = ".*", disabledReason = "Access key not provided"), @EnabledIfSystemProperty(named = "aws.manual.secret.key", matches = ".*", disabledReason = "Secret key not provided") -})*/ +}) @TestInstance(TestInstance.Lifecycle.PER_CLASS) class BedrockAgentConsumerIT extends CamelTestSupport { @@ -49,7 +51,7 @@ class BedrockAgentConsumerIT extends CamelTestSupport { return new RouteBuilder() { @Override public void configure() { - from("aws-bedrock-agent:label?useDefaultCredentialsProvider=true®ion=us-east-1&knowledgeBaseId=AJHTAIUSJP&dataSourceId=AJX8Z7JX9J&ingestionJobId=YOWE23OBEB") + from("aws-bedrock-agent:label?accessKey=RAW({{aws.manual.access.key}})&secretKey=RAW({{aws.manual.secret.key}}®ion=us-east-1&knowledgeBaseId=AJHTAIUSJP&dataSourceId=AJX8Z7JX9J&ingestionJobId=YOWE23OBEB") .log("${body} and ${headers}") .to(result); }
