File tree Expand file tree Collapse file tree 6 files changed +21
-10
lines changed
components/camel-iggy/src/test/java/org/apache/camel/component/iggy
test-infra/camel-test-infra-iggy/src/main/java/org/apache/camel/test/infra/iggy/services Expand file tree Collapse file tree 6 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 2020import org .apache .camel .builder .RouteBuilder ;
2121import org .apache .camel .component .mock .MockEndpoint ;
2222import org .junit .jupiter .api .Test ;
23+ import org .junit .jupiter .api .condition .DisabledIfSystemProperty ;
2324
25+ @ DisabledIfSystemProperty (named = "ci.env.name" , matches = ".*" ,
26+ disabledReason = "Iggy 0.6.0+ requires io_uring which is not available on CI environments" )
2427public class IggyComponentIT extends IggyTestBase {
2528
2629 @ Test
Original file line number Diff line number Diff line change 2323import org .apache .camel .component .mock .MockEndpoint ;
2424import org .junit .jupiter .api .Assertions ;
2525import org .junit .jupiter .api .Test ;
26+ import org .junit .jupiter .api .condition .DisabledIfSystemProperty ;
2627
28+ @ DisabledIfSystemProperty (named = "ci.env.name" , matches = ".*" ,
29+ disabledReason = "Iggy 0.6.0+ requires io_uring which is not available on CI environments" )
2730public class IggyConsumerIT extends IggyTestBase {
2831
2932 @ Test
Original file line number Diff line number Diff line change 2020import org .apache .camel .builder .RouteBuilder ;
2121import org .apache .camel .component .mock .MockEndpoint ;
2222import org .junit .jupiter .api .Test ;
23+ import org .junit .jupiter .api .condition .DisabledIfSystemProperty ;
2324
25+ @ DisabledIfSystemProperty (named = "ci.env.name" , matches = ".*" ,
26+ disabledReason = "Iggy 0.6.0+ requires io_uring which is not available on CI environments" )
2427public class IggyConsumerOffsetIT extends IggyTestBase {
2528
2629 int startingOffset = 5 ;
Original file line number Diff line number Diff line change 2525import org .apache .iggy .message .Message ;
2626import org .assertj .core .api .Assertions ;
2727import org .junit .jupiter .api .Test ;
28+ import org .junit .jupiter .api .condition .DisabledIfSystemProperty ;
2829
30+ @ DisabledIfSystemProperty (named = "ci.env.name" , matches = ".*" ,
31+ disabledReason = "Iggy 0.6.0+ requires io_uring which is not available on CI environments" )
2932public class IggyProducerIT extends IggyTestBase {
3033
3134 @ Test
Original file line number Diff line number Diff line change 1616 */
1717package org .apache .camel .component .iggy ;
1818
19- import java .util .Collections ;
20- import java .util .List ;
21- import java .util .Optional ;
22- import java .util .stream .Stream ;
23-
2419import org .apache .camel .CamelContext ;
2520import org .apache .camel .RoutesBuilder ;
2621import org .apache .camel .test .infra .core .CamelContextExtension ;
3934import org .apache .iggy .message .PollingStrategy ;
4035import org .junit .jupiter .api .BeforeAll ;
4136import org .junit .jupiter .api .Order ;
42- import org .junit .jupiter .api .condition .DisabledIfSystemProperty ;
4337import org .junit .jupiter .api .extension .RegisterExtension ;
4438
45- import static java .util .Optional .empty ;
39+ import java .util .Collections ;
40+ import java .util .List ;
41+ import java .util .Optional ;
42+ import java .util .stream .Stream ;
4643
47- @ DisabledIfSystemProperty (named = "ci.env.name" , matches = ".*" ,
48- disabledReason = "Iggy 0.6.0+ requires io_uring which is not available on CI environments" )
4944public abstract class IggyTestBase {
5045
5146 @ Order (1 )
Original file line number Diff line number Diff line change 1717
1818package org .apache .camel .test .infra .iggy .services ;
1919
20+ import java .util .List ;
21+
22+ import com .github .dockerjava .api .model .Ulimit ;
2023import org .apache .camel .test .infra .iggy .common .IggyProperties ;
2124import org .testcontainers .containers .GenericContainer ;
2225import org .testcontainers .containers .wait .strategy .Wait ;
@@ -44,7 +47,8 @@ public TestInfraIggyContainer() {
4447 withCreateContainerCmdModifier (cmd -> {
4548 cmd .getHostConfig ()
4649 .withCapAdd (com .github .dockerjava .api .model .Capability .SYS_NICE )
47- .withSecurityOpts (java .util .List .of ("seccomp:unconfined" ));
50+ .withSecurityOpts (java .util .List .of ("seccomp:unconfined" ))
51+ .withUlimits (List .of (new Ulimit ("memlock" , -1 , -1 )));
4852 });
4953
5054 if (fixedPort ) {
You can’t perform that action at this time.
0 commit comments