Skip to content

Commit 781e114

Browse files
committed
Disable Iggy tests on CI
1 parent 30fdf8c commit 781e114

File tree

6 files changed

+21
-10
lines changed

6 files changed

+21
-10
lines changed

components/camel-iggy/src/test/java/org/apache/camel/component/iggy/IggyComponentIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
import org.apache.camel.builder.RouteBuilder;
2121
import org.apache.camel.component.mock.MockEndpoint;
2222
import 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")
2427
public class IggyComponentIT extends IggyTestBase {
2528

2629
@Test

components/camel-iggy/src/test/java/org/apache/camel/component/iggy/IggyConsumerIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
import org.apache.camel.component.mock.MockEndpoint;
2424
import org.junit.jupiter.api.Assertions;
2525
import 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")
2730
public class IggyConsumerIT extends IggyTestBase {
2831

2932
@Test

components/camel-iggy/src/test/java/org/apache/camel/component/iggy/IggyConsumerOffsetIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
import org.apache.camel.builder.RouteBuilder;
2121
import org.apache.camel.component.mock.MockEndpoint;
2222
import 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")
2427
public class IggyConsumerOffsetIT extends IggyTestBase {
2528

2629
int startingOffset = 5;

components/camel-iggy/src/test/java/org/apache/camel/component/iggy/IggyProducerIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
import org.apache.iggy.message.Message;
2626
import org.assertj.core.api.Assertions;
2727
import 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")
2932
public class IggyProducerIT extends IggyTestBase {
3033

3134
@Test

components/camel-iggy/src/test/java/org/apache/camel/component/iggy/IggyTestBase.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
*/
1717
package 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-
2419
import org.apache.camel.CamelContext;
2520
import org.apache.camel.RoutesBuilder;
2621
import org.apache.camel.test.infra.core.CamelContextExtension;
@@ -39,13 +34,13 @@
3934
import org.apache.iggy.message.PollingStrategy;
4035
import org.junit.jupiter.api.BeforeAll;
4136
import org.junit.jupiter.api.Order;
42-
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
4337
import 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")
4944
public abstract class IggyTestBase {
5045

5146
@Order(1)

test-infra/camel-test-infra-iggy/src/main/java/org/apache/camel/test/infra/iggy/services/IggyContainer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
package org.apache.camel.test.infra.iggy.services;
1919

20+
import java.util.List;
21+
22+
import com.github.dockerjava.api.model.Ulimit;
2023
import org.apache.camel.test.infra.iggy.common.IggyProperties;
2124
import org.testcontainers.containers.GenericContainer;
2225
import 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) {

0 commit comments

Comments
 (0)