Commit 52d5522
authored
## Summary
Registers `OpenSearchUpgradeSuite` as a dedicated CI test matrix entry
so it runs automatically with the OpenSearch 3.x upgrade container
activated. Also includes minor code-quality cleanup in
`ESContentletAPIImpl`. This is the CI companion to #35130,
which contains the actual test suite implementation.
## Changes
**CI — `.github/test-matrix.yml`**
- Added `Integration Tests - OpenSearch Upgrade Suite` suite entry under
`integration`
- Overrides `base_maven_args` with `-Dopensearch.upgrade.test=true`,
which activates the `opensearch-upgrade` Maven profile — that profile
starts the OpenSearch 3.x Docker container on port 9201 and restricts
Failsafe to run only `OpenSearchUpgradeSuite`
- Fixed a trailing whitespace in the existing `base_maven_args` block
**Backend — `ESContentletAPIImpl`**
- `categories.size() < 1` → `categories.isEmpty()`
- `StringBuffer` → `StringBuilder` (non-synchronized context)
- String concatenation inside loop → `StringBuilder.append()` chain
## Testing
The suite itself (`OpenSearchUpgradeSuite.java` and its member tests)
lives in the companion PR #35130 and must be merged before
this CI entry is exercisable end-to-end.
To verify the matrix entry locally:
```bash
# Requires the opensearch-upgrade profile in dotcms-integration/pom.xml
./mvnw verify -pl :dotcms-integration \
-Dcoreit.test.skip=false \
-Dopensearch.upgrade.test=true
```
The profile starts an OpenSearch 3.x container on port 9201 and limits
Failsafe to `OpenSearchUpgradeSuite`.
## Breaking Changes
**None.**
This PR fixes: #35131
1 parent 0dfcd6e commit 52d5522
File tree
2 files changed
+15
-5
lines changed- .github
- dotCMS/src/main/java/com/dotcms/content/elasticsearch/business
2 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7540 | 7540 | | |
7541 | 7541 | | |
7542 | 7542 | | |
7543 | | - | |
| 7543 | + | |
7544 | 7544 | | |
7545 | 7545 | | |
7546 | | - | |
| 7546 | + | |
7547 | 7547 | | |
7548 | 7548 | | |
7549 | 7549 | | |
7550 | 7550 | | |
7551 | 7551 | | |
7552 | 7552 | | |
7553 | 7553 | | |
7554 | | - | |
| 7554 | + | |
7555 | 7555 | | |
7556 | 7556 | | |
7557 | | - | |
| 7557 | + | |
7558 | 7558 | | |
7559 | 7559 | | |
7560 | 7560 | | |
| |||
0 commit comments