Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,43 @@
*/
package org.apache.camel.component.aws2.eventbridge.localstack;

import org.apache.camel.CamelContext;
import org.apache.camel.EndpointInject;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.aws2.eventbridge.EventbridgeComponent;
import org.apache.camel.component.aws2.eventbridge.EventbridgeConstants;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.infra.aws.common.services.AWSService;
import org.apache.camel.test.infra.aws2.clients.AWSSDKClientUtils;
import org.apache.camel.test.infra.aws2.services.AWSServiceFactory;
import org.apache.camel.test.junit5.CamelTestSupport;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import software.amazon.awssdk.services.eventbridge.model.PutEventsResponse;

public class EventbridgePutEventsIT extends Aws2EventbridgeBase {
public class EventbridgePutEventsIT extends CamelTestSupport {

@RegisterExtension
public static AWSService service = AWSServiceFactory.createEventBridgeService();

@EndpointInject
private ProducerTemplate template;

@EndpointInject("mock:result")
private MockEndpoint result;

@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
EventbridgeComponent eventbridgeComponent = context.getComponent("aws2-eventbridge", EventbridgeComponent.class);
eventbridgeComponent.getConfiguration().setEventbridgeClient(AWSSDKClientUtils.newEventBridgeClient());
return context;
}

@Test
public void sendIn() throws Exception {
result.expectedMessageCount(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,10 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperties;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

@DisabledIfSystemProperties({
@DisabledIfSystemProperty(named = "ci.env.name", matches = "apache.org",
disabledReason = "Apache CI nodes are too resource constrained for this test"),
@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Flaky on GitHub Actions"),
@DisabledIfSystemProperty(named = "couchbase.enable.it", matches = "false",
disabledReason = "Too resource intensive for most systems to run reliably"),
})
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "Too resource intensive for most systems to run reliably")
@Tags({ @Tag("couchbase-71") })
public class ConsumeMessagesWithLimitIT extends CouchbaseIntegrationTestBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,13 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperties;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

import static org.apache.camel.component.couchbase.CouchbaseConstants.COUCHBASE_RESUME_ACTION;
import static org.awaitility.Awaitility.await;

@DisabledIfSystemProperties({
@DisabledIfSystemProperty(named = "ci.env.name", matches = "apache.org",
disabledReason = "Apache CI nodes are too resource constrained for this test"),
@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Flaky on GitHub Actions"),
@DisabledIfSystemProperty(named = "couchbase.enable.it", matches = "false",
disabledReason = "Too resource intensive for most systems to run reliably"),
})
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "Too resource intensive for most systems to run reliably")
@Tags({ @Tag("couchbase-71") })
public class ConsumeResumeStrategyIT extends CouchbaseIntegrationTestBase {
static class TestCouchbaseResumeAdapter implements ResumeActionAware {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperties;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

@DisabledIfSystemProperties({
@DisabledIfSystemProperty(named = "ci.env.name", matches = "apache.org",
disabledReason = "Apache CI nodes are too resource constrained for this test"),
@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Flaky on GitHub Actions"),
@DisabledIfSystemProperty(named = "couchbase.enable.it", matches = "false",
disabledReason = "Too resource intensive for most systems to run reliably"),
})
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "Too resource intensive for most systems to run reliably")
@Tags({ @Tag("couchbase-7") })
public class ProduceMessagesSimpleIT extends CouchbaseIntegrationTestBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperties;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

@DisabledIfSystemProperties({
@DisabledIfSystemProperty(named = "ci.env.name", matches = "apache.org",
disabledReason = "Apache CI nodes are too resource constrained for this test"),
@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Flaky on GitHub Actions"),
@DisabledIfSystemProperty(named = "couchbase.enable.it", matches = "false",
disabledReason = "Too resource intensive for most systems to run reliably"),
})
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "Too resource intensive for most systems to run reliably")
@Tags({ @Tag("couchbase-7") })
public class ProduceMessagesWithAutoIDIT extends CouchbaseIntegrationTestBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,13 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperties;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

import static org.apache.camel.component.couchbase.CouchbaseConstants.COUCHBASE_DELETE;
import static org.apache.camel.component.couchbase.CouchbaseConstants.HEADER_ID;

@DisabledIfSystemProperties({
@DisabledIfSystemProperty(named = "ci.env.name", matches = "apache.org",
disabledReason = "Apache CI nodes are too resource constrained for this test"),
@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Flaky on GitHub Actions"),
@DisabledIfSystemProperty(named = "couchbase.enable.it", matches = "false",
disabledReason = "Too resource intensive for most systems to run reliably"),
})
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "Too resource intensive for most systems to run reliably")
@Tags({ @Tag("couchbase-7") })
public class RemoveMessagesIT extends CouchbaseIntegrationTestBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.apache.kafka.clients.producer.ProducerRecord;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;
import org.slf4j.Logger;
Expand All @@ -49,6 +50,8 @@
@EnabledOnOs(value = { OS.LINUX, OS.MAC, OS.FREEBSD, OS.OPENBSD, OS.WINDOWS },
architectures = { "amd64", "aarch64" },
disabledReason = "This test does not run reliably on some platforms")
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "CAMEL-20722: Too unreliable on most of the CI environments")
class KafkaBreakOnFirstErrorReleaseResourcesIT extends BaseKafkaTestSupport {

public static final String ROUTE_ID = "breakOnFirstError-20563" + Thread.currentThread().hashCode(); //CAMEL-20722 - added for similar reason as CAMEL-20686:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;
import org.slf4j.Logger;
Expand All @@ -54,6 +55,8 @@
@EnabledOnOs(value = { OS.LINUX, OS.MAC, OS.FREEBSD, OS.OPENBSD, OS.WINDOWS },
architectures = { "amd64", "aarch64" },
disabledReason = "This test does not run reliably on some platforms")
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "CAMEL-20722: Too unreliable on most of the CI environments")
class KafkaBreakOnFirstErrorSeekIssueIT extends BaseExclusiveKafkaTestSupport {

public static final String ROUTE_ID = "breakOnFirstError-19894";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;
import org.slf4j.Logger;
Expand All @@ -50,6 +51,8 @@
@EnabledOnOs(value = { OS.LINUX, OS.MAC, OS.FREEBSD, OS.OPENBSD, OS.WINDOWS },
architectures = { "amd64", "aarch64" },
disabledReason = "This test does not run reliably on some platforms")
@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*",
disabledReason = "CAMEL-20722: Too unreliable on most of the CI environments")
class KafkaBreakOnFirstErrorWithBatchUsingAsyncCommitManagerIT extends BaseExclusiveKafkaTestSupport {
public static final String ROUTE_ID = "breakOnFirstErrorBatchIT";
public static final String TOPIC = "breakOnFirstErrorBatchIT";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.parallel.Isolated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Isolated("Seems to have problem running along with other tests")
@DisabledIfSystemProperty(named = "activemq.instance.type", matches = "remote",
disabledReason = "Requires control of ActiveMQ, so it can only run locally (embedded or container)")
public class ReconnectConsumerTest extends JmsExclusiveTestSupport {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.parallel.Isolated;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;

@Isolated("Seems to have problem running along with other tests")
@DisabledIfSystemProperty(named = "activemq.instance.type", matches = "remote",
disabledReason = "Requires control of ActiveMQ, so it can only run locally (embedded or container)")
public class ReconnectInOutProducerTest extends JmsExclusiveTestSupport {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.parallel.Isolated;

import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

@Isolated("Seems to have problem running along with other tests")
@DisabledIfSystemProperty(named = "activemq.instance.type", matches = "remote",
disabledReason = "Requires control of ActiveMQ, so it can only run locally (embedded or container)")
public class ReconnectProducerTest extends JmsExclusiveTestSupport {
Expand Down