Commit 882e6bd
authored
test-infra: Fix Docker container name collisions in parallel execution
- Append PID + AtomicInteger counter to container names in
ContainerEnvironmentUtil.containerName() for cross-JVM (mvnd) and
within-JVM (parallel test classes) uniqueness
- Skip the suffix when camel.infra.fixedPort=true (camel infra run)
to preserve clean names like camel-postgres for docker exec usability
- Remove hardcoded withName("nameserver") from RocketMQNameserverContainer
that bypassed ContainerEnvironmentUtil (network alias is sufficient)1 parent 79fbb87 commit 882e6bd
2 files changed
Lines changed: 7 additions & 1 deletion
File tree
- test-infra
- camel-test-infra-common/src/main/java/org/apache/camel/test/infra/common/services
- camel-test-infra-rocketmq/src/main/java/org/apache/camel/test/infra/rocketmq/services
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
117 | 124 | | |
118 | 125 | | |
119 | 126 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
0 commit comments